Files
tbd-station-14/Content.Client/Weapons/Melee/Components/WeaponArcVisualsComponent.cs
Magnus Larsen f1c36af0a5 Fix Melee swing effect rotation (#27494)
* Melee swing effect: Allow rotation

* Make melee weapon effects follow the user
2024-04-30 21:56:41 +10:00

24 lines
535 B
C#

namespace Content.Client.Weapons.Melee.Components;
/// <summary>
/// Used for melee attack animations. Typically just has a fadeout.
/// </summary>
[RegisterComponent]
public sealed partial class WeaponArcVisualsComponent : Component
{
public EntityUid? User;
[DataField("animation")]
public WeaponArcAnimation Animation = WeaponArcAnimation.None;
[ViewVariables(VVAccess.ReadWrite), DataField("fadeOut")]
public bool Fadeout = true;
}
public enum WeaponArcAnimation : byte
{
None,
Thrust,
Slash,
}