]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/sbar.qc
Show the predator's name on the stomach board.
[voretournament/voretournament.git] / data / qcsrc / client / sbar.qc
index 91825f7239b1665bfcbf774011e464aefdaea1a1..daa86a564eec547ceec47abef3a751f46f603711 100644 (file)
@@ -2893,13 +2893,13 @@ void Sbar_Draw (void)
                        drawstring(bottomleft - '-40 170 0', "/", '22 22 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                        Sbar_DrawXNum(bottomleft - '-50 170 0', bound(0, g_balance_vore_swallow_limit, 9), 1, 0, 22, '1 1 1', 0, 0, sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                        if(getstati(STAT_STOMACH_DIGESTING))\r
-                               drawstring(bottomleft - '-76 150 0', "stomach digesting", '14 14 0', '1 0.5 0.5', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+                               drawstring(bottomleft - '-76 142 0', "stomach digesting", '12 12 0', '1 0.5 0.5', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                        else if(stomach_load == g_balance_vore_swallow_limit)\r
-                               drawstring(bottomleft - '-76 150 0', "stomach full", '14 14 0', '0.5 1 0.5', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+                               drawstring(bottomleft - '-76 142 0', "stomach full", '12 12 0', '0.5 1 0.5', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                        else if(!stomach_load)\r
-                               drawstring(bottomleft - '-76 150 0', "stomach empty", '14 14 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+                               drawstring(bottomleft - '-76 142 0', "stomach empty", '12 12 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                        else\r
-                               drawstring(bottomleft - '-76 150 0', "stomach has prey", '14 14 0', '0.75 1 0.75', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+                               drawstring(bottomleft - '-76 142 0', "stomach has prey", '12 12 0', '0.75 1 0.75', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                //}\r
 \r
                // draw the stomach board\r
@@ -2915,7 +2915,10 @@ void Sbar_Draw (void)
                                        continue;\r
 \r
                                if(getstati(STAT_STOMACH_EATEN))\r
+                               {\r
                                        f = pl.pleater == getstati(STAT_STOMACH_EATEN);\r
+                                       dprint(strcat(ftos(getstati(STAT_STOMACH_EATEN)), "<<++++++++++++++++++++++\n"));\r
+                               }\r
                                else\r
                                {\r
                                        if(spectatee_status)\r
@@ -2929,6 +2932,10 @@ void Sbar_Draw (void)
                                        Sbar_PrintStomachboardItem(pos - '-16 124 0', pl);\r
                                        pos_y += 1.25 * sbar_fontsize_y;\r
                                }\r
+\r
+                               if(getstati(STAT_STOMACH_EATEN))\r
+                               if(pl.sv_entnum == getstati(STAT_STOMACH_EATEN) - 1)\r
+                                       Sbar_PrintStomachboardItem(pos - '-76 156 0', pl);\r
                        }\r
                //}\r
 \r