1
0
mirror of https://github.com/ineedbots/iw5_bot_warfare.git synced 2025-06-29 07:31:50 +00:00

added bot_aim dvar

This commit is contained in:
ineedbots
2021-08-26 10:45:27 -06:00
parent 0ebefd1a97
commit 267da299c1
2 changed files with 17 additions and 1 deletions

View File

@ -2734,7 +2734,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 ) )