mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 03:55:05 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user