drawcolorcodedstring(pos, textShortenToWidth(str, 138, '11 11 0', stringwidth_colors), '11 11 0', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
}\r
\r
- if(field == ST_HEALTH)\r
- if(stof(str) > 0) {\r
+ if(field == ST_HEALTH) {\r
pos_x += 138;\r
if(pl.sv_entnum == player_localentnum - 1 || (spectatee_status && pl.sv_entnum == spectatee_status - 1))\r
drawcolorcodedstring(pos, "self", '11 11 0', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
if(e.stat_eaten) // tempt hackers less by only sending the info of eaten players\r
{\r
if(cvar("g_vore_showhealth"))\r
- WriteByte(MSG_BROADCAST, e.health);\r
+ WriteShort(MSG_BROADCAST, e.health); // not WriteByte because we show minus health too\r
else\r
- WriteByte(MSG_BROADCAST, 0);\r
+ WriteShort(MSG_BROADCAST, 0);\r
WriteByte(MSG_BROADCAST, num_for_edict(e.predator));\r
}\r
else\r
{\r
- WriteByte(MSG_BROADCAST, 0);\r
+ WriteShort(MSG_BROADCAST, 0);\r
WriteByte(MSG_BROADCAST, 0);\r
}\r
self.cnt = mod(self.cnt + 1, maxclients);\r