mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 09:08:30 +01:00
## About The Pull Request Adds a new parameter, `volume_preference` to `playsound` and `/mob/playsound_local`, it takes a `/datum/preference/numeric/volume` type path and enables you to specify a volume preference you'd like the sound to be modified by on a per-listener basis. ## Why It's Good For The Game Right now the only use volume preferences have is in direct, client-specific `SEND_SOUND` calls, because modifying the volume parameter in `playsound` modifies it for all listeners. This new parameter allows the other 95% of situations where a sound effect is played (i.e. code that use `playsound`) to make use of client volume preferences. ## Changelog 🆑 code: added a new parameter to playsound and playsound_local that lets you specify a volume pref type to use /🆑