]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Make the icon blink
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 15 Nov 2011 20:20:16 +0000 (22:20 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 15 Nov 2011 20:20:16 +0000 (22:20 +0200)
data/qcsrc/client/sbar.qc

index 48e52cc997caed66732047ece1ae07332d771486..15dc302ee5d2620f20751e33c8d79ad0b29938c4 100644 (file)
@@ -3086,7 +3086,7 @@ void Sbar_Draw (void)
                        warn_pos_y = vid_conheight - vid_conheight / 2.5;\r
 \r
                        drawpic(warn_pos - '128 0 0', "gfx/hud/bg_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, 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
                }\r