]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 3651e9aa07286d42db46bc13b430cb869f74cf83..19f8b1046ca9f4acce853f5644012cdec16c2468 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;