mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
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:
parent
8fae253789
commit
69cd0c67f6
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue