From 1691a60787eca0208a526af1b9de3028656b02b3 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 5 Sep 2010 02:18:31 +0300 Subject: [PATCH] Highlight entries in the stomach board, to make it even more obvious if they're our prey or people who are joining us in a stomach --- data/qcsrc/client/sbar.qc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index e8920f46..f5a1a507 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -960,6 +960,14 @@ void Sbar_PrintStomachboardItem(vector pos, entity pl) str = Sbar_GetStomachField(pl, field); + if(field == ST_NAME) // do this for one field, or we get multiple highlights in the same spot + { + if(getstati(STAT_STOMACH_EATEN)) + drawfill(pos - '0 0 0', '193 11 0', '1 0 0', 0.25, DRAWFLAG_NORMAL); + else + drawfill(pos - '0 0 0', '193 11 0', '0 1 0', 0.25, DRAWFLAG_NORMAL); + } + if(field == ST_NAME) { f = stof(getplayerkey(pl.sv_entnum, "colors")); drawpic(pos, "gfx/sb_playercolor_base", '22 11 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); -- 2.39.2