mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-07-05 10:41:48 +00:00
fix laststnad
This commit is contained in:
@ -1070,6 +1070,10 @@ onLastStand()
|
||||
|
||||
if (!self inFinalStand() && !self IsUsingRemote())
|
||||
{
|
||||
while (self.bot.knifing || self.bot.tryingtofrag || self.disabledWeapon)
|
||||
wait 0.05;
|
||||
waittillframeend;
|
||||
|
||||
pistol = undefined;
|
||||
weaponsList = self GetWeaponsListPrimaries();
|
||||
foreach ( weapon in weaponsList )
|
||||
@ -1213,6 +1217,9 @@ grenade_danager()
|
||||
{
|
||||
wait 1;
|
||||
|
||||
if (self inLastStand() && !self _hasPerk("specialty_laststandoffhand") && !self inFinalStand())
|
||||
continue;
|
||||
|
||||
if (self.bot.isfrozen || level.gameEnded || !gameFlag( "prematch_done" ))
|
||||
continue;
|
||||
|
||||
|
Reference in New Issue
Block a user