From b683c8b5680a2c4c4710826675d08b3ac4ba7400 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 24 May 2020 00:04:16 +1000 Subject: [PATCH] Ignore client dodging setting while frozen, to allow hopping around on servers that enable it --- qcsrc/common/mutators/mutator/dodging/sv_dodging.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc b/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc index 3651e9aa0..19f8b1046 100644 --- a/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc +++ b/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc @@ -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; -- 2.39.2