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

Noisemaker Scrap Type Fix #98

Merged
merged 2 commits into from
Jan 20, 2024
Merged

Noisemaker Scrap Type Fix #98

merged 2 commits into from
Jan 20, 2024

Conversation

BuffMage
Copy link
Contributor

I fixed an issue with the Noisemaker scrap type where other players could not hear the Noisemaker on their side, it appeared to only be client side. This was mainly fixed by ensuring the syncUseFunction attribute was marked true.

I've also reworked some of the Noisemaker scrap type logic, so now developers in the SDK no longer need to specify noiseAudio and noiseAudioFar, as they will be generated automatically.

Along with that, I reordered the grab/drop Audiosource to the beginning of scrap creation so that GetComponent grabs the right when in the game's code. I also slightly modified Terminal_Path.cs to make noiseAudio Diegetic.

Some of the other scrap types could probably use similar fixes, but I thought I would go ahead and fix one of them to not change anything too drastically.

Sets the syncUseFunction flag to true for the NoisemakerProp, this allows the Noisemaker to activate and be replicated across clients.
I also added the ability to leave the fields in the SDK for noiseAudio and noiseAudioFar blank and have added close-to-game AudioSources.
Also reordered the way the grab/drop Audiosource is added, since GetComponent grabs the 'top' Audiosource, so the grab/drop Audiosource should be first when added.
Makes the close audio of the Noisemaker Diegetic.
@HolographicWings
Copy link
Owner

HolographicWings commented Jan 20, 2024

Hello, I don't have the time to test this PR
I don't longer work on this mod a lot, I went to another project.
I'm looking for a successor to continue this mod if you are interested.

@BuffMage
Copy link
Contributor Author

I would definitely be interested in contributing, I don't know how much of a successor I could be since I am fairly new to modding, but I could likely try to keep the mod up-to-date and carry on the project in that sense! If you want to connect my discord is singular_jame.

@BuffMage BuffMage merged commit b5af410 into HolographicWings:main Jan 20, 2024
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.

None yet

2 participants