From: MirceaKitsune Date: Sat, 4 Sep 2010 23:18:31 +0000 (+0300) Subject: Highlight entries in the stomach board, to make it even more obvious if they're our... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1691a60787eca0208a526af1b9de3028656b02b3;p=voretournament%2Fvoretournament.git 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 --- 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);