mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-08 19:08:27 +00:00
Clean up handles in shavit-replay.
This commit is contained in:
parent
a04e3463a7
commit
08fb809619
@ -383,30 +383,20 @@ public void OnMapStart()
|
|||||||
if(bot_controllable != null)
|
if(bot_controllable != null)
|
||||||
{
|
{
|
||||||
bot_controllable.BoolValue = false;
|
bot_controllable.BoolValue = false;
|
||||||
|
delete bot_controllable;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConVar bot_stop = FindConVar("bot_stop");
|
FindConVar("bot_stop").BoolValue = true;
|
||||||
bot_stop.BoolValue = true;
|
FindConVar("bot_quota_mode").SetString("normal");
|
||||||
|
FindConVar("mp_autoteambalance").BoolValue = false;
|
||||||
ConVar bot_quota_mode = FindConVar("bot_quota_mode");
|
FindConVar("mp_limitteams").IntValue = 0;
|
||||||
bot_quota_mode.SetString("normal");
|
FindConVar("bot_join_after_player").BoolValue = false;
|
||||||
|
FindConVar("bot_chatter").SetString("off");
|
||||||
ConVar mp_autoteambalance = FindConVar("mp_autoteambalance");
|
|
||||||
mp_autoteambalance.BoolValue = false;
|
|
||||||
|
|
||||||
ConVar mp_limitteams = FindConVar("mp_limitteams");
|
|
||||||
mp_limitteams.IntValue = 0;
|
|
||||||
|
|
||||||
ServerCommand("bot_kick");
|
ServerCommand("bot_kick");
|
||||||
|
|
||||||
gI_ExpectedBots = 0;
|
gI_ExpectedBots = 0;
|
||||||
|
|
||||||
ConVar bot_join_after_player = FindConVar("bot_join_after_player");
|
|
||||||
bot_join_after_player.BoolValue = false;
|
|
||||||
|
|
||||||
ConVar bot_chatter = FindConVar("bot_chatter");
|
|
||||||
bot_chatter.SetString("off");
|
|
||||||
|
|
||||||
char[] sPath = new char[PLATFORM_MAX_PATH];
|
char[] sPath = new char[PLATFORM_MAX_PATH];
|
||||||
BuildPath(Path_SM, sPath, PLATFORM_MAX_PATH, "data/replaybot");
|
BuildPath(Path_SM, sPath, PLATFORM_MAX_PATH, "data/replaybot");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user