From c90a6276f96611225f238a75f8c921910c747bec Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sat, 4 Sep 2010 01:42:44 +0300 Subject: [PATCH] This comes here --- data/qcsrc/client/sbar.qc | 48 +++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 28e350f7..d71abb52 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -2902,6 +2902,30 @@ void Sbar_Draw (void) drawstring(bottomleft - '-76 150 0', "stomach has prey", '14 14 0', '0.75 1 0.75', sbar_alpha_fg, DRAWFLAG_NORMAL); } + // draw the stomach board + if not(getstati(STAT_STOMACH_EATEN)) // useless if we're inside someone + { + entity pl; + float f; + + pos = bottomleft; + for(pl = players.sort_next; pl; pl = pl.sort_next) + { + if(pl.team == COLOR_SPECTATOR) + continue; + + if(spectatee_status) + f = pl.pleater == spectatee_status; + else + f = pl.pleater == player_localentnum; + if(f) + { + Sbar_PrintStomachboardItem(pos - '-16 124 0', pl); + pos_y += 1.25 * sbar_fontsize_y; + } + } + } + if (cvar("viewsize") <= 100 && vid_conwidth <= 1600) { if (teamplay) drawpic(bottom - '96 96 0', "gfx/hud/bg_status", '192 96 0', GetTeamRGB(myteam) * sbar_color_bg_team, sbar_alpha_bg, DRAWFLAG_NORMAL); // hud color = myteam color @@ -2938,30 +2962,6 @@ void Sbar_Draw (void) Sbar_DrawXNum(pos - '144 16 0', a, 3, 0, 16, '1 1 1', 0, 0, sbar_alpha_fg, DRAWFLAG_NORMAL); } - // draw the stomach board - if not(getstati(STAT_STOMACH_EATEN)) // useless if we're inside someone - { - entity pl; - float f; - - pos = bottomleft; - for(pl = players.sort_next; pl; pl = pl.sort_next) - { - if(pl.team == COLOR_SPECTATOR) - continue; - - if(spectatee_status) - f = pl.pleater == spectatee_status; - else - f = pl.pleater == player_localentnum; - if(f) - { - Sbar_PrintStomachboardItem(pos - '-16 124 0', pl); - pos_y += 1.25 * sbar_fontsize_y; - } - } - } - // draw scores and timer Sbar_Score(); Sbar_Timer(); -- 2.39.2