Quote:
Originally Posted by Markus_Wyand
Damnit, something went wrong.
Bots once again start to lose weapons eventually, usually when i invite players to my server.
I have an idea why this happens:
-the bots changing classes messes up the strict weapons i want them to use (demoman, who is forced to use booties later changes to soldier because a player changed class, and solders gets his rocket launcher removed, i know it sounds weird)
MAYBE when i force them to use a weapon:
if class demoman:
case TFClass_DemoMan:
{
int rnd = GetRandomUInt(1,1);
switch (rnd)
{
case 1:
{
CreateWeapon(client, "tf_wearable", 0, 405, 20, true);
}
}
Later changes to soldier, something goes wrong and the demoman who is now soldier gets his weapons messed up.
AGAIN THIS ISN'T THE CAUSE, MAYBE. ITS JUST SOMETHING I CAME UP WITH. This weird bug its like a ghost in my machine... this is creeping me out.
EDIT: all the Problems this bug causes so far i've seen:
-Demomen A-posing
-Soldiers not using primary
-Medics not using primary or secondary
-Heavies using melee only (rare, seen only once)
-Snipers going melee only (mostly because i set him wearables for secondary, so i guess his primary gets messed up)
-Engineers not building? (rare, seen only once in payload)
Sorry for keeping this up, i may give up after this one i promise.
I'll leave the .sp file here too.
|
I think you have some other plugin that interferes with mine.
I have been using my plugin for years. No such bug ever detected even with sourcemod and metamod changing over the years. Also youre the only one having this bug.
Disable other plugins other than default and test whether youre still seeing this bug.
Add the custom ones, one by one to find out which one it is.
PS: bot ai has been designed for stock weapons. sniper bots will never use wearables correctly, they try to switch to their second weapon when enemies come closer to them. since they dont have the smg they switch to the melee. same goes for all edible/drinkable/wearable items. they dont know how to use them and thats why they arent in my plugin. they think its a close range weapon and try to use it that way. look at them with an smg and without it - spectate them. you'll see what i mean. same goes for other classes. its pretty obvious
__________________