mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-05-11 22:54:51 +00:00
a
This commit is contained in:
parent
9377881874
commit
b2aa2b0d58
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user