From 3835cc952185151d4f3acfadedd247d726f13d2d Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 20 Nov 2016 07:05:01 +1000 Subject: [PATCH] Remove some unused cvars --- qcsrc/client/autocvars.qh | 12 ++---------- qcsrc/client/hud/panel/scoreboard.qc | 16 ++++++++-------- qcsrc/common/constants.qh | 2 +- qcsrc/common/minigames/minigame/bd.qc | 2 ++ qcsrc/common/minigames/minigame/snake.qc | 2 ++ qcsrc/common/notifications/all.qh | 4 +++- qcsrc/common/t_items.qc | 1 + qcsrc/common/vehicles/vehicle/racer.qc | 2 +- qcsrc/common/vehicles/vehicle/spiderbot.qc | 4 ++-- 9 files changed, 22 insertions(+), 23 deletions(-) diff --git a/qcsrc/client/autocvars.qh b/qcsrc/client/autocvars.qh index 33d1bc2132..193b7ef7ca 100644 --- a/qcsrc/client/autocvars.qh +++ b/qcsrc/client/autocvars.qh @@ -122,7 +122,7 @@ string autocvar_crosshair_hitindication_per_weapon_color; float autocvar_crosshair_hitindication_speed; bool autocvar_crosshair_hittest; bool autocvar_crosshair_hittest_blur; -float autocvar_crosshair_hittest_scale = 1.25; +//float autocvar_crosshair_hittest_scale = 1.25; bool autocvar_crosshair_hittest_showimpact; bool autocvar_crosshair_per_weapon; float autocvar_crosshair_pickup; @@ -208,7 +208,7 @@ bool autocvar_hud_panel_engineinfo_dynamichud = true; bool autocvar_hud_panel_infomessages_dynamichud = false; bool autocvar_hud_panel_physics_dynamichud = true; bool autocvar_hud_panel_centerprint_dynamichud = true; -bool autocvar_hud_panel_itemstime_dynamichud = true; +//bool autocvar_hud_panel_itemstime_dynamichud = true; bool autocvar_hud_panel_healtharmor_hide_ondeath = false; bool autocvar_hud_panel_ammo_hide_ondeath = false; bool autocvar_hud_panel_powerups_hide_ondeath = false; @@ -442,13 +442,5 @@ float autocvar_cl_deathglow; bool autocvar_developer_csqcentities; float autocvar_g_jetpack_attenuation; bool autocvar_cl_showspectators; -string autocvar_crosshair_hmg = ""; -vector autocvar_crosshair_hmg_color = '0.2 1.0 0.2'; -float autocvar_crosshair_hmg_alpha = 1; -float autocvar_crosshair_hmg_size = 1; -string autocvar_crosshair_rpc = ""; -vector autocvar_crosshair_rpc_color = '0.2 1.0 0.2'; -float autocvar_crosshair_rpc_alpha = 1; -float autocvar_crosshair_rpc_size = 1; int autocvar_cl_nade_timer; bool autocvar_r_drawviewmodel; diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 994ff12aa5..934fe7106a 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -31,14 +31,14 @@ float sbt_highlight_alpha_self; // provide basic panel cvars to old clients // TODO remove them after a future release (0.8.2+) -string autocvar_hud_panel_scoreboard_pos = "0.150000 0.150000"; -string autocvar_hud_panel_scoreboard_size = "0.700000 0.700000"; -string autocvar_hud_panel_scoreboard_bg = "border_default"; -string autocvar_hud_panel_scoreboard_bg_color = "0 0.3 0.5"; -string autocvar_hud_panel_scoreboard_bg_color_team = ""; -string autocvar_hud_panel_scoreboard_bg_alpha = "0.7"; -string autocvar_hud_panel_scoreboard_bg_border = ""; -string autocvar_hud_panel_scoreboard_bg_padding = ""; +noref string autocvar_hud_panel_scoreboard_pos = "0.150000 0.150000"; +noref string autocvar_hud_panel_scoreboard_size = "0.700000 0.700000"; +noref string autocvar_hud_panel_scoreboard_bg = "border_default"; +noref string autocvar_hud_panel_scoreboard_bg_color = "0 0.3 0.5"; +noref string autocvar_hud_panel_scoreboard_bg_color_team = ""; +noref string autocvar_hud_panel_scoreboard_bg_alpha = "0.7"; +noref string autocvar_hud_panel_scoreboard_bg_border = ""; +noref string autocvar_hud_panel_scoreboard_bg_padding = ""; float autocvar_hud_panel_scoreboard_fadeinspeed = 10; float autocvar_hud_panel_scoreboard_fadeoutspeed = 5; diff --git a/qcsrc/common/constants.qh b/qcsrc/common/constants.qh index 0682b331f6..14a02b4cc9 100644 --- a/qcsrc/common/constants.qh +++ b/qcsrc/common/constants.qh @@ -255,7 +255,7 @@ vector autocvar_sv_player_viewoffset = '0 0 20'; vector autocvar_sv_player_crouch_maxs = '16 16 25'; vector autocvar_sv_player_crouch_mins = '-16 -16 -24'; vector autocvar_sv_player_crouch_viewoffset = '0 0 20'; -vector autocvar_sv_player_headsize = '24 24 12'; +//vector autocvar_sv_player_headsize = '24 24 12'; #endif diff --git a/qcsrc/common/minigames/minigame/bd.qc b/qcsrc/common/minigames/minigame/bd.qc index 911d19d370..09fae55d80 100644 --- a/qcsrc/common/minigames/minigame/bd.qc +++ b/qcsrc/common/minigames/minigame/bd.qc @@ -47,7 +47,9 @@ const int BD_DIR_DN = 1; const int BD_DIR_LF = 2; const int BD_DIR_RT = 3; +#ifdef SVQC string autocvar_sv_minigames_bulldozer_startlevel = "level1"; +#endif // find same game piece given its tile name entity bd_find_piece(entity minig, string tile, bool check_target) diff --git a/qcsrc/common/minigames/minigame/snake.qc b/qcsrc/common/minigames/minigame/snake.qc index 7f0fdb2ff7..3aedeb0163 100644 --- a/qcsrc/common/minigames/minigame/snake.qc +++ b/qcsrc/common/minigames/minigame/snake.qc @@ -21,7 +21,9 @@ bool autocvar_sv_minigames_snake_wrap = false; float autocvar_sv_minigames_snake_delay_initial = 0.7; float autocvar_sv_minigames_snake_delay_multiplier = 50; float autocvar_sv_minigames_snake_delay_min = 0.1; +#ifdef SVQC int autocvar_sv_minigames_snake_lives = 3; +#endif .int snake_score; diff --git a/qcsrc/common/notifications/all.qh b/qcsrc/common/notifications/all.qh index d2682a148f..5e5fbf1d60 100644 --- a/qcsrc/common/notifications/all.qh +++ b/qcsrc/common/notifications/all.qh @@ -200,8 +200,8 @@ GENERIC_COMMAND(dumpnotifs, "Dump all notifications into notifications_dump.txt" } } -float autocvar_notification_debug = false; #ifdef NOTIFICATIONS_DEBUG +bool autocvar_notification_debug = false; void Debug_Notification(string input) { switch (autocvar_notification_debug) @@ -297,8 +297,10 @@ float autocvar_notification_show_sprees_info = 3; // 0 = off, 1 = target only, 2 float autocvar_notification_show_sprees_info_newline = true; float autocvar_notification_show_sprees_info_specialonly = true; float autocvar_notification_errors_are_fatal = true; +#ifdef SVQC float autocvar_notification_lifetime_runtime = 0.5; float autocvar_notification_lifetime_mapload = 10; +#endif #ifdef SVQC .float FRAG_VERBOSE; diff --git a/qcsrc/common/t_items.qc b/qcsrc/common/t_items.qc index 46ee92d906..2f1a4c3aa6 100644 --- a/qcsrc/common/t_items.qc +++ b/qcsrc/common/t_items.qc @@ -1796,6 +1796,7 @@ float GiveItems(entity e, float beginarg, float endarg) }); POSTGIVE_VALUE(e, strength_finished, 1, SND_POWERUP, SND_POWEROFF); POSTGIVE_VALUE(e, invincible_finished, 1, SND_Shield, SND_POWEROFF); + //POSTGIVE_VALUE(e, superweapons_finished, 1, SND_Null, SND_Null); POSTGIVE_VALUE(e, ammo_nails, 0, SND_ITEMPICKUP, SND_Null); POSTGIVE_VALUE(e, ammo_cells, 0, SND_ITEMPICKUP, SND_Null); POSTGIVE_VALUE(e, ammo_plasma, 0, SND_ITEMPICKUP, SND_Null); diff --git a/qcsrc/common/vehicles/vehicle/racer.qc b/qcsrc/common/vehicles/vehicle/racer.qc index 41a31743f6..0cdfc8cb87 100644 --- a/qcsrc/common/vehicles/vehicle/racer.qc +++ b/qcsrc/common/vehicles/vehicle/racer.qc @@ -35,7 +35,7 @@ float autocvar_g_vehicle_racer_friction = 0.45; float autocvar_g_vehicle_racer_water_time = 5; -float autocvar_g_vehicle_racer_collision_multiplier = 0.05; +//float autocvar_g_vehicle_racer_collision_multiplier = 0.05; // 0 = hover, != 0 = maglev int autocvar_g_vehicle_racer_hovertype = 0; diff --git a/qcsrc/common/vehicles/vehicle/spiderbot.qc b/qcsrc/common/vehicles/vehicle/spiderbot.qc index 347d2120aa..d99335a51c 100644 --- a/qcsrc/common/vehicles/vehicle/spiderbot.qc +++ b/qcsrc/common/vehicles/vehicle/spiderbot.qc @@ -603,8 +603,8 @@ METHOD(Spiderbot, vr_setup, void(Spiderbot thisveh, entity instance)) #endif // SVQC #ifdef CSQC -float autocvar_cl_vehicle_spiderbot_cross_alpha = 0.6; -float autocvar_cl_vehicle_spiderbot_cross_size = 1; +//float autocvar_cl_vehicle_spiderbot_cross_alpha = 0.6; +//float autocvar_cl_vehicle_spiderbot_cross_size = 1; METHOD(Spiderbot, vr_hud, void(Spiderbot thisveh)) { -- 2.39.2