From 69cd0c67f66cbc603b3e6fb0f90116db5ad25cd8 Mon Sep 17 00:00:00 2001 From: poklj Date: Fri, 21 Aug 2026 22:49:19 +0000 Subject: [PATCH] Fix Emote Sounds not loading in vocalsystem (#45534) * Fix Emote Sounds not loading in vocalsystem * also fix emote action --------- Co-authored-by: ScarKy0 --- Content.Shared/Speech/EntitySystems/VocalSystem.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Content.Shared/Speech/EntitySystems/VocalSystem.cs b/Content.Shared/Speech/EntitySystems/VocalSystem.cs index 5f1d553e73..5b35102d84 100644 --- a/Content.Shared/Speech/EntitySystems/VocalSystem.cs +++ b/Content.Shared/Speech/EntitySystems/VocalSystem.cs @@ -83,13 +83,13 @@ public sealed partial class VocalSystem : EntitySystem if (!Resolve(source, ref source.Comp)) return; - var targetComp = EnsureComp(target); + var targetComp = Factory.GetComponent(); targetComp.ScreamId = source.Comp.ScreamId; targetComp.Wilhelm = source.Comp.Wilhelm; targetComp.WilhelmProbability = source.Comp.WilhelmProbability; - LoadSounds((target, targetComp)); - - Dirty(target, targetComp); + targetComp.EmoteAction = source.Comp.EmoteAction; + targetComp.EmoteSounds = source.Comp.EmoteSounds; + AddComp(target, targetComp, true); } private bool TryPlayScreamSound(Entity ent, EntityUid user)