float pickup_crosshair_time, pickup_crosshair_size;\r
float myhealth, myhealth_prev, myhealth_flash;\r
float contentavgalpha, liquidalpha_prev;\r
-float stomachsplash_alpha;\r
+float stomachsplash_alpha, stomachsplash_remove_at_respawn;\r
vector myhealth_gentlergb;\r
vector liquidcolor_prev;\r
vector damage_blurpostprocess, content_blurpostprocess;\r
else\r
stomachsplash_alpha = 0;\r
}\r
+ if (getstati(STAT_HEALTH) <= 0)\r
+ stomachsplash_remove_at_respawn = 1; // schedule the effect to be removed next respawn\r
+\r
+ if(getstati(STAT_HEALTH) > 0 && stomachsplash_remove_at_respawn)\r
+ stomachsplash_alpha = stomachsplash_remove_at_respawn = 0; // we respawned, remove the effect\r
+\r
stomachsplash_alpha = bound(0, stomachsplash_alpha, 1);\r
drawpic('0 0 0', "gfx/food", '1 0 0' * vid_conwidth + '0 1 0' * vid_conheight, stov(cvar_string("hud_stomach_color")), stomachsplash_alpha, DRAWFLAG_NORMAL);\r
}\r