fade = 3.2 - 2 * (time - weapontime);\r
fade = bound(0.7, fade, 1);\r
\r
+ // when a player's armor is below the necessary level, subsystems will not work\r
if(getstati(STAT_HEALTH) > 0)\r
{\r
vector warn_pos;\r
warn_pos_y = vid_conheight - vid_conheight / 2.5;\r
if(getstati(STAT_ARMOR) < g_power)\r
{\r
+ // subsystems are down\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
power_boot = time + g_power_reboot;\r
- return;\r
+ return; // skip drawing the HUD\r
}\r
else if(time <= power_boot)\r
{\r
+ // subsystems are rebooting\r
drawpic(warn_pos - '128 0 0', "gfx/hud/sb_power_reboot", '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_reboot_icon", '32 32 0', '1 1 1', sbar_alpha_fg * (0.5 + sin(time * 5) / 2), DRAWFLAG_NORMAL);\r
-\r
- return;\r
+ return; // skip drawing the HUD\r
}\r
}\r
\r