]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Lobby Audio from static to CVar (#38375)
authorbeesterman <72782957+beesterman@users.noreply.github.com>
Wed, 25 Jun 2025 02:22:28 +0000 (21:22 -0500)
committerGitHub <noreply@github.com>
Wed, 25 Jun 2025 02:22:28 +0000 (04:22 +0200)
commit34e12f2c828a2b0a9bc59a9474fb1f6ec5f810f9
tree164f66e8bcc1a137db76005a0fa2df237eff7017
parentdea275489e6f365509499d895511e5db5fe7ba32
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>
Content.Server/Audio/ContentAudioSystem.cs
Content.Shared/CCVar/CCVars.Audio.cs