From: MirceaKitsune Date: Sun, 5 Sep 2010 23:46:19 +0000 (+0300) Subject: Cvar scoreboard offset X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2a22fb7e4b83c62121f8fbb2038174ed368c7ca7;p=voretournament%2Fvoretournament.git Cvar scoreboard offset --- diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index 2c815b43..392a91d8 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -1112,6 +1112,7 @@ seta sbar_color_bg_r 0.25 "red color component of the HUD background" seta sbar_color_bg_g 0 "green color component of the HUD background" seta sbar_color_bg_b 0.5 "blue color component of the HUD background" seta sbar_color_bg_team 0.5 "team color multiplier of the HUD background" +seta sbar_scoreboard_offset 100 "scoreboard vertical position" seta sbar_scoreboard_alpha_bg 0.6 "scoreboard background alpha" seta sbar_scoreboard_alpha_fg 1 "scoreboard foreground alpha" seta sbar_scoreboard_alpha_name 0.9 "alpha of player text in scoreboard list other than self" diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index bb210996..a8ba3833 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -29,7 +29,7 @@ float ps_primary, ps_secondary; float ts_primary, ts_secondary; vector color; -float SCOREBOARD_OFFSET = 100; +float SCOREBOARD_OFFSET = cvar("sbar_scoreboard_offset"); void CSQC_kh_hudreset(); void CSQC_kh_hud();