mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-22 10:15:44 +00:00
change some values for detecting stuckness
This commit is contained in:
parent
0f95ebacb8
commit
15143dbb85
@ -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" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user