Fixed bot diffculty always being normal

This commit is contained in:
ineedbots 2021-09-04 15:29:51 -06:00
parent a0e592bf29
commit b3c5ac02eb
3 changed files with 7 additions and 2 deletions

View File

@ -83,7 +83,7 @@ set spawnsystem_allow_non_team_spawns "0"
set bots_manage_fill "12"
set bots_manage_fill_kick "1"
set bots_team_force "1"
set bot_difficulty "3"
set bots_skill "3"
set scr_teambalance "1"
set g_inactivity "180"

View File

@ -52,6 +52,9 @@ init()
if ( getDvar( "bots_manage_fill_kick" ) == "" )
setDvar( "bots_manage_fill_kick", false ); //kick bots if too many
if ( getDvar( "bots_skill" ) == "" )
setDvar( "bots_skill", getDvarInt( "bot_difficulty" ) );
if ( getDvar( "bots_team" ) == "" )
setDvar( "bots_team", "autoassign" ); //which team for bots to join
@ -134,7 +137,7 @@ diffBots()
{
wait 1.5;
bot_set_difficulty( getdvarint( "bot_difficulty" ) );
bot_set_difficulty( getdvarint( "bots_skill" ) );
}
}
@ -267,6 +270,8 @@ bot_set_difficulty( difficulty )
setdvar( "bot_PitchUp", "0" );
setdvar( "bot_PitchDown", "0" );
}
setDvar( "bot_difficulty", difficulty );
}
/*