mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +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:
@@ -36,6 +36,8 @@
|
||||
var/starlight = TRUE
|
||||
/// Disable lobby music?
|
||||
var/disable_lobby_music = FALSE
|
||||
/// Disable ambient sound and white noise
|
||||
var/disable_ambient_noise = FALSE
|
||||
/// Disable a popup if 2 users are on the same CID?
|
||||
var/disable_cid_warning_popup = FALSE
|
||||
/// Amount of loadout points non-donors should get
|
||||
@@ -97,6 +99,7 @@
|
||||
CONFIG_LOAD_BOOL(ghost_interaction, data["ghost_interaction"])
|
||||
CONFIG_LOAD_BOOL(starlight, data["starlight"])
|
||||
CONFIG_LOAD_BOOL(disable_lobby_music, data["disable_lobby_music"])
|
||||
CONFIG_LOAD_BOOL(disable_ambient_noise, data["disable_ambient_noise"])
|
||||
CONFIG_LOAD_BOOL(disable_cid_warning_popup, data["disable_cid_warning_popup"])
|
||||
CONFIG_LOAD_BOOL(enable_ooc_emoji, data["enable_ooc_emoji"])
|
||||
CONFIG_LOAD_BOOL(developer_express_start, data["developer_express_start"])
|
||||
|
||||
@@ -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