Fix Emote Sounds not loading in vocalsystem (#45534)

* Fix Emote Sounds not loading in vocalsystem

* also fix emote action

---------

Co-authored-by: ScarKy0 <scarky0@onet.eu>
This commit is contained in:
poklj 2026-08-21 22:49:19 +00:00 • committed by GitHub
parent 8fae253789
commit 69cd0c67f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,13 +83,13 @@ public sealed partial class VocalSystem : EntitySystem
if (!Resolve(source, ref source.Comp))
return;
var targetComp = EnsureComp<VocalComponent>(target);
var targetComp = Factory.GetComponent<VocalComponent>();
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<VocalComponent> ent, EntityUid user)