From 990a57cc77fd535f39826b125b59054e75dfcfb9 Mon Sep 17 00:00:00 2001 From: RadsammyT <32146976+RadsammyT@users.noreply.github.com> Date: Tue, 7 Jan 2025 12:15:10 -0500 Subject: [PATCH] Make Non-Verbal Langs Not Play Speech (#1448) # Description Makes non-verbal languages no longer emit speech sounds. Ported from [Goob-Station-MRP#29](https://github.com/Goob-Station/Goob-Station-MRP/pull/29) at @angelofallars's request. ---

Media

![PR Example](https://github.com/user-attachments/assets/8be6b705-eff7-4e2e-ab53-5648dccfc7eb)

--- # Changelog :cl: - tweak: Languages that don't require speech (I.E. Sign Language) will no longer play speech sounds. --------- Signed-off-by: RadsammyT <32146976+RadsammyT@users.noreply.github.com> Co-authored-by: Skubman Co-authored-by: flyingkarii <123355664+flyingkarii@users.noreply.github.com> Co-authored-by: sleepyyapril <123355664+sleepyyapril@users.noreply.github.com> Co-authored-by: SimpleStation Changelogs --- Content.Server/Speech/SpeechNoiseSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Speech/SpeechNoiseSystem.cs b/Content.Server/Speech/SpeechNoiseSystem.cs index 5530f3fe57a..071b1569071 100644 --- a/Content.Server/Speech/SpeechNoiseSystem.cs +++ b/Content.Server/Speech/SpeechNoiseSystem.cs @@ -60,7 +60,7 @@ public override void Initialize() private void OnEntitySpoke(EntityUid uid, SpeechComponent component, EntitySpokeEvent args) { - if (component.SpeechSounds == null) + if (component.SpeechSounds == null || !args.Language.SpeechOverride.RequireSpeech) return; var currentTime = _gameTiming.CurTime;