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