From: MirceaKitsune Date: Sat, 4 Sep 2010 11:20:48 +0000 (+0300) Subject: Don't show the health of our predator. At least for now... not sure if this should... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=629ccecfa096ae1b3a334214edeb6b4b31eeeb40;p=voretournament%2Fvoretournament.git Don't show the health of our predator. At least for now... not sure if this should be cvared later. --- diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 2ef328c0..6cc7ec2a 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -947,7 +947,7 @@ void Sbar_PrintScoreboardItem(vector pos, entity pl, float is_self, float pl_num } float fieldcounter; -void Sbar_PrintStomachboardItem(vector pos, entity pl) +void Sbar_PrintStomachboardItem(vector pos, entity pl, float showhealth) { vector tmp, rgb; rgb = GetTeamRGB(pl.team); @@ -977,6 +977,7 @@ void Sbar_PrintStomachboardItem(vector pos, entity pl) drawcolorcodedstring(pos, str, '11 11 0', sbar_alpha_fg, DRAWFLAG_NORMAL); } + if(showhealth) if(field == ST_HEALTH) { pos_x += 138; if(g_vore_showpreyhealth) @@ -2923,13 +2924,13 @@ void Sbar_Draw (void) if(f) { - Sbar_PrintStomachboardItem(pos - '-16 124 0', pl); + Sbar_PrintStomachboardItem(pos - '-16 124 0', pl, TRUE); pos_y += 1.25 * sbar_fontsize_y; } if(getstati(STAT_STOMACH_EATEN)) if(pl.sv_entnum == getstati(STAT_STOMACH_EATEN) - 1) - Sbar_PrintStomachboardItem(pos - '-76 156 0', pl); + Sbar_PrintStomachboardItem(pos - '-76 156 0', pl, FALSE); } if (cvar("viewsize") <= 100 && vid_conwidth <= 1600) {