mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user