seta sbar_scoreboard_highlight 1 "enable highlighting for rows and columns in the scoreboard"\r
seta sbar_scoreboard_highlight_alpha 0.10 "highlight alpha value (depends on sbar_scoreboard_highlight 1)"\r
seta sbar_scoreboard_highlight_alpha_self 0.25 "self highlight alpha value"\r
+seta sbar_stomachboard_status_brightness 0.5 "brightness of the stomach board status"\r
+seta sbar_stomachboard_status_alpha 0.75 "alpha of the stomach board status"\r
+seta sbar_stomachboard_highlight_brightness 0.5 "brightness of the stomach board highlight"\r
+seta sbar_stomachboard_highlight_alpha 0.25 "alpha of the stomach board highlight"\r
seta sbar_timer_increment 0 "1 = show elapsed time on the timer"\r
seta sbar_timer_scale 1 "scale multiplier of the timer"\r
seta sbar_vote_alreadyvoted_alpha 0.75 "alpha of the vote dialog after you have voted"\r
if(field == ST_NAME) // do this for one field, or we get multiple highlights in the same spot\r
{\r
if(getstati(STAT_STOMACH_EATEN))\r
- drawfill(pos - '0 0 0', '193 11 0', '1 0 0', 0.25, DRAWFLAG_NORMAL);\r
+ drawfill(pos - '0 0 0', '193 11 0', '1 0 0' * cvar("sbar_stomachboard_highlight_brightness"), cvar("sbar_stomachboard_highlight_alpha"), DRAWFLAG_NORMAL);\r
else\r
- drawfill(pos - '0 0 0', '193 11 0', '0 1 0', 0.25, DRAWFLAG_NORMAL);\r
+ drawfill(pos - '0 0 0', '193 11 0', '0 1 0' * cvar("sbar_stomachboard_highlight_brightness"), cvar("sbar_stomachboard_highlight_alpha"), DRAWFLAG_NORMAL);\r
}\r
\r
if(field == ST_NAME) {\r
\r
drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach", '256 256 0', color, sbar_alpha_bg, DRAWFLAG_NORMAL);\r
}\r
- vector stomach_status_color;\r
+\r
if(getstati(STAT_STOMACH_EATEN))\r
{\r
- stomach_status_color_x = bound(0.25, vlen(color), 1); // reflect HUD background brightness, but only up to a certain limit (so the color is still visible with black HUD)\r
- stomach_status_color_y = 0;\r
- stomach_status_color_z = 0;\r
-\r
- drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach_status", '256 256 0', Stomachstatus_Colortrans(stomach_status_color), sbar_alpha_bg, DRAWFLAG_NORMAL);\r
+ drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach_status", '256 256 0', '1 0 0' * cvar("sbar_stomachboard_status_brightness"), cvar("sbar_stomachboard_status_alpha"), DRAWFLAG_NORMAL);\r
drawstring(bottomleft - '-80 168 0', "predator:", '8 8 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
}\r
else\r
{\r
- stomach_status_color_x = 0;\r
- stomach_status_color_y = bound(0.25, vlen(color), 1); // reflect HUD background brightness, but only up to a certain limit (so the color is still visible with black HUD)\r
- stomach_status_color_z = 0;\r
-\r
- drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach_status", '256 256 0', Stomachstatus_Colortrans(stomach_status_color), sbar_alpha_bg, DRAWFLAG_NORMAL);\r
+ drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach_status", '256 256 0', '0 1 0' * cvar("sbar_stomachboard_status_brightness"), cvar("sbar_stomachboard_status_alpha"), DRAWFLAG_NORMAL);\r
drawstring(bottomleft - '-80 168 0', "self:", '8 8 0', ' 1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
}\r
}\r