fade = 3.2 - 2 * (time - weapontime);\r
fade = bound(0.7, fade, 1);\r
\r
- if not(getstati(STAT_STOMACH_EATEN)) // useless if we're inside someone\r
- {\r
- if (cvar("viewsize") <= 100 && vid_conwidth <= 1600) {\r
- if (teamplay)\r
- drawpic(bottomleft- '0 256 0', "gfx/hud/bg_stomach", '256 256 0', GetTeamRGB(myteam) * sbar_color_bg_team, sbar_alpha_bg, DRAWFLAG_NORMAL); // hud color = myteam color\r
- else {\r
- // allow for custom HUD colors in non-teamgames\r
- color_x = cvar("sbar_color_bg_r");\r
- color_y = cvar("sbar_color_bg_g");\r
- color_z = cvar("sbar_color_bg_b");\r
-\r
- drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach", '256 256 0', color, sbar_alpha_bg, DRAWFLAG_NORMAL);\r
- }\r
+ if (cvar("viewsize") <= 100 && vid_conwidth <= 1600) {\r
+ if (teamplay)\r
+ drawpic(bottomleft- '0 256 0', "gfx/hud/bg_stomach", '256 256 0', GetTeamRGB(myteam) * sbar_color_bg_team, sbar_alpha_bg, DRAWFLAG_NORMAL); // hud color = myteam color\r
+ else {\r
+ // allow for custom HUD colors in non-teamgames\r
+ color_x = cvar("sbar_color_bg_r");\r
+ color_y = cvar("sbar_color_bg_g");\r
+ color_z = cvar("sbar_color_bg_b");\r
+\r
+ drawpic(bottomleft - '0 256 0', "gfx/hud/bg_stomach", '256 256 0', color, sbar_alpha_bg, DRAWFLAG_NORMAL);\r
}\r
+ }\r
+ //if not(getstati(STAT_STOMACH_EATEN)) // useless if we're inside someone\r
+ //{\r
float stomach_load;\r
stomach_load = getstati(STAT_STOMACH_LOAD);\r
\r
drawstring(bottomleft - '-76 150 0', "stomach empty", '14 14 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
- }\r
+ //}\r
\r
// draw the stomach board\r
- if not(getstati(STAT_STOMACH_EATEN)) // useless if we're inside someone\r
- {\r
+ //if not(getstati(STAT_STOMACH_EATEN)) // useless if we're inside someone\r
+ //{\r
entity pl;\r
float f;\r
\r
pos_y += 1.25 * sbar_fontsize_y;\r
}\r
}\r
- }\r
+ //}\r
\r
if (cvar("viewsize") <= 100 && vid_conwidth <= 1600) {\r
if (teamplay)\r
addstat(STAT_SHOTORG, AS_INT, stat_shotorg);\r
addstat(STAT_LEADLIMIT, AS_FLOAT, stat_leadlimit);\r
addstat(STAT_BULLETS_LOADED, AS_INT, campingrifle_bulletcounter);\r
- addstat(STAT_STOMACH_LOAD, AS_INT, stomach_load);\r
+ addstat(STAT_STOMACH_LOAD, AS_INT, stat_stomachload);\r
addstat(STAT_STOMACH_DIGESTING, AS_INT, digesting);\r
addstat(STAT_STOMACH_EATEN, AS_INT, stat_eaten);\r
\r