Ignore client dodging setting while frozen, to allow hopping around on servers that...
authorMario <mario.mario@y7mail.com>
Sat, 23 May 2020 14:04:16 +0000 (00:04 +1000)
committerMario <mario.mario@y7mail.com>
Sat, 23 May 2020 14:04:16 +0000 (00:04 +1000)
qcsrc/common/mutators/mutator/dodging/sv_dodging.qc

index 3651e9a..19f8b10 100644 (file)
@@ -221,7 +221,8 @@ void PM_dodging(entity this)
        if (!this.dodging_action) return;
 
        // when swimming or dead, no dodging allowed..
-       if (this.waterlevel >= WATERLEVEL_SWIMMING || IS_DEAD(this) || (PHYS_DODGING_CLIENTSELECT && !PHYS_DODGING_ENABLED(this)))
+       bool frozen_dodging = (PHYS_FROZEN(this) && PHYS_DODGING_FROZEN(this));
+       if (this.waterlevel >= WATERLEVEL_SWIMMING || IS_DEAD(this) || (PHYS_DODGING_CLIENTSELECT && !PHYS_DODGING_ENABLED(this) && !frozen_dodging))
        {
                this.dodging_action = 0;
                this.dodging_direction.x = 0;