Adds a new config option to disable ambience and white noise (#22064)

* finally... sweet sweet silence...

* well it works

* oops
This commit is contained in:
Contrabang
2023-09-10 12:12:15 -04:00
committed by GitHub
parent 4f765061fa
commit d4cc3a6297
4 changed files with 13 additions and 1 deletions
+5 -1
View File
@@ -1,7 +1,7 @@
/// The subsystem used to play ambience to users every now and then, makes them real excited.
SUBSYSTEM_DEF(ambience)
name = "Ambience"
flags = SS_BACKGROUND | SS_NO_INIT
flags = SS_BACKGROUND
priority = FIRE_PRIORITY_AMBIENCE
runlevels = RUNLEVEL_GAME | RUNLEVEL_POSTGAME
wait = 1 SECONDS
@@ -9,6 +9,10 @@ SUBSYSTEM_DEF(ambience)
///Assoc list of listening client - next ambience time
var/list/ambience_listening_clients = list()
/datum/controller/subsystem/ambience/Initialize()
if(GLOB.configuration.general.disable_ambient_noise)
flags |= SS_NO_FIRE
/datum/controller/subsystem/ambience/fire(resumed)
for(var/C in ambience_listening_clients)
var/client/client_iterator = C