fix laststnad

This commit is contained in:
Your Name
2020-09-17 12:10:54 -06:00
parent 154332f014
commit af5d7e9c6e
2 changed files with 25 additions and 0 deletions

View File

@ -117,6 +117,24 @@ getValidGrenade()
return random(possibles);
}
botChangeWeapon(weapon)
{
self endon("death");
self endon("disconnect");
if (level.gameEnded || !gameFlag( "prematch_done" ) || self.bot.isfrozen || self IsUsingRemote())
return;
if(self isDefusing() || self isPlanting())
return;
if (self.bot.knifing || self.bot.isfraggingafter)
return;
if (self.disabledWeapon)
return;
}
throwBotGrenade(gname, gtime)
{
return self maps\mp\bots\_bot_internal::botThrowGrenade(gname, gtime);