X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fgamemodes%2Fgamemode%2Fkeepaway%2Fcl_keepaway.qc;h=660a5511ec551f9f2e57ef7bc2a2a8a9a3e76f59;hb=4e87bfcc805dfb9a76c37788ecdd860ec52305c4;hp=b2d08742854e6cf04f2f68e6cbc346c5b9e77934;hpb=0f689f166f8b173cfe456d3446ee877b9a80bf35;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/gamemodes/gamemode/keepaway/cl_keepaway.qc b/qcsrc/common/gamemodes/gamemode/keepaway/cl_keepaway.qc index b2d087428..660a5511e 100644 --- a/qcsrc/common/gamemodes/gamemode/keepaway/cl_keepaway.qc +++ b/qcsrc/common/gamemodes/gamemode/keepaway/cl_keepaway.qc @@ -13,10 +13,7 @@ void HUD_Mod_Keepaway(vector pos, vector mySize) { mod_active = 1; // keepaway should always show the mod HUD - float BLINK_FACTOR = 0.15; - float BLINK_BASE = 0.85; - float BLINK_FREQ = 5; - float kaball_alpha = BLINK_BASE + BLINK_FACTOR * cos(time * BLINK_FREQ); + float kaball_alpha = blink(0.85, 0.15, 5); int stat_items = STAT(ITEMS); int kaball = (stat_items/IT_KEY1) & 1;