using Content.Shared.Speech; using Robust.Shared.Prototypes; namespace Content.Server.Speech.Components; /// /// Will change the voice of the entity that has the component (e.g radio and speech). /// /// /// Before using this component, please take a look at the the TransformSpeakerNameEvent (and the inventory relay version). /// Depending on what you're doing, it could be a better choice! /// [RegisterComponent] public sealed partial class VoiceOverrideComponent : Component { /// /// The name that will be used instead of an entities default one. /// Uses the localized version of the string and if null wont do anything. /// [DataField] public string? NameOverride = null; /// /// The verb that will be used insteand of an entities default one. /// If null, the defaut will be used. /// [DataField] public ProtoId? SpeechVerbOverride = null; /// /// If true, the override values (if they are not null) will be applied. /// [DataField] public bool Enabled = true; }