Add support for specific sound channels and stopping them (#25455)

This commit is contained in:
Cyberboss
2017-03-25 19:54:04 -03:00
committed by Leo
parent 75c0e577ef
commit 7af014de84
8 changed files with 17 additions and 16 deletions
+3 -3
View File
@@ -1181,10 +1181,10 @@ var/list/preferences_datums = list()
if("lobby_music")
toggles ^= SOUND_LOBBY
if(toggles & SOUND_LOBBY)
user << sound(ticker.login_music, repeat = 0, wait = 0, volume = 85, channel = 1)
if((toggles & SOUND_LOBBY) && user.client)
user.client.playtitlemusic()
else
user.stopLobbySound()
user.stop_sound_channel(CHANNEL_LOBBYMUSIC)
if("ghost_ears")
chat_toggles ^= CHAT_GHOSTEARS
+1 -2
View File
@@ -147,8 +147,7 @@
playtitlemusic()
else
to_chat(src, "You will no longer hear music in the game lobby.")
if(isnewplayer(mob))
mob.stopLobbySound()
mob.stop_sound_channel(CHANNEL_LOBBYMUSIC)
feedback_add_details("admin_verb","TLobby") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/togglemidis()