From 1f72bf1c65e43e0bb686bc59e9966eeba100d61e Mon Sep 17 00:00:00 2001 From: dystopm Date: Sun, 7 Jan 2024 20:01:37 -0300 Subject: [PATCH] Fix excessive punchangle when getting shield shot --- regamedll/dlls/cbase.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/regamedll/dlls/cbase.cpp b/regamedll/dlls/cbase.cpp index 1d706299b..ebfd2fdc2 100644 --- a/regamedll/dlls/cbase.cpp +++ b/regamedll/dlls/cbase.cpp @@ -1449,7 +1449,11 @@ VectorRef CBaseEntity::__API_HOOK(FireBullets3)(VectorRef vecSrc, VectorRef vecD pEntity->pev->punchangle.x = iCurrentDamage * RANDOM_FLOAT(-0.15, 0.15); pEntity->pev->punchangle.z = iCurrentDamage * RANDOM_FLOAT(-0.15, 0.15); +#ifndef REGAMEDLL_FIXES if (pEntity->pev->punchangle.x < 4) +#else + if (pEntity->pev->punchangle.x < -4) +#endif { pEntity->pev->punchangle.x = -4; }