NO_AMBIENCE config (#22797)

This commit is contained in:
I-VAPE-VOX-CLOACA-EVERY-DAY-OF-MY-LIFE
2019-05-07 20:19:29 -03:00
committed by Kurfursten
parent 1e92e398ba
commit 9cc0161d41
4 changed files with 14 additions and 1 deletions

View File

@@ -173,6 +173,7 @@
var/skip_vault_generation = 0 //If 1, don't generate vaults
var/shut_up_automatic_diagnostic_and_announcement_system = 0 //If 1, don't play the vox sounds at the start of every shift.
var/no_lobby_music = 0 //If 1, don't play lobby music, regardless of client preferences.
var/no_ambience = 0 //If 1, don't play ambience, regardless of client preferences.
var/enable_roundstart_away_missions = 0
@@ -571,6 +572,8 @@
shut_up_automatic_diagnostic_and_announcement_system = 1
if("no_lobby_music")
no_lobby_music = 1
if("no_ambience")
no_ambience = 1
if("enable_roundstart_away_missions")
enable_roundstart_away_missions = 1
if("enable_wages")

View File

@@ -15,6 +15,8 @@ var/datum/subsystem/ambientsound/SSambience
/datum/subsystem/ambientsound/fire(resumed = FALSE)
if(config.no_ambience)
return
for (var/client/C in clients)
if(C && (C.prefs.toggles & SOUND_AMBIENCE))
C.handle_ambience()

View File

@@ -1345,6 +1345,8 @@ NOTE: The change will take effect AFTER any current recruiting periods."}
user << sound(null, repeat = 0, wait = 0, volume = 0, channel = CHANNEL_ADMINMUSIC)
if("lobby_music")
if(config.no_lobby_music)
to_chat(user, "DEBUG: Lobby music is globally disabled via server config.")
toggles ^= SOUND_LOBBY
if(toggles & SOUND_LOBBY)
if(istype(user,/mob/new_player))
@@ -1356,6 +1358,8 @@ NOTE: The change will take effect AFTER any current recruiting periods."}
user.client.set_new_volume()
if("ambience")
if(config.no_ambience)
to_chat(user, "DEBUG: Ambience is globally disabled via server config.")
toggles ^= SOUND_AMBIENCE
if(!(toggles & SOUND_AMBIENCE))
user << sound(null, repeat = 0, wait = 0, volume = 0, channel = CHANNEL_AMBIENCE)

View File

@@ -313,6 +313,10 @@ SKIP_VAULT_GENERATION
## Uncomment to never play lobby music. Useful if you use guest keys to multiaccount-test stuff, since you can't use client preferences for those.
#NO_LOBBY_MUSIC
## NO_AMBIENCE
## Same as above.
#NO_AMBIENCE
## ENABLE_ROUNDSTART_AWAY_MISSIONS
## Uncomment to genereate an away mission at the beginning of each round
#ENABLE_ROUNDSTART_AWAY_MISSIONS