Added bot_aim dvar

This commit is contained in:
ineedbots
2021-08-26 10:41:55 -06:00
parent 44075bbfdb
commit fa14c3d77c
2 changed files with 17 additions and 1 deletions

View File

@ -2579,7 +2579,7 @@ bot_lookat( pos, time, vel, doAimPredict )
self endon( "spawned_player" );
level endon ( "game_ended" );
if ( level.gameEnded || !gameFlag( "prematch_done" ) || self.bot.isfrozen )
if ( level.gameEnded || !gameFlag( "prematch_done" ) || self.bot.isfrozen || !getDvarInt( "bots_play_aim" ) )
return;
if ( !isDefined( pos ) )