Lower the movement speed of frozen players further and add a comment to note why...
authorMario <mario.mario@y7mail.com>
Sat, 23 May 2020 15:34:40 +0000 (01:34 +1000)
committerMario <mario.mario@y7mail.com>
Sat, 23 May 2020 15:34:40 +0000 (01:34 +1000)
qcsrc/common/physics/player.qc

index cba24ff..16abe38 100644 (file)
@@ -622,9 +622,10 @@ void PM_check_frozen(entity this)
 #endif
        )
        {
 #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';
        }
        else
                PHYS_CS(this).movement = '0 0 0';