Ports stop sounds verb from TG (#28072)

* sounds have been stopped

* update

* name and format update

---------

Co-authored-by: Bmon <no@email.com>
This commit is contained in:
Bm0n
2025-02-12 16:38:48 -05:00
committed by GitHub
parent 5b486120e9
commit c11e1c969c
3 changed files with 24 additions and 1 deletions
+2 -1
View File
@@ -80,7 +80,8 @@ GLOBAL_LIST_INIT(admin_verbs_sounds, list(
/client/proc/play_sound,
/client/proc/play_server_sound,
/client/proc/play_intercomm_sound,
/client/proc/stop_global_admin_sounds
/client/proc/stop_global_admin_sounds,
/client/proc/stop_sounds_global
))
GLOBAL_LIST_INIT(admin_verbs_event, list(
/client/proc/object_talk,
+14
View File
@@ -113,3 +113,17 @@ GLOBAL_LIST_EMPTY(sounds_cache)
if(!I.on && !ignore_power)
continue
playsound(I, melody, cvol)
/client/proc/stop_sounds_global()
set category = "Debug"
set name = "Stop Sounds Global"
set desc = "Stop all playing sounds globally."
if(!check_rights(R_SOUNDS))
return
log_admin("[key_name(src)] stopped all currently playing sounds.")
message_admins("[key_name_admin(src)] stopped all currently playing sounds.")
for(var/mob/M in GLOB.player_list)
SEND_SOUND(M, sound(null))
var/client/C = M.client
C?.tgui_panel?.stop_music()