Fix excessive punchangle when getting shield shot (#919)

This commit is contained in:
Francisco Muñoz 2024-01-31 09:38:35 -03:00 committed by GitHub
parent 0bc4ff1d40
commit fb9eb0db55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}