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.script_aimpos = undefined;
|
||||||
|
|
||||||
self.bot.lockingon = false; // !
|
|
||||||
|
|
||||||
self.bot.script_goal = undefined;
|
self.bot.script_goal = undefined;
|
||||||
self.bot.script_goal_dist = 0.0;
|
self.bot.script_goal_dist = 0.0;
|
||||||
|
|
||||||
@ -521,6 +519,9 @@ 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--)
|
||||||
{
|
{
|
||||||
@ -1362,7 +1363,7 @@ canFire(curweap)
|
|||||||
if(curweap == "none")
|
if(curweap == "none")
|
||||||
return false;
|
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;
|
return false;
|
||||||
|
|
||||||
if (curweap == "riotshield_mp" || curweap == "onemanarmy_mp")
|
if (curweap == "riotshield_mp" || curweap == "onemanarmy_mp")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user