Skip to content

Sound replacer menu overhaul#556

Draft
TeeMeeFe wants to merge 69 commits intoACF-Team:devfrom
TeeMeeFe:TMF/Improved_sounds
Draft

Sound replacer menu overhaul#556
TeeMeeFe wants to merge 69 commits intoACF-Team:devfrom
TeeMeeFe:TMF/Improved_sounds

Conversation

@TeeMeeFe
Copy link
Copy Markdown

🚨WIP: Overhauls the sound replacer menu to allow some entities to play multiple, interpolated sounds. 🚨WIP

This changes the way how sounds are played, by allowing multiple sounds to play from a single entity.

For engines this means:

  • You can now dynamically add or remove up to 16 sounds to a single entity, set their pitch, volume, etc; That they'll play at a certain, arbitrary RPM.
  • The pitch and volume of these sounds are now calculated clientside, instead of serverside like it currently is.
  • For one, singular sound, this remains unaltered(although idk if i would go and make them fully clientside, just to make it consistent)

For guns this means:

  • Nothing, since i haven't got to that part... YET. Stay tuned!
  • For future work, this will allow you to play up to three sounds at different stages. One that is looped when firing, two for the start and end of the firing sequence respectively.

I have created a draft for this so others can look and possibly guide me on this, better ways to approach any problems that will arise, etc.

Ideally i would go on and allow web sounds to be played, since this relies on the client having the sounds at disposition to be played in their respective machines, which is possible some other clients may not have.

…oming to do something in this god's forsaken addon
- Done using a very naive approach that consumes a lot of resources for no reason
- Still delegates some calculations to the server to do them
- Some things broken, such as single sound entities
- Fallback to single sound is broken
- I hate the state of this, rewrite coming soon enough!

WIP
… have engine registration to work with the sound table
- Move sound counting to its own local function
- Throttle is now networked properly
- Fix DoPitchVolumeAtRPM function to use pitch and width properly
- Some other changes to documentation
…ing correctly, added a sound path validation icon
…und creation, include the volume on pitchvolume mixing instead of just fallback
…nd menu, fix regression with engines with no soundbank
… sound

- It can now fully replace the sounds!
… sound

- It can now fully replace the sounds!
- Added a button to refresh the graph
- Plot line graph color is now randomized
- Some minor optimizations to both the graph and soundbank play
…or non existant sound table. Some improvements to the sound replacer menu

* Switched Pitch for Volume Y label to avoid confusion
* Removed two unimplemented submenu choices temporarily
* Added contact group for the sound replacer menu, warn that this is a WIP panel
* Improved the graph panel by allowing a higher fidelity
…r validation to avoid having it potentially leak in memory
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