]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Cvar scoreboard offset
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 5 Sep 2010 23:46:19 +0000 (02:46 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 5 Sep 2010 23:46:19 +0000 (02:46 +0300)
data/defaultVoretournament.cfg
data/qcsrc/client/sbar.qc

index 2c815b43916485bd8f5adcf8fbd7478a0523a243..392a91d8b235ed2b49b9293a2e109014b5c2112e 100644 (file)
@@ -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"\r
 seta sbar_color_bg_b 0.5 "blue color component of the HUD background"\r
 seta sbar_color_bg_team 0.5 "team color multiplier of the HUD background"\r
+seta sbar_scoreboard_offset 100 "scoreboard vertical position"\r
 seta sbar_scoreboard_alpha_bg 0.6 "scoreboard background alpha"\r
 seta sbar_scoreboard_alpha_fg 1 "scoreboard foreground alpha"\r
 seta sbar_scoreboard_alpha_name 0.9 "alpha of player text in scoreboard list other than self"\r
index bb210996291e90e185ffd6bfd3ef1ab98e3e8bd7..a8ba383336698978a9daaf9efd32e96a518bf2cd 100644 (file)
@@ -29,7 +29,7 @@ float ps_primary, ps_secondary;
 float ts_primary, ts_secondary;\r
 \r
 vector color;\r
-float SCOREBOARD_OFFSET = 100;\r
+float SCOREBOARD_OFFSET = cvar("sbar_scoreboard_offset");\r
 \r
 void CSQC_kh_hudreset();\r
 void CSQC_kh_hud();\r