Skip to content

Commit

Permalink
fix(convars) #259 - don't modify sv_use_steam_voice or sm_mapvote_extend
Browse files Browse the repository at this point in the history
  • Loading branch information
safalin1 committed Feb 1, 2024
1 parent 15b1e07 commit 166a927
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/scripting/ConVars.sp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ void ResetConVars()
g_hConVarPluginForceBossgame.RestoreDefault();

// Non-Exclusive ConVars
// Server ConVars
SetConVarInt(FindConVar("sv_use_steam_voice"), 0);

// Multiplayer ConVars
ResetConVar(FindConVar("mp_stalemate_enable"));
Expand All @@ -92,19 +90,10 @@ void ResetConVars()
ResetConVar(FindConVar("tf_max_health_boost"));
ResetConVar(FindConVar("tf_airblast_cray_ground_minz"));
ResetConVar(FindConVar("tf_player_movement_restart_freeze"));

ConVar conVar = FindConVar("sm_mapvote_extend");
if (conVar != INVALID_HANDLE)
{
ResetConVar(conVar);
}
}

void PrepareConVars()
{
// Server ConVars
SetConVarInt(FindConVar("sv_use_steam_voice"), 1);

// Multiplayer ConVars
SetConVarInt(FindConVar("mp_stalemate_enable"), 0);
SetConVarInt(FindConVar("mp_friendlyfire"), 1);
Expand All @@ -124,12 +113,6 @@ void PrepareConVars()
g_hConVarServerGravity.IntValue = 800;
g_hConVarHostTimescale.FloatValue = 1.0;
g_hConVarPhysTimescale.FloatValue = 1.0;

Handle conVar = FindConVar("sm_mapvote_extend");
if (conVar != INVALID_HANDLE)
{
SetConVarInt(conVar, 0);
}
}

public void OnMaxRoundsChanged(Handle cvar, const char[] oldVal, const char[] newVal)
Expand Down

0 comments on commit 166a927

Please sign in to comment.