From 04252e9420a164128ddaba11a5c54b46f05896fd Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Thu, 8 Feb 2024 23:29:17 -0800 Subject: [PATCH] Remove certain dvars --- scripts/zm/_zm_reimagined.gsc | 42 ------------------------------- scripts/zm/replaced/_zm_audio.gsc | 5 ---- 2 files changed, 47 deletions(-) diff --git a/scripts/zm/_zm_reimagined.gsc b/scripts/zm/_zm_reimagined.gsc index f4b20f02..c412c263 100644 --- a/scripts/zm/_zm_reimagined.gsc +++ b/scripts/zm/_zm_reimagined.gsc @@ -437,33 +437,6 @@ set_dvars() setDvar("sv_voice", 2); setDvar("sv_voiceQuality", 9); - - setDvar("sv_cheats", 0); - - if (getDvar("hud_timer") == "") - { - setDvar("hud_timer", 1); - } - - if (getDvar("hud_enemy_counter") == "") - { - setDvar("hud_enemy_counter", 1); - } - - if (getDvar("hud_health_bar") == "") - { - setDvar("hud_health_bar", 1); - } - - if (getDvar("hud_zone_name") == "") - { - setDvar("hud_zone_name", 1); - } - - if (getDvar("disable_character_dialog") == "") - { - setDvar("disable_character_dialog", 0); - } } set_client_dvars() @@ -568,11 +541,6 @@ enemy_counter_hud() flag_wait("hud_visible"); - if (!getDvarInt("hud_enemy_counter")) - { - return; - } - hud.alpha = 1; while (1) @@ -641,11 +609,6 @@ timer_hud() flag_wait("hud_visible"); - if (!getDvarInt("hud_timer")) - { - return; - } - hud.alpha = 1; if (!flag("initial_blackscreen_passed")) @@ -692,11 +655,6 @@ round_timer_hud() hud thread set_time_frozen_on_end_game(); - if (!getDvarInt("hud_timer")) - { - return; - } - hud.alpha = 1; if (!flag("initial_blackscreen_passed")) diff --git a/scripts/zm/replaced/_zm_audio.gsc b/scripts/zm/replaced/_zm_audio.gsc index c4c57652..58041699 100644 --- a/scripts/zm/replaced/_zm_audio.gsc +++ b/scripts/zm/replaced/_zm_audio.gsc @@ -22,11 +22,6 @@ create_and_play_dialog(category, type, response, force_variant, override) return; } - if (getDvarInt("disable_character_dialog")) - { - return; - } - isresponse = 0; alias_suffix = undefined; index = undefined;