From 21e0039e20f8b6e5b2f89e79670966a6684866d9 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Tue, 15 Nov 2011 22:20:16 +0200 Subject: [PATCH] Make the icon blink --- data/qcsrc/client/sbar.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 48e52cc9..15dc302e 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -3086,7 +3086,7 @@ void Sbar_Draw (void) warn_pos_y = vid_conheight - vid_conheight / 2.5; drawpic(warn_pos - '128 0 0', "gfx/hud/bg_power_fail", '256 256 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); - drawpic(warn_pos - '16 0 0' + '0 150 0', "gfx/hud/sb_power_fail_icon", '32 32 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); + 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); return; } -- 2.39.2