From 6dfd0ab32d05b4e2446dbfa2d43853f53d6f837c Mon Sep 17 00:00:00 2001
From: kevinz000 <2003111+kevinz000@users.noreply.github.com>
Date: Thu, 3 Jan 2019 08:10:24 -0800
Subject: [PATCH] Update playsound.dm
---
code/modules/admin/verbs/playsound.dm | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/code/modules/admin/verbs/playsound.dm b/code/modules/admin/verbs/playsound.dm
index 97cc991523..72da825e0c 100644
--- a/code/modules/admin/verbs/playsound.dm
+++ b/code/modules/admin/verbs/playsound.dm
@@ -4,10 +4,12 @@
if(!check_rights(R_SOUNDS))
return
- var/freq = 1
var/vol = input(usr, "What volume would you like the sound to play at?",, 100) as null|num
if(!vol)
return
+ var/freq = input(usr, "What frequency would you like the sound to play at?",, 1) as null|num
+ if(!freq)
+ freq = 1
vol = CLAMP(vol, 1, 100)
var/sound/admin_sound = new()
@@ -96,13 +98,17 @@
if (data["webpage_url"])
webpage_url = "[title]"
+ var/freq = input(usr, "What frequency would you like the sound to play at?",, 1) as null|num
+ if(!freq)
+ freq = 1
+ pitch = freq
+
var/res = alert(usr, "Show the title of and link to this song to the players?\n[title]",, "No", "Yes", "Cancel")
switch(res)
if("Yes")
to_chat(world, "An admin played: [webpage_url]")
if("Cancel")
return
-
SSblackbox.record_feedback("nested tally", "played_url", 1, list("[ckey]", "[web_sound_input]"))
log_admin("[key_name(src)] played web sound: [web_sound_input]")
message_admins("[key_name(src)] played web sound: [web_sound_input]")