Author Topic: [Script] Bot Item Fix  (Read 3831 times)


Removes a bots weapon when it dies, and re-applies it onRespawn
fixing bots firing weapons after they die, potentially 'after killing' people

Can be toggled on/off with $Pref::Server::FixBotItemDeath


It has come to my attention that there is a bit of code in the default bot holes events.cs, specifically 'setWeapon' having a problem because of calling getClassName on item data. I'm not sure why this is nessessary, instead it should just be checking if the item has an image. Here is a patch which fixes this issue


place events.cs in and overwrite the existing file

tldr useful to anyone that uses bots w/ guns