From 166a9275899ab82480b7d0e19eb628d9a7c7c33c Mon Sep 17 00:00:00 2001 From: Stevu Date: Thu, 1 Feb 2024 20:28:36 +0000 Subject: [PATCH] fix(convars) #259 - don't modify sv_use_steam_voice or sm_mapvote_extend --- src/scripting/ConVars.sp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/scripting/ConVars.sp b/src/scripting/ConVars.sp index 82a72a2..0630765 100644 --- a/src/scripting/ConVars.sp +++ b/src/scripting/ConVars.sp @@ -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")); @@ -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); @@ -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)