change func name

This commit is contained in:
ineed bots 2023-11-29 01:18:20 -06:00
parent 8ecaf48ba9
commit e02f7d6cb2

View File

@ -2086,7 +2086,7 @@ walk()
if ( !isAlive( self ) ) if ( !isAlive( self ) )
return; return;
self botMoveTo( self.bot.moveOrigin ); self botSetMoveTo( self.bot.moveOrigin );
if ( !getDVarINt( "bots_play_move" ) ) if ( !getDVarINt( "bots_play_move" ) )
continue; continue;
@ -2098,7 +2098,7 @@ walk()
{ {
self.bot.last_next_wp = -1; self.bot.last_next_wp = -1;
self.bot.last_second_next_wp = -1; self.bot.last_second_next_wp = -1;
self botMoveTo( self.bot.moveOrigin + self GetVelocity() * 500 ); self botSetMoveTo( self.bot.moveOrigin + self GetVelocity() * 500 );
continue; continue;
} }
@ -2132,7 +2132,7 @@ strafe( target )
self.bot.last_next_wp = -1; self.bot.last_next_wp = -1;
self.bot.last_second_next_wp = -1; self.bot.last_second_next_wp = -1;
self botMoveTo( strafe ); self botSetMoveTo( strafe );
wait 2; wait 2;
self notify( "kill_goal" ); self notify( "kill_goal" );
} }
@ -2315,7 +2315,7 @@ movetowards( goal )
while ( distanceSquared( self.bot.moveOrigin, goal ) > tempGoalDist ) while ( distanceSquared( self.bot.moveOrigin, goal ) > tempGoalDist )
{ {
self botMoveTo( goal ); self botSetMoveTo( goal );
if ( time > 3000 ) if ( time > 3000 )
{ {
@ -2332,7 +2332,7 @@ movetowards( goal )
self BotNotifyBotEvent( "stuck" ); self BotNotifyBotEvent( "stuck" );
self botMoveTo( randomDir ); self botSetMoveTo( randomDir );
wait stucks; wait stucks;
self stand(); self stand();
@ -2734,7 +2734,7 @@ prone()
/* /*
Bot will move towards here Bot will move towards here
*/ */
botMoveTo( where ) botSetMoveTo( where )
{ {
self.bot.moveTo = where; self.bot.moveTo = where;
} }