mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-21 20:56:36 +01:00
this is admittedly not a usual use of stealth mode but it's nice to not pop on/off the list when deadminned (this is nice for event rounds since you're supposed to deadmin if in a conflict role)
43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
GLOBAL_LIST_INIT(stealthmin_nicknames, world.file2list("[global.config.directory]/admin_nicknames.txt"))
|
|
|
|
/client/proc/dsay(msg as text)
|
|
set category = "Special Verbs"
|
|
set name = "Dsay" //Gave this shit a shorter name so you only have to time out "dsay" rather than "dead say" to use it --NeoFite
|
|
set hidden = 1
|
|
if(!src.holder)
|
|
to_chat(src, "Only administrators may use this command.")
|
|
return
|
|
if(!src.mob)
|
|
return
|
|
if(prefs.muted & MUTE_DEADCHAT)
|
|
to_chat(src, "<span class='warning'>You cannot send DSAY messages (muted).</span>")
|
|
return
|
|
|
|
if(!get_preference_toggle(/datum/game_preference_toggle/chat/dsay))
|
|
to_chat(src, "<span class='warning'>You have deadchat muted.</span>")
|
|
return
|
|
|
|
var/stafftype = holder.rank
|
|
|
|
msg = sanitize(msg)
|
|
log_admin("DSAY: [key_name(src)] : [msg]")
|
|
|
|
if (!msg)
|
|
return
|
|
|
|
var/key
|
|
if(is_under_stealthmin() && get_preference_toggle(/datum/game_preference_toggle/admin/obfuscate_stealth_dsay))
|
|
key = pick(GLOB.stealthmin_nicknames)
|
|
else
|
|
key = get_public_key()
|
|
|
|
msg = emoji_parse(msg)
|
|
|
|
say_dead_direct("<span class='name'>[stafftype]([key])</span> says, <span class='message'>\"<span class='linkify'>[msg]</span>\"</span>")
|
|
|
|
feedback_add_details("admin_verb","D") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/proc/get_dead_say()
|
|
var/msg = input(src, null, "dsay \"text\"") as text|null
|
|
dsay(msg)
|