change some values for detecting stuckness

This commit is contained in:
ineed bots 2022-04-08 22:56:23 -06:00
parent 0f95ebacb8
commit 15143dbb85

View File

@ -1927,11 +1927,11 @@ movetowards( goal )
{ {
self botMoveTo( goal ); self botMoveTo( goal );
if ( time > 3500 ) if ( time > 3000 )
{ {
time = 0; time = 0;
if ( distanceSquared( self.origin, lastOri ) < 128 ) if ( distanceSquared( self.origin, lastOri ) < 32 * 32 )
{ {
self thread knife(); self thread knife();
wait 0.5; wait 0.5;
@ -1954,9 +1954,9 @@ movetowards( goal )
{ {
self thread doMantle(); self thread doMantle();
} }
else if ( time > 2500 ) else if ( time == 2000 )
{ {
if ( distanceSquared( self.origin, lastOri ) < 128 ) if ( distanceSquared( self.origin, lastOri ) < 32 * 32 )
self crouch(); self crouch();
} }
@ -1973,7 +1973,7 @@ movetowards( goal )
else else
tempGoalDist = level.bots_goalDistance; tempGoalDist = level.bots_goalDistance;
if ( stucks == 2 ) if ( stucks >= 2 )
self notify( "bad_path_internal" ); self notify( "bad_path_internal" );
} }