mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-05-14 00:14:50 +00:00
Bots stop throwing grenades while bombing
This commit is contained in:
parent
ec7428848c
commit
6779be3373
@ -463,9 +463,6 @@ grenade_danager()
|
||||
if(self isDefusing() || self isPlanting())
|
||||
continue;
|
||||
|
||||
if (self.disabledWeapon)
|
||||
continue;
|
||||
|
||||
myEye = self getEye();
|
||||
for (i = level.bots_fragList.count-1; i >= 0; i--)
|
||||
{
|
||||
|
@ -1626,6 +1626,7 @@ bot_use_bomb(bomb)
|
||||
myteam = self.team;
|
||||
|
||||
self BotStopMoving(true);
|
||||
self _disableOffhandWeapons();
|
||||
|
||||
bomb [[bomb.onBeginUse]](self);
|
||||
|
||||
@ -1641,6 +1642,7 @@ bot_use_bomb(bomb)
|
||||
{
|
||||
self.claimTrigger = undefined;
|
||||
self BotStopMoving(false);
|
||||
self _enableOffhandWeapons();
|
||||
}
|
||||
|
||||
bomb [[bomb.onEndUse]](myteam, self, (result == "bot_try_use_success"));
|
||||
@ -2129,9 +2131,6 @@ bot_use_tube_think()
|
||||
if(self isDefusing() || self isPlanting())
|
||||
continue;
|
||||
|
||||
if (self.disabledWeapon)
|
||||
continue;
|
||||
|
||||
if (self IsUsingRemote())
|
||||
continue;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user