]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Add stomach board indicator to show whether you are seeing your stomach or your preda...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 4 Sep 2010 16:13:37 +0000 (19:13 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 4 Sep 2010 16:13:37 +0000 (19:13 +0300)
data/gfx/hud/bg_stomach_status.tga [new file with mode: 0644]
data/qcsrc/client/sbar.qc

diff --git a/data/gfx/hud/bg_stomach_status.tga b/data/gfx/hud/bg_stomach_status.tga
new file mode 100644 (file)
index 0000000..0f8082c
Binary files /dev/null and b/data/gfx/hud/bg_stomach_status.tga differ
index 48eaf4b007148df21add7df77a47b187c104bc6a..663c3c219f07cd00f2e8fffd7fec4a56f45ebc79 100644 (file)
@@ -2880,6 +2880,10 @@ void Sbar_Draw (void)
 \r
                                drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach", '256 256 0', color, sbar_alpha_bg, DRAWFLAG_NORMAL);\r
                        }\r
+                       if(getstati(STAT_STOMACH_EATEN))\r
+                               drawpic(bottomleft- '0 256 0', "gfx/hud/bg_stomach_status", '256 256 0', '1 0 0', sbar_alpha_bg, DRAWFLAG_NORMAL);\r
+                       else\r
+                               drawpic(bottomleft- '0 256 0', "gfx/hud/bg_stomach_status", '256 256 0', '0 1 0', sbar_alpha_bg, DRAWFLAG_NORMAL);\r
                }\r
                float stomach_load;\r
                stomach_load = getstati(STAT_STOMACH_LOAD); // shows the predator's stomach load when we are eaten, and ours otherwise\r