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

Allow custom sound indices in SoundReader.GetAudioClip. #2515

Merged
merged 1 commit into from
Jun 18, 2023

Conversation

KABoissonneault
Copy link
Collaborator

This can be used for custom enemies to pass new sounds in EnemySounds (ex: by providing 1000.mp3 and using 1000 as the attack sound in its Mobile structure). The value is forwarded to SoundReplacement, which handles non-standard values just fine.

I added some extra sanitization for negative numbers in BsaFile, because SoundClips.None is -1, which is often used as a default.

…sed for custom enemies to pass new sounds in EnemySounds
@Interkarma
Copy link
Owner

This is good, thank you Kab. :)

@Interkarma Interkarma merged commit 2b150e8 into Interkarma:master Jun 18, 2023
@KABoissonneault KABoissonneault deleted the feat/custom-sounds branch January 29, 2024 14:08
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.

2 participants