Adds new direct mob sound admin verb (#48171)

Adds the "Play Direct Mob Sound" for (b)admins to enjoy. Pick a sound and a mob, and only the chosen mob will hear it. Button also available in the player panel.

Happy admins happy life
This commit is contained in:
skoglol
2019-12-27 10:34:54 +13:00
committed by oranges
parent 5d1879eae4
commit b4843bd7a9
4 changed files with 26 additions and 1 deletions
+9
View File
@@ -1496,6 +1496,15 @@
var/mob/M = locate(href_list["subtlemessage"])
usr.client.cmd_admin_subtle_message(M)
else if(href_list["playsoundto"])
if(!check_rights(R_SOUND))
return
var/mob/M = locate(href_list["playsoundto"])
var/S = input("", "Select a sound file",) as null|sound
if(S)
usr.client.play_direct_mob_sound(S, M)
else if(href_list["individuallog"])
if(!check_rights(R_ADMIN))
return