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

Script_BotItemFix

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

DOWNLOAD

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

DOWNLOAD PATCH

place events.cs in Bot_Hole.zip and overwrite the existing file

tldr useful to anyone that uses bots w/ guns