mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 00:23:29 +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:
@@ -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,
|
||||
|
||||
@@ -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