From 7d870cd0d9c45e0e060a88b8703d46598a4ff4df Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Fri, 15 Apr 2011 18:04:42 +0300 Subject: [PATCH 1/1] Highlight team mates in a different color, in the stomach board --- data/defaultVT.cfg | 3 ++- data/qcsrc/client/sbar.qc | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/data/defaultVT.cfg b/data/defaultVT.cfg index 7b5dac26..f5094fa4 100644 --- a/data/defaultVT.cfg +++ b/data/defaultVT.cfg @@ -1140,7 +1140,8 @@ seta sbar_scoreboard_highlight 1 "enable highlighting for rows and columns in th seta sbar_scoreboard_highlight_alpha 0.10 "highlight alpha value (depends on sbar_scoreboard_highlight 1)" seta sbar_scoreboard_highlight_alpha_self 0.25 "self highlight alpha value" seta sbar_stomachboard_color1 "0 0.5 0" "RGB color of the stomach board indicators for self" -seta sbar_stomachboard_color2 "0.5 0 0" "RGB color of the stomach board indicators for predator" +seta sbar_stomachboard_color2 "0.5 0.5 0" "RGB color of the stomach board indicators for team mates" +seta sbar_stomachboard_color3 "0.5 0 0" "RGB color of the stomach board indicators for predators" seta sbar_stomachboard_status_alpha 0.75 "alpha of the stomach board status" seta sbar_stomachboard_status_fade 1 "color fading speed of the stomach board status" seta sbar_stomachboard_highlight_alpha 0.25 "alpha of the stomach board highlight" diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index d78c7789..c9d1d4f1 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -930,6 +930,8 @@ void Sbar_PrintStomachboardItem(vector pos, entity pl) if(field == ST_HIGHLIGHT) { if(getstati(STAT_VORE_EATEN)) + drawfill(pos - '0 0 0', '193 11 0', stov(cvar_string("sbar_stomachboard_color3")), cvar("sbar_stomachboard_highlight_alpha") * sbar_alpha_fg, DRAWFLAG_NORMAL); + else if(pl.team == myteam) drawfill(pos - '0 0 0', '193 11 0', stov(cvar_string("sbar_stomachboard_color2")), cvar("sbar_stomachboard_highlight_alpha") * sbar_alpha_fg, DRAWFLAG_NORMAL); else drawfill(pos - '0 0 0', '193 11 0', stov(cvar_string("sbar_stomachboard_color1")), cvar("sbar_stomachboard_highlight_alpha") * sbar_alpha_fg, DRAWFLAG_NORMAL); -- 2.39.2