mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 05:55:42 +00:00
air
This commit is contained in:
parent
ae968e34df
commit
4ad64f4ae4
@ -2146,7 +2146,7 @@ watchOnGoal(goal, dis)
|
||||
while(DistanceSquared(self.origin, goal) > dis)
|
||||
wait 0.05;
|
||||
|
||||
if (isDefined(self.bot.script_goal) && self.bot.script_goal == goal)
|
||||
if (isDefined(self.bot.script_goal) && DistanceSquared(self.bot.script_goal, goal) <= dis)
|
||||
self notify("script_goal");
|
||||
self notify("goal");
|
||||
}
|
||||
|
@ -1822,7 +1822,7 @@ bot_crate_think()
|
||||
|
||||
self.bot_lock_goal = true;
|
||||
self thread bot_inc_bots(crate, true);
|
||||
self SetScriptGoal(crate.origin, 16);
|
||||
self SetScriptGoal(crate.origin, 32);
|
||||
self thread bots_watch_touch_obj(crate);
|
||||
|
||||
path = self waittill_any_return("bad_path", "goal", "script_goal");
|
||||
|
Loading…
x
Reference in New Issue
Block a user