This commit is contained in:
Your Name 2020-08-29 12:12:01 -06:00
parent ae968e34df
commit 4ad64f4ae4
2 changed files with 2 additions and 2 deletions

View File

@ -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");
}

View File

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