From: Mario Date: Sat, 23 May 2020 15:34:40 +0000 (+1000) Subject: Lower the movement speed of frozen players further and add a comment to note why... X-Git-Tag: xonotic-v0.8.5~1037 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=08de67582b273561e4e75f5fc51e5d3cefb74a2f Lower the movement speed of frozen players further and add a comment to note why this limit is needed --- diff --git a/qcsrc/common/physics/player.qc b/qcsrc/common/physics/player.qc index cba24ff8e9..16abe38c80 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';