Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About the pull request
Changes to how a client's sound
environment
andecho
is handled:https://www.byond.com/docs/ref/#/sound/var/environment
https://www.byond.com/docs/ref/#/sound/var/echo
A client's
soundOutput
now has sole control over environment and echo.The environment is updated when the mob moves into a different area, or if the mob's environment override is set.
The echo is used to enable or disable the environmental reverb per-sound.
Explain why it's good for the game
Issue: an environment applies to all sounds for that client, current and future, until another one is set. It applies to in-world sounds as well as, say, admin pings.
Solution: since an echo is applied per-sound, by adjusting the echo's Room & RoomHF fields the environmental effects can be enabled or disabled (more accurately, made so quiet as to be inaudible). This is set to off by default, and is only enabled for positional sounds. Admin pings are safe.
Idea from here: tgstation/tgstation#55333
Testing Photographs and Procedure
Boots without issue. Sound environments change at appropriate points. Sound environments effect only positional sounds.
Changelog
🆑
code: environmental reverb applies more reliably and only to positional sounds
/:cl: