# Conflicts: # Content.Client/VoiceMask/VoiceMaskNameChangeWindow.xaml.cs # Content.Client/Voting/UI/VotePopup.xaml.cs # Content.Client/Voting/VoteManager.cs # Content.Server/Chat/Systems/ChatSystem.cs # Content.Server/Power/EntitySystems/BatterySystem.cs # Content.Server/Radio/EntitySystems/RadioSystem.cs # Content.Server/VoiceMask/VoiceMaskComponent.cs # Content.Server/VoiceMask/VoiceMaskSystem.Equip.cs # Content.Server/VoiceMask/VoiceMaskSystem.cs # Content.Server/VoiceMask/VoiceMaskerComponent.cs # Content.Server/Voting/Managers/VoteManager.DefaultVotes.cs # Content.Server/Voting/Managers/VoteManager.cs # Content.Shared/VendingMachines/SharedVendingMachineSystem.cs # Content.Shared/Voting/MsgVoteData.cs # Resources/Prototypes/Catalog/Fills/Lockers/heads.yml # Resources/Prototypes/Recipes/Crafting/crates.yml # Resources/Prototypes/Recipes/Crafting/improvised.yml
47 lines
1.5 KiB
C#
47 lines
1.5 KiB
C#
using Content.Shared.Speech;
|
|
using Robust.Shared.Prototypes;
|
|
using Content.Shared.Humanoid;
|
|
|
|
namespace Content.Server.VoiceMask;
|
|
|
|
/// <summary>
|
|
/// This component is for voice mask items! Adding this component to clothing will give the the voice mask UI
|
|
/// and allow the wearer to change their voice and verb at will.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// DO NOT use this if you do not want the interface.
|
|
/// The VoiceOverrideSystem is probably what your looking for (Or you might have to make something similar)!
|
|
/// </remarks>
|
|
[RegisterComponent]
|
|
public sealed partial class VoiceMaskComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The name that will override an entities default name. If null, it will use the default override.
|
|
/// </summary>
|
|
[DataField]
|
|
public string? VoiceMaskName = null;
|
|
|
|
/// <summary>
|
|
/// The speech verb that will override an entities default one. If null, it will use the entities default verb.
|
|
/// </summary>
|
|
[DataField]
|
|
public ProtoId<SpeechVerbPrototype>? VoiceMaskSpeechVerb;
|
|
|
|
/// <summary>
|
|
/// The action that gets displayed when the voice mask is equipped.
|
|
/// </summary>
|
|
[DataField]
|
|
public EntProtoId Action = "ActionChangeVoiceMask";
|
|
|
|
// Sunrise-TTS-Start
|
|
[DataField]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public string VoiceId = SharedHumanoidAppearanceSystem.DefaultVoice;
|
|
// Sunrise-TTS-End
|
|
|
|
/// <summary>
|
|
/// Reference to the action.
|
|
/// </summary>
|
|
[DataField]
|
|
public EntityUid? ActionEntity;
|
|
}
|