Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shield hit punchangle change logic grouped #999

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dystopm
Copy link
Contributor

@dystopm dystopm commented Aug 16, 2024

This also includes fixes from #919

Logic when player gets shield hit is now grouped with a couple fixes and angle clamping.

It also fixes the angle zeroing when shield hitted from shotguns, which are not handled in FireBullets3 but TraceAttack instead.

Comment on lines +1493 to +1495
if (Q_fabs(pev->punchangle.x) < 4.0)
{
pev->punchangle.x = clamp(flDamage * RANDOM_FLOAT(-0.15, 0.15), -4.0f, 4.0f);
Copy link
Contributor

@fl0werD fl0werD Aug 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In original code another logic

#endif

#ifdef REGAMEDLL_FIXES
if (Q_fabs(pev->punchangle.z) < 5.0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's useless check because clamp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants