mirror of
https://github.com/ineedbots/t6_bot_warfare.git
synced 2025-04-22 17:45:43 +00:00
Fixed bot diffculty always being normal
This commit is contained in:
parent
a0e592bf29
commit
b3c5ac02eb
@ -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"
|
||||
|
Binary file not shown.
@ -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 );
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user