change func name

This commit is contained in:
ineed bots 2023-11-29 01:20:20 -06:00
parent 7b936f74fc
commit fafcf4a507

View File

@ -1775,7 +1775,7 @@ walk()
{ {
wait 0.05; wait 0.05;
self botMoveTo( self.origin ); self botSetMoveTo( self.origin );
if ( !getDvarInt( "bots_play_move" ) ) if ( !getDvarInt( "bots_play_move" ) )
continue; continue;
@ -1787,7 +1787,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.origin + self GetVelocity() * 500 ); self botSetMoveTo( self.origin + self GetVelocity() * 500 );
continue; continue;
} }
@ -1821,7 +1821,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" );
} }
@ -2022,7 +2022,7 @@ movetowards( goal )
while ( distanceSquared( self.origin, goal ) > tempGoalDist ) while ( distanceSquared( self.origin, goal ) > tempGoalDist )
{ {
self botMoveTo( goal ); self botSetMoveTo( goal );
if ( time > 3000 ) if ( time > 3000 )
{ {
@ -2039,7 +2039,7 @@ movetowards( goal )
self BotNotifyBotEvent( "stuck" ); self BotNotifyBotEvent( "stuck" );
self botMoveTo( randomDir ); self botSetMoveTo( randomDir );
wait stucks; wait stucks;
self stand(); self stand();
@ -2405,7 +2405,7 @@ prone()
/* /*
Bot will move towards here Bot will move towards here
*/ */
botMoveTo( where ) botSetMoveTo( where )
{ {
self.bot.moveTo = where; self.bot.moveTo = where;
} }