float vote_alpha;\r
float vote_change; // "time" when vote_active changed\r
\r
+float power_boot;\r
+\r
vector stomachstatus_colorfade_current;\r
vector StomachStatus_ColorFade(vector target_color)\r
{\r
fade = bound(0.7, fade, 1);\r
\r
if(getstati(STAT_HEALTH) > 0)\r
- if(getstati(STAT_ARMOR) < g_power)\r
{\r
- vector warn_pos;\r
- warn_pos_x = vid_conwidth / 2;\r
- warn_pos_y = vid_conheight - vid_conheight / 2.5;\r
-\r
- drawpic(warn_pos - '128 0 0', "gfx/hud/sb_power_fail", '256 256 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
- drawpic(warn_pos - '16 0 0' + '0 150 0', "gfx/hud/sb_power_fail_icon", '32 32 0', '1 1 1', sbar_alpha_fg * (0.5 + sin(time * 5) / 2), DRAWFLAG_NORMAL);\r
+ if(getstati(STAT_ARMOR) < g_power)\r
+ {\r
+ vector warn_pos;\r
+ warn_pos_x = vid_conwidth / 2;\r
+ warn_pos_y = vid_conheight - vid_conheight / 2.5;\r
+ drawpic(warn_pos - '128 0 0', "gfx/hud/sb_power_fail", '256 256 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+ drawpic(warn_pos - '16 0 0' + '0 150 0', "gfx/hud/sb_power_fail_icon", '32 32 0', '1 1 1', sbar_alpha_fg * (0.5 + sin(time * 5) / 2), DRAWFLAG_NORMAL);\r
\r
- return;\r
+ power_boot = time + g_power_reboot;\r
+ return;\r
+ }\r
+ else if(time < power_boot)\r
+ {\r
+ return;\r
+ }\r
}\r
\r
if(g_vore) // only when the vore system is active\r