This commit is contained in:
Your Name 2020-08-30 20:24:52 -06:00
parent 42bf0a52c2
commit 6c72fabac3

View File

@ -2001,6 +2001,17 @@ isInRange(dist, curweap)
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.
*/
@ -2049,6 +2060,7 @@ walk()
goal = level.waypoints[randomInt(level.waypointCount)].origin;
else
{
self thread killWalkCauseNoWaypoints();
stepDist = 64;
forward = AnglesToForward(self GetPlayerAngles())*stepDist;
forward = (forward[0], forward[1], 0);