From ce621c34122f6d805e3a7bf1c67c44bb98f81b85 Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Wed, 14 Aug 2024 12:38:23 +0300 Subject: [PATCH 1/2] PM_CheckFalling: fix punchangle axis (Z -> X) --- regamedll/pm_shared/pm_shared.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regamedll/pm_shared/pm_shared.cpp b/regamedll/pm_shared/pm_shared.cpp index d90206bc5..c39066850 100644 --- a/regamedll/pm_shared/pm_shared.cpp +++ b/regamedll/pm_shared/pm_shared.cpp @@ -2726,8 +2726,8 @@ void PM_CheckFalling() pmove->flTimeStepSound = 300; // Knock the screen around a little bit, temporary effect - // punch z axis - pmove->punchangle[2] = pmove->flFallVelocity * 0.013; + // punch X axis + pmove->punchangle[0] = pmove->flFallVelocity * 0.013; if (pmove->punchangle[0] > 8.0f) { From adca446bde4cdaee230d0f9675bec89935b04ce9 Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Wed, 14 Aug 2024 12:40:21 +0300 Subject: [PATCH 2/2] PM_CheckFalling: fix punch angle value `1.3%` -> `1%` --- regamedll/pm_shared/pm_shared.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regamedll/pm_shared/pm_shared.cpp b/regamedll/pm_shared/pm_shared.cpp index c39066850..943a85a9e 100644 --- a/regamedll/pm_shared/pm_shared.cpp +++ b/regamedll/pm_shared/pm_shared.cpp @@ -2727,7 +2727,7 @@ void PM_CheckFalling() // Knock the screen around a little bit, temporary effect // punch X axis - pmove->punchangle[0] = pmove->flFallVelocity * 0.013; + pmove->punchangle[0] = pmove->flFallVelocity * 0.01; if (pmove->punchangle[0] > 8.0f) {