]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Screw up overkill
authorMario <mario@smbclan.net>
Sun, 6 Aug 2017 04:05:56 +0000 (14:05 +1000)
committerMario <mario@smbclan.net>
Sun, 6 Aug 2017 04:05:56 +0000 (14:05 +1000)
qcsrc/common/mutators/mutator/overkill/sv_overkill.qc

index 82df487c5cc33253e20c69e6b0a4dff91ac5b3dc..f39c4fc0f7ef7ca4edb7d37780569c436016f9fe 100644 (file)
@@ -120,10 +120,9 @@ MUTATOR_HOOKFUNCTION(ok, PlayerPreThink)
        if(IS_DEAD(player) || !IS_PLAYER(player) || STAT(FROZEN, player))
                return;
 
-       if(PHYS_INPUT_BUTTON_ATCK2(player))
+       if(PHYS_INPUT_BUTTON_ATCK2(player) && time >= player.jump_interval)
        if( !forbidWeaponUse(player)
                || (round_handler_IsActive() && !round_handler_IsRoundStarted()) )
-       if(time >= player.jump_interval)
        {
                player.jump_interval = time + WEP_CVAR_PRI(blaster, refire) * W_WeaponRateFactor(player);
                makevectors(player.v_angle);