From: MirceaKitsune Date: Sat, 4 Sep 2010 11:36:35 +0000 (+0300) Subject: Show "me" instead of health in the stomach board for your own self (you see your... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6329feed90f22b91c0c0f2294b6dbe5ee068f9c2;p=voretournament%2Fvoretournament.git Show "me" instead of health in the stomach board for your own self (you see your health in the normal area on the HUD) --- 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); + } } } }