mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-15 01:54:52 +01:00
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 🆑 fix: The megaphone MOD module also has a TTS filter when active, just like the handheld version. /🆑
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user