Delta-v/Content.Server/Audio
beesterman 34e12f2c82
Lobby Audio from static to CVar (#38375)
* Changed LobbyMusiccollection over to a Cvar and edited ContentAudioSystem.cs to use Cvar Values

* Addedd Ability to modify the lobbyMusiccollection from the command line

* Fixed changing lobby music while in the round

* Deleted uneeded duplicate line

* Removed additional duplicate lobbyplaylist line

* Alphabatized imports and refactored to use Subs.CVar

* Added error checking and default behaviour to CVar sub.

* Refactored to use TryIndex and Allowed for a empty soundcollection when a sound collection is not found. Edited Cvar comment to reflect changes.

* Made _lobbyMusicCollection nullable and addedd handling for null case where used. Also Changed LobbyMusicCollection Cvar over to audio rather than ambience.

* Update Content.Server/Audio/ContentAudioSystem.cs

---------

Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
2025-06-25 04:22:28 +02:00
..
Jukebox Power stuff (#31314) 2024-08-25 22:18:42 +10:00
AmbientOnPoweredComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
AmbientSoundSystem.cs Power stuff (#31314) 2024-08-25 22:18:42 +10:00
ContentAudioSystem.cs Lobby Audio from static to CVar (#38375) 2025-06-25 04:22:28 +02:00
ServerGlobalSoundSystem.cs Refactor audio system to send collection IDs over the network (#33610) 2025-02-23 23:14:56 +11:00