Files
ss14-wl/Content.Shared/Administration/Components/KillSignComponent.cs
ScarKy0 40ae49bb85 Killsign cleanup (#41845)
* init

* rsi

* review

* scale

* it

* cat, dog, nerd

* rsi

* I just microbalanced animation speed

* raider, stinky resprite

* review

* HideFromOwner

* hidden smite

* copyright

* Apply suggestions from code review

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
2025-12-14 02:04:28 +00:00

44 lines
1.3 KiB
C#

using System.Numerics;
using Robust.Shared.GameStates;
using Robust.Shared.Utility;
namespace Content.Shared.Administration.Components;
/// <summary>
/// Displays a sprite above an entity.
/// By default a huge sign saying "KILL".
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(raiseAfterAutoHandleState: true)]
public sealed partial class KillSignComponent : Component
{
/// <summary>
/// The sprite show above the entity.
/// </summary>
[DataField, AutoNetworkedField]
public SpriteSpecifier? Sprite = new SpriteSpecifier.Rsi(new ResPath("Objects/Misc/killsign.rsi"), "kill");
/// <summary>
/// Whether the granted layer should always be forced to be unshaded.
/// </summary>
[DataField, AutoNetworkedField]
public bool ForceUnshaded = true;
/// <summary>
/// Whether the granted layer should be offset to be above the entity.
/// </summary>
[DataField, AutoNetworkedField]
public bool DoOffset = true;
/// <summary>
/// Prevents the sign from displaying to the owner of the component, allowing everyone but them to see it.
/// </summary>
[DataField, AutoNetworkedField]
public bool HideFromOwner = false;
/// <summary>
/// The scale of the sprite.
/// </summary>
[DataField, AutoNetworkedField]
public Vector2 Scale = Vector2.One;
}