mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-21 10:05:42 +00:00
update too date with mw2
This commit is contained in:
parent
28aaface14
commit
c220c36cf8
@ -1051,6 +1051,9 @@ isInRange(dist, curweap)
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
Will kill the walk threads and do it again after a time
|
||||
*/
|
||||
killWalkCauseNoWaypoints()
|
||||
{
|
||||
self endon("disconnect");
|
||||
@ -1269,6 +1272,9 @@ killWalkOnEvents()
|
||||
self notify("kill_goal");
|
||||
}
|
||||
|
||||
/*
|
||||
Does the notify for goal completion for outside scripts
|
||||
*/
|
||||
doWalkScriptNotify()
|
||||
{
|
||||
self endon("disconnect");
|
||||
@ -1298,11 +1304,13 @@ doWalk(goal, dist, isScriptGoal)
|
||||
self thread watchOnGoal(goal, distsq);
|
||||
|
||||
current = self initAStar(goal);
|
||||
// if a waypoint is closer than the goal
|
||||
//if (current >= 0 && DistanceSquared(self.origin, level.waypoints[self.bot.astar[current]].origin) < DistanceSquared(self.origin, goal))
|
||||
//{
|
||||
while(current >= 0)
|
||||
{
|
||||
for (;;)
|
||||
// skip down the line of waypoints and go to the waypoint we have a direct path too
|
||||
/*for (;;)
|
||||
{
|
||||
if (current <= 0)
|
||||
break;
|
||||
@ -1315,7 +1323,7 @@ doWalk(goal, dist, isScriptGoal)
|
||||
break;
|
||||
|
||||
current = self removeAStar();
|
||||
}
|
||||
}*/
|
||||
|
||||
self.bot.next_wp = self.bot.astar[current];
|
||||
self.bot.second_next_wp = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user