Bots stop throwing grenades while bombing

This commit is contained in:
INeedBots 2020-11-22 18:25:25 -06:00
parent ec7428848c
commit 6779be3373
2 changed files with 2 additions and 6 deletions

View File

@ -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--)
{

View File

@ -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;