mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-03-04 09:45:23 +03:00
Fix excessive punchangle when getting shield shot (#919)
This commit is contained in:
parent
0bc4ff1d40
commit
fb9eb0db55
@ -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.x = iCurrentDamage * RANDOM_FLOAT(-0.15, 0.15);
|
||||||
pEntity->pev->punchangle.z = 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)
|
if (pEntity->pev->punchangle.x < 4)
|
||||||
|
#else
|
||||||
|
if (pEntity->pev->punchangle.x < -4)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
pEntity->pev->punchangle.x = -4;
|
pEntity->pev->punchangle.x = -4;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user