I dont know if any1 else experienced this but on condition zero, if you set bots to play with knives only with bot_knives_only var (which do nothing but turn all other weapon vars like bot_allow_weaponname to 0) if you pick their glock when they die the server crash.
I've tried to remove the weaponbox entities cuz i'm not sure if it happens only with their glock, but takes a few mileseconds to remove it from the world and if you stand next to him and kill him you'll get his glock anyway...
Method:
PHP Code:
RegisterHam(Ham_Touch, "weaponbox", "touch_weaponbox", 1)
PHP Code:
public touch_weaponbox(ent)
dllfunc(DLLFunc_Think, ent)
I've tried to forbid players to pickup the weapons too, and it's the same, if you stand next to them you'll get their weapon.
Method:
PHP Code:
RegisterHam(Ham_Touch, "weaponbox", "hook_player_touch", 0)
PHP Code:
public hook_player_touch(ent, player)
{
if(is_user_alive2[player] && is_user_zombie[player])
return HAM_SUPERCEDE
return HAM_IGNORED
}
Dont pay attention on the player storages, it doesnt matter cause only bots have is_user_zombie set to true. Also, doesnt matter (in both exemples) if i set it to pre or post, it would just be the same if you stand next to him when he gets killed. I wonder if is there any solution to fix this issue besides remove all their weapons (since i want them to use knife only), but doing that they act stupid and camp alot cuz they dont recognize knife in WeaponPreference.
__________________