Fix frozen dodging to always work
authorMario <mario@smbclan.net>
Tue, 26 Jan 2016 05:33:54 +0000 (15:33 +1000)
committerMario <mario@smbclan.net>
Tue, 26 Jan 2016 05:33:54 +0000 (15:33 +1000)
qcsrc/common/mutators/mutator/dodging/dodging.qc

index 09f169e..6d3662c 100644 (file)
@@ -137,7 +137,7 @@ float PM_dodging_checkpressedkeys(entity this)
                /* is this a state change? */                                                                                                   \
                if(!(PHYS_DODGING_PRESSED_KEYS(this) & KEY_##BTN) || frozen_no_doubletap) {             \
                                tap_direction_##RESULT;                                                                                                 \
-                               if ((time - this.last_##BTN##_KEY_time) < PHYS_DODGING_TIMEOUT(this))   \
+                               if ((time - this.last_##BTN##_KEY_time) < PHYS_DODGING_TIMEOUT(this) || frozen_no_doubletap)    \
                                        dodge_detected = true;                                                                                                  \
                                this.last_##BTN##_KEY_time = time;                                                                              \
                }