From a616bc313613872db79db4a3bbe7ea1b9d4e2631 Mon Sep 17 00:00:00 2001 From: Ghom <42542238+Ghommie@users.noreply.github.com> Date: Tue, 16 Sep 2025 01:38:24 +0200 Subject: [PATCH] The megaphone MOD module also has a TTS filter, just like the OG megaphone (#92967) ## About The Pull Request Better be consistent. ## Why It's Good For The Game Consistency. ## Changelog :cl: fix: The megaphone MOD module also has a TTS filter when active, just like the handheld version. /:cl: --- code/modules/mod/modules/modules_security.dm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/modules/mod/modules/modules_security.dm b/code/modules/mod/modules/modules_security.dm index efe5d4646ef..2eaebddaf55 100644 --- a/code/modules/mod/modules/modules_security.dm +++ b/code/modules/mod/modules/modules_security.dm @@ -165,9 +165,10 @@ /obj/item/mod/module/megaphone/on_activation(mob/activator) RegisterSignal(mod.wearer, COMSIG_MOB_SAY, PROC_REF(handle_speech)) + RegisterSignal(mod.wearer, COMSIG_LIVING_TREAT_MESSAGE, PROC_REF(add_tts_filter)) /obj/item/mod/module/megaphone/on_deactivation(mob/activator, display_message = TRUE, deleting = FALSE) - UnregisterSignal(mod.wearer, COMSIG_MOB_SAY) + UnregisterSignal(mod.wearer, list(COMSIG_LIVING_TREAT_MESSAGE, COMSIG_MOB_SAY)) /obj/item/mod/module/megaphone/proc/handle_speech(datum/source, list/speech_args) SIGNAL_HANDLER @@ -175,6 +176,11 @@ speech_args[SPEECH_SPANS] |= voicespan drain_power(use_energy_cost) +/obj/item/mod/module/megaphone/proc/add_tts_filter(mob/living/carbon/user, list/message_args) + SIGNAL_HANDLER + ///A sharper and louder sound with a bit of echo + message_args[TREAT_TTS_FILTER_ARG] += "acrusher=samples=2:level_out=6,aecho=delays=90:decays=0.3,aemphasis=type=cd,acontrast=30,crystalizer=i=5" + ///Criminal Capture - Generates hardlight bags you can put people in and sinch. /obj/item/mod/module/criminalcapture name = "MOD criminal capture module"