This commit is contained in:
Your Name 2020-08-30 20:24:51 -06:00
parent 9377881874
commit b2aa2b0d58

View File

@ -1043,6 +1043,17 @@ isInRange(dist, curweap)
return true; return true;
} }
killWalkCauseNoWaypoints()
{
self endon("disconnect");
self endon("death");
self endon("kill_goal");
wait 2;
self notify("kill_goal");
}
/* /*
This is the main walking logic for the bot. This is the main walking logic for the bot.
*/ */
@ -1089,6 +1100,7 @@ walk()
goal = level.waypoints[randomInt(level.waypointCount)].origin; goal = level.waypoints[randomInt(level.waypointCount)].origin;
else else
{ {
self thread killWalkCauseNoWaypoints();
stepDist = 64; stepDist = 64;
forward = AnglesToForward(self GetPlayerAngles())*stepDist; forward = AnglesToForward(self GetPlayerAngles())*stepDist;
forward = (forward[0], forward[1], 0); forward = (forward[0], forward[1], 0);