mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 05:55:42 +00:00
a
This commit is contained in:
parent
42bf0a52c2
commit
6c72fabac3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user