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

Fix Gauss sound not stopping when players are not in the PAS #3233

Open
SamVanheer opened this issue Jan 23, 2022 · 0 comments
Open

Fix Gauss sound not stopping when players are not in the PAS #3233

SamVanheer opened this issue Jan 23, 2022 · 0 comments

Comments

@SamVanheer
Copy link

The Gauss gun's charging sound is not stopped when players who were in the Potentially Audible Set (PAS) when it started are not in PAS when the sound is stopped:

PLAYBACK_EVENT_FULL( FEV_NOTHOST | FEV_RELIABLE, m_pPlayer->edict(), m_usGaussFire, 0.01, (float *)&m_pPlayer->pev->origin, (float *)&m_pPlayer->pev->angles, 0.0, 0.0, 0, 0, 0, 1 );

This is because the event is missing the FEV_GLOBAL flag.

To fix this the flag should be added:

PLAYBACK_EVENT_FULL( FEV_NOTHOST | FEV_RELIABLE | FEV_GLOBAL, m_pPlayer->edict(), m_usGaussFire, 0.01, (float *)&m_pPlayer->pev->origin, (float *)&m_pPlayer->pev->angles, 0.0, 0.0, 0, 0, 0, 1 );

This is not the same issue as #3188, which concerns missing event playback when the weapon is in certain states.

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

No branches or pull requests

2 participants