From df189498ce42127575c30a3175406e742e2bd2db Mon Sep 17 00:00:00 2001 From: Razharas Date: Fri, 25 Sep 2015 22:42:24 +0300 Subject: [PATCH] The final solution of bad taste in midis question The final solution of bad taste in midis question Added special client verb that kills all sounds currently playing for this client This is better because toggle midis only pauses them, not actually stops them --- code/modules/admin/verbs/playsound.dm | 4 ++-- code/modules/client/preferences_toggles.dm | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/verbs/playsound.dm b/code/modules/admin/verbs/playsound.dm index 04df14ff933..a1fabf6fb2c 100644 --- a/code/modules/admin/verbs/playsound.dm +++ b/code/modules/admin/verbs/playsound.dm @@ -52,7 +52,7 @@ var/sound/admin_sound /client/proc/stop_sounds() set category = "Debug" - set name = "Stop Sounds" + set name = "Stop All Playing Sounds" if(!src.holder) return log_admin("[key_name(src)] stopped all currently playing sounds.") @@ -60,6 +60,6 @@ var/sound/admin_sound for(var/mob/M in player_list) if(M.client) M << sound(null) - feedback_add_details("admin_verb","SS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + feedback_add_details("admin_verb","SAPS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! #undef SOUND_CHANNEL_ADMIN \ No newline at end of file diff --git a/code/modules/client/preferences_toggles.dm b/code/modules/client/preferences_toggles.dm index 7a44e73a182..09de1481873 100644 --- a/code/modules/client/preferences_toggles.dm +++ b/code/modules/client/preferences_toggles.dm @@ -156,6 +156,13 @@ admin_sound.status ^= SOUND_PAUSED feedback_add_details("admin_verb","TMidi") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! +/client/verb/stop_client_sounds() + set name = "Stop Sounds" + set category = "Preferences" + set desc = "Kills all currently playing sounds, use if admin taste in midis a shite" + src << sound(null) + feedback_add_details("admin_verb","SS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + /client/verb/listen_ooc() set name = "Show/Hide OOC" set category = "Preferences"