mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 22:05:44 +00:00
Fix logkon
This commit is contained in:
parent
7dde4d75e9
commit
ebd86b9e89
@ -99,8 +99,6 @@ resetBotVars()
|
||||
|
||||
self.bot.script_aimpos = undefined;
|
||||
|
||||
self.bot.lockingon = false; // !
|
||||
|
||||
self.bot.script_goal = undefined;
|
||||
self.bot.script_goal_dist = 0.0;
|
||||
|
||||
@ -521,6 +519,9 @@ 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--)
|
||||
{
|
||||
@ -1362,7 +1363,7 @@ canFire(curweap)
|
||||
if(curweap == "none")
|
||||
return false;
|
||||
|
||||
if(curweap == "at4_mp" && self.bot.lockingon) // !
|
||||
if(curweap == "at4_mp" && isDefined(self.bot.target) && isDefined(self.bot.target.entity) && entIsVehicle(self.bot.target.entity) && self.stingerStage != 2)
|
||||
return false;
|
||||
|
||||
if (curweap == "riotshield_mp" || curweap == "onemanarmy_mp")
|
||||
|
Loading…
x
Reference in New Issue
Block a user