]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Show "me" instead of health in the stomach board for your own self (you see your...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 4 Sep 2010 11:36:35 +0000 (14:36 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 4 Sep 2010 11:36:35 +0000 (14:36 +0300)
data/qcsrc/client/sbar.qc

index 7a3b08cd87494b40cdbd7b9a318f0a90d33cb363..46b8823375a5bb0047fa69580a3275005cda6851 100644 (file)
@@ -980,10 +980,15 @@ void Sbar_PrintStomachboardItem(vector pos, entity pl)
                if(field == ST_HEALTH)\r
                if(g_vore_showpreyhealth && stof(str)) { // only if player health is not 0\r
                        pos_x += 138;\r
-                               drawpic(pos, "gfx/hud/sb_health", '11 11 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+                               if(pl.sv_entnum == player_localentnum - 1 || (spectatee_status && pl.sv_entnum == spectatee_status - 1))\r
+                                       drawcolorcodedstring(pos, " me", '11 11 0', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+                               else\r
+                               {\r
+                                       drawpic(pos, "gfx/hud/sb_health", '11 11 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
 \r
-                       pos_x += 9;\r
-                               drawcolorcodedstring(pos, str, '11 11 0', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+                                       pos_x += 9;\r
+                                               drawcolorcodedstring(pos, str, '11 11 0', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+                               }\r
                }\r
        }\r
 }\r