Skip to content

Allow fx parameters for a player's voice #4186

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

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

Conversation

tederis
Copy link
Member

@tederis tederis commented Apr 29, 2025

Allows setSoundEffectParameter/getSoundEffectParameters to be used on players. Closes #2302

@tederis tederis added the enhancement New feature or request label Apr 29, 2025

if (argStream.HasErrors())
bool IsFxEffectEnabled(uint uiFxEffect)
Copy link
Contributor

Choose a reason for hiding this comment

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

std::uint32_t

Comment on lines +1405 to +1407
if (pVoice)
return pVoice->IsFxEffectEnabled(uiFxEffect);
return false;
Copy link
Contributor

Choose a reason for hiding this comment

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

return pVoice ? pVoice->IsFxEffectEnabled(uiFxEffect) : false;

Comment on lines +1912 to +1915
if (!pSound->IsFxEffectEnabled(eEffectType))
{
return luaL_error(luaVM, "Effect's parameters can't be set unless it's enabled");
}
Copy link
Contributor

Choose a reason for hiding this comment

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

You can remove braces

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

Successfully merging this pull request may close these issues.

Add player voice support to sound effect parameters
2 participants