float ts_primary, ts_secondary;\r
\r
vector color;\r
-float SCOREBOARD_OFFSET = cvar("sbar_scoreboard_offset");\r
\r
void CSQC_kh_hudreset();\r
void CSQC_kh_hud();\r
sbwidth = Sbar_GetWidth(6.5 * sbar_fontsize_y);\r
\r
xmin = 0.5 * (vid_conwidth - sbwidth);\r
- ymin = SCOREBOARD_OFFSET;\r
+ ymin = cvar("sbar_scoreboard_offset");\r
\r
xmax = vid_conwidth - xmin;\r
ymax = vid_conheight - 0.2*vid_conheight;\r
\r
drawfont = sbar_bigfont;\r
pos_x = 0;\r
- pos_y = SCOREBOARD_OFFSET;\r
+ pos_y = cvar("sbar_scoreboard_offset");\r
pos_z = 0;\r
drawstringcenter(pos, "Weapon Accuracy", 2 * sbar_fontsize, '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
\r
return;\r
}\r
\r
- float top_border_hitscan = SCOREBOARD_OFFSET + 55; // position where the hitscan row starts: pixels down the screen\r
+ float top_border_hitscan = cvar("sbar_scoreboard_offset") + 55; // position where the hitscan row starts: pixels down the screen\r
Sbar_DrawAccuracyStats_Description_Hitscan('1 0 0' * col_margin + '0 1 0' * top_border_hitscan);\r
\r
- float top_border_splash = SCOREBOARD_OFFSET + 175; // position where the splash row starts: pixels down the screen\r
+ float top_border_splash = cvar("sbar_scoreboard_offset") + 175; // position where the splash row starts: pixels down the screen\r
Sbar_DrawAccuracyStats_Description_Splash('1 0 0' * col_margin + '0 1 0' * top_border_splash);\r
\r
for(i = WEP_FIRST; i <= WEP_LAST; ++i)\r