Fix buff initial cooldown lasting too long
authorMario <mario@smbclan.net>
Sat, 4 Mar 2017 16:33:42 +0000 (02:33 +1000)
committerMario <mario@smbclan.net>
Sat, 4 Mar 2017 16:33:42 +0000 (02:33 +1000)
qcsrc/common/mutators/mutator/buffs/sv_buffs.qc

index ac7cc0f..2cf6471 100644 (file)
@@ -370,7 +370,7 @@ void buff_Init(entity this)
        //this.gravity = 100;
        this.color = buff.m_color;
        this.glowmod = buff_GlowColor(this);
-       buff_SetCooldown(this, autocvar_g_buffs_cooldown_activate + game_starttime);
+       buff_SetCooldown(this, autocvar_g_buffs_cooldown_activate + (game_starttime - time));
        this.buff_active = !this.buff_activetime;
        this.pflags = PFLAGS_FULLDYNAMIC;