mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-06-28 07:01:49 +00:00
fix laststnad
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user