From: MirceaKitsune Date: Tue, 15 Nov 2011 19:51:20 +0000 (+0200) Subject: Display a warning image when the HUD is in failure mode X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8244e92fc00453721a9d67f2cf0aabf968fa2821;p=voretournament%2Fvoretournament.git Display a warning image when the HUD is in failure mode --- diff --git a/data/gfx/hud/bg_power_fail.tga b/data/gfx/hud/bg_power_fail.tga new file mode 100644 index 00000000..4c031231 Binary files /dev/null and b/data/gfx/hud/bg_power_fail.tga differ diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 84756fd3..c3de1032 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -3080,7 +3080,15 @@ void Sbar_Draw (void) if(getstati(STAT_HEALTH) > 0) if(getstati(STAT_ARMOR) < g_power) + { + vector warn_pos; + warn_pos_x = vid_conwidth / 2 - 128; + warn_pos_y = vid_conheight - vid_conheight / 2.5; + + drawpic(warn_pos, "gfx/hud/bg_power_fail", '256 256 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); + return; + } if(g_vore) // only when the vore system is active {