mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-20 17:55:42 +00:00
minor improvement to sprint
This commit is contained in:
parent
d9a8ac04c4
commit
cae032eb9a
@ -1909,7 +1909,12 @@ movetowards( goal )
|
||||
timeslow = 0;
|
||||
time = 0;
|
||||
|
||||
while ( distanceSquared( self.origin, goal ) > level.bots_goalDistance )
|
||||
if ( self.bot.issprinting )
|
||||
tempGoalDist = level.bots_goalDistance * 2;
|
||||
else
|
||||
tempGoalDist = level.bots_goalDistance;
|
||||
|
||||
while ( distanceSquared( self.origin, goal ) > tempGoalDist )
|
||||
{
|
||||
self botMoveTo( goal );
|
||||
|
||||
@ -1951,6 +1956,11 @@ movetowards( goal )
|
||||
else
|
||||
timeslow = 0;
|
||||
|
||||
if ( self.bot.issprinting )
|
||||
tempGoalDist = level.bots_goalDistance * 2;
|
||||
else
|
||||
tempGoalDist = level.bots_goalDistance;
|
||||
|
||||
if ( stucks == 2 )
|
||||
self notify( "bad_path_internal" );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user