CatStation/Content.Shared/Speech/EntitySystems/VoiceOverrideSystem.cs
Pok 7a8fab78e3
Move Accents to Shared v2 (#44772)
* move-accents-to-shared

* Update AccentSystem.cs

* Update ListeningSystem.cs

* aaaaaa

* Update AccentSystem.cs

* oh god

* aaooao

* //

* review

* fix

* Update VocalSystem.cs
2026-07-25 22:29:39 +00:00

17 lines
525 B
C#

using Content.Shared.Chat;
using Content.Shared.Speech.Components;
namespace Content.Shared.Speech.EntitySystems;
public sealed partial class VoiceOverrideSystem : EntitySystem
{
[SubscribeLocalEvent]
private void OnTransformSpeakerName(Entity<VoiceOverrideComponent> ent, ref TransformSpeakerNameEvent args)
{
if (!ent.Comp.Enabled)
return;
args.VoiceName = ent.Comp.NameOverride ?? args.VoiceName;
args.SpeechVerb = ent.Comp.SpeechVerbOverride ?? args.SpeechVerb;
}
}