diff --git a/modular_doppler/loud_asay/code/loud_asay.dm b/modular_doppler/loud_asay/code/loud_asay.dm new file mode 100644 index 0000000000000..5837a1fe7b878 --- /dev/null +++ b/modular_doppler/loud_asay/code/loud_asay.dm @@ -0,0 +1,21 @@ +ADMIN_VERB(cmd_loud_admin_say, R_NONE, "loudAsay", "Send a message to other admins (loudly).", ADMIN_CATEGORY_MAIN, message as text) + message = emoji_parse(copytext_char(sanitize(message), 1, MAX_MESSAGE_LEN)) + if(!message) + return + + user.mob.log_talk(message, LOG_ASAY) + message = keywords_lookup(message) + var/asay_color = user.prefs.read_preference(/datum/preference/color/asay_color) + var/custom_asay_color = (CONFIG_GET(flag/allow_admin_asaycolor) && asay_color) ? "" : "" + message = "[span_command_headset("[span_adminsay("[span_prefix("ADMIN:")] [key_name_admin(user)] [ADMIN_FLW(user.mob)]: [custom_asay_color][message]")][custom_asay_color ? "":null]")]" + to_chat(GLOB.admins, + type = MESSAGE_TYPE_ADMINCHAT, + html = message, + confidential = TRUE) + + for(var/client/admin_client in GLOB.admins) + if(admin_client?.prefs?.toggles & SOUND_ADMINHELP) + SEND_SOUND(admin_client, sound('modular_doppler/loud_asay/sound/duckhonk.ogg')) //Stop using loud mode if you don't need to. + window_flash(admin_client, ignorepref = TRUE) + + BLACKBOX_LOG_ADMIN_VERB("Loud Asay") diff --git a/modular_doppler/loud_asay/sound/duckhonk.ogg b/modular_doppler/loud_asay/sound/duckhonk.ogg new file mode 100644 index 0000000000000..75d16d3023903 Binary files /dev/null and b/modular_doppler/loud_asay/sound/duckhonk.ogg differ diff --git a/tgstation.dme b/tgstation.dme index 3f0a512917a1b..608523d1c467d 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -6661,6 +6661,7 @@ #include "modular_doppler\loadout_categories\categories\shoes.dm" #include "modular_doppler\loadout_categories\categories\toys.dm" #include "modular_doppler\loadout_categories\categories\undersuit.dm" +#include "modular_doppler\loud_asay\code\loud_asay.dm" #include "modular_doppler\modular_antagonists\_dynamic_rulesets.dm" #include "modular_doppler\modular_antagonists\changeling\changeling.dm" #include "modular_doppler\modular_antagonists\datums\antag_recipes.dm"