mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
NO_AMBIENCE config (#22797)
This commit is contained in:
committed by
Kurfursten
parent
1e92e398ba
commit
9cc0161d41
@@ -173,6 +173,7 @@
|
|||||||
var/skip_vault_generation = 0 //If 1, don't generate vaults
|
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/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_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
|
var/enable_roundstart_away_missions = 0
|
||||||
|
|
||||||
@@ -571,6 +572,8 @@
|
|||||||
shut_up_automatic_diagnostic_and_announcement_system = 1
|
shut_up_automatic_diagnostic_and_announcement_system = 1
|
||||||
if("no_lobby_music")
|
if("no_lobby_music")
|
||||||
no_lobby_music = 1
|
no_lobby_music = 1
|
||||||
|
if("no_ambience")
|
||||||
|
no_ambience = 1
|
||||||
if("enable_roundstart_away_missions")
|
if("enable_roundstart_away_missions")
|
||||||
enable_roundstart_away_missions = 1
|
enable_roundstart_away_missions = 1
|
||||||
if("enable_wages")
|
if("enable_wages")
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ var/datum/subsystem/ambientsound/SSambience
|
|||||||
|
|
||||||
|
|
||||||
/datum/subsystem/ambientsound/fire(resumed = FALSE)
|
/datum/subsystem/ambientsound/fire(resumed = FALSE)
|
||||||
|
if(config.no_ambience)
|
||||||
|
return
|
||||||
for (var/client/C in clients)
|
for (var/client/C in clients)
|
||||||
if(C && (C.prefs.toggles & SOUND_AMBIENCE))
|
if(C && (C.prefs.toggles & SOUND_AMBIENCE))
|
||||||
C.handle_ambience()
|
C.handle_ambience()
|
||||||
|
|||||||
@@ -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)
|
user << sound(null, repeat = 0, wait = 0, volume = 0, channel = CHANNEL_ADMINMUSIC)
|
||||||
|
|
||||||
if("lobby_music")
|
if("lobby_music")
|
||||||
|
if(config.no_lobby_music)
|
||||||
|
to_chat(user, "DEBUG: Lobby music is globally disabled via server config.")
|
||||||
toggles ^= SOUND_LOBBY
|
toggles ^= SOUND_LOBBY
|
||||||
if(toggles & SOUND_LOBBY)
|
if(toggles & SOUND_LOBBY)
|
||||||
if(istype(user,/mob/new_player))
|
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()
|
user.client.set_new_volume()
|
||||||
|
|
||||||
if("ambience")
|
if("ambience")
|
||||||
|
if(config.no_ambience)
|
||||||
|
to_chat(user, "DEBUG: Ambience is globally disabled via server config.")
|
||||||
toggles ^= SOUND_AMBIENCE
|
toggles ^= SOUND_AMBIENCE
|
||||||
if(!(toggles & SOUND_AMBIENCE))
|
if(!(toggles & SOUND_AMBIENCE))
|
||||||
user << sound(null, repeat = 0, wait = 0, volume = 0, channel = CHANNEL_AMBIENCE)
|
user << sound(null, repeat = 0, wait = 0, volume = 0, channel = CHANNEL_AMBIENCE)
|
||||||
|
|||||||
@@ -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.
|
## 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_LOBBY_MUSIC
|
||||||
|
|
||||||
|
## NO_AMBIENCE
|
||||||
|
## Same as above.
|
||||||
|
#NO_AMBIENCE
|
||||||
|
|
||||||
## ENABLE_ROUNDSTART_AWAY_MISSIONS
|
## ENABLE_ROUNDSTART_AWAY_MISSIONS
|
||||||
## Uncomment to genereate an away mission at the beginning of each round
|
## Uncomment to genereate an away mission at the beginning of each round
|
||||||
#ENABLE_ROUNDSTART_AWAY_MISSIONS
|
#ENABLE_ROUNDSTART_AWAY_MISSIONS
|
||||||
|
|||||||
Reference in New Issue
Block a user