Files
wwdpublic/Content.Server/VoiceMask/VoiceMaskComponent.cs
Boevi4ok 10a2f9b48f [ADD] Мы ахуеем (#478)
* IDIDITFINALLY

gollllllllllllllllll

* special anti AI dogshit operation

* 1fix

* fix2

* 3fix

* vse fix

* fixithinklast

* merge cockflict

* Update meta.json

* eshofixblya

zaebalo

* рот РОССЕТЕЙ ебал сыновья шлюх пропитых

да

* maalofix

* Update Content.Server/VoiceMask/VoiceMaskSystem.cs

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Update Content.Client/Inventory/StrippableBoundUserInterface.cs

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Update Content.Client/Inventory/StrippableBoundUserInterface.cs

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Update Content.Server/_White/Examine/ExaminableCharacterSystem.cs

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Update Content.Client/Inventory/StrippableBoundUserInterface.cs

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Update Content.Client/Inventory/StrippableBoundUserInterface.cs

* Update Content.Server/VoiceMask/VoiceMaskComponent.cs

---------

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>
2025-05-06 08:22:27 +03:00

47 lines
1.5 KiB
C#

using Content.Shared.Humanoid;
using Content.Shared.Speech;
using Robust.Shared.Prototypes;
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"; // WD EDIT
// WD EDIT START
[DataField]
public string VoiceId = SharedHumanoidAppearanceSystem.DefaultVoice;
// WD EDIT END
/// <summary>
/// Reference to the action.
/// </summary>
[DataField]
public EntityUid? ActionEntity;
}