From: MirceaKitsune Date: Sat, 4 Sep 2010 16:13:37 +0000 (+0300) Subject: Add stomach board indicator to show whether you are seeing your stomach or your preda... X-Git-Url: https://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=18eb9d6dd7612869dba71d30255c072fe73f654e Add stomach board indicator to show whether you are seeing your stomach or your predator's. Not ready yet. --- diff --git a/data/gfx/hud/bg_stomach_status.tga b/data/gfx/hud/bg_stomach_status.tga new file mode 100644 index 00000000..0f8082c3 Binary files /dev/null and b/data/gfx/hud/bg_stomach_status.tga differ diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 48eaf4b0..663c3c21 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -2880,6 +2880,10 @@ void Sbar_Draw (void) drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach", '256 256 0', color, sbar_alpha_bg, DRAWFLAG_NORMAL); } + if(getstati(STAT_STOMACH_EATEN)) + drawpic(bottomleft- '0 256 0', "gfx/hud/bg_stomach_status", '256 256 0', '1 0 0', sbar_alpha_bg, DRAWFLAG_NORMAL); + else + drawpic(bottomleft- '0 256 0', "gfx/hud/bg_stomach_status", '256 256 0', '0 1 0', sbar_alpha_bg, DRAWFLAG_NORMAL); } float stomach_load; stomach_load = getstati(STAT_STOMACH_LOAD); // shows the predator's stomach load when we are eaten, and ours otherwise