From 6329feed90f22b91c0c0f2294b6dbe5ee068f9c2 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sat, 4 Sep 2010 14:36:35 +0300 Subject: [PATCH] Show "me" instead of health in the stomach board for your own self (you see your health in the normal area on the HUD) --- data/qcsrc/client/sbar.qc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 7a3b08cd..46b88233 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -980,10 +980,15 @@ void Sbar_PrintStomachboardItem(vector pos, entity pl) if(field == ST_HEALTH) if(g_vore_showpreyhealth && stof(str)) { // only if player health is not 0 pos_x += 138; - drawpic(pos, "gfx/hud/sb_health", '11 11 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); + if(pl.sv_entnum == player_localentnum - 1 || (spectatee_status && pl.sv_entnum == spectatee_status - 1)) + drawcolorcodedstring(pos, " me", '11 11 0', sbar_alpha_fg, DRAWFLAG_NORMAL); + else + { + drawpic(pos, "gfx/hud/sb_health", '11 11 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); - pos_x += 9; - drawcolorcodedstring(pos, str, '11 11 0', sbar_alpha_fg, DRAWFLAG_NORMAL); + pos_x += 9; + drawcolorcodedstring(pos, str, '11 11 0', sbar_alpha_fg, DRAWFLAG_NORMAL); + } } } } -- 2.39.2