From 08de67582b273561e4e75f5fc51e5d3cefb74a2f Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 24 May 2020 01:34:40 +1000 Subject: [PATCH] Lower the movement speed of frozen players further and add a comment to note why this limit is needed --- qcsrc/common/physics/player.qc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qcsrc/common/physics/player.qc b/qcsrc/common/physics/player.qc index cba24ff8e..16abe38c8 100644 --- a/qcsrc/common/physics/player.qc +++ b/qcsrc/common/physics/player.qc @@ -622,9 +622,10 @@ void PM_check_frozen(entity this) #endif ) { - PHYS_CS(this).movement_x = bound(-5, PHYS_CS(this).movement.x, 5); - PHYS_CS(this).movement_y = bound(-5, PHYS_CS(this).movement.y, 5); - PHYS_CS(this).movement_z = bound(-5, PHYS_CS(this).movement.z, 5); + // bind movement to a very slow speed so dodging can use .movement for directional calculations + PHYS_CS(this).movement_x = bound(-2, PHYS_CS(this).movement.x, 2); + PHYS_CS(this).movement_y = bound(-2, PHYS_CS(this).movement.y, 2); + PHYS_CS(this).movement_z = bound(-2, PHYS_CS(this).movement.z, 2); } else PHYS_CS(this).movement = '0 0 0'; -- 2.39.2