Files
Delta-v/Content.Shared/_NF/Emp/Components/EmpBlastComponent.cs
T
Dvir 2a25a1e719 Add EMP Blast effect shader (Frontier #2262) (#2762)
* Add EMP Blast effect shader (#2262)

* Update emp.swsl

Signed-off-by: Dvir <39403717+dvir001@users.noreply.github.com>

* Update shaders.yml

Signed-off-by: Dvir <39403717+dvir001@users.noreply.github.com>

* Update emp.yml

Signed-off-by: Dvir <39403717+dvir001@users.noreply.github.com>

---------

Signed-off-by: Dvir <39403717+dvir001@users.noreply.github.com>
2025-01-18 11:56:47 +00:00

31 lines
933 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared._NF.Emp.Components;
/// <summary>
/// Create circle pulse animation of emp around object.
/// Drawn on client after creation only once per component lifetime.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class EmpBlastComponent : Component
{
/// <summary>
/// Timestamp when component was assigned to this entity.
/// </summary>
[AutoNetworkedField]
public TimeSpan StartTime;
/// <summary>
/// How long will animation play in seconds.
/// Can be overridden by <see cref="Robust.Shared.Spawners.TimedDespawnComponent"/>.
/// </summary>
[DataField, AutoNetworkedField]
public float VisualDuration = 1f;
/// <summary>
/// The range of animation.
/// </summary>
[DataField, AutoNetworkedField]
public float VisualRange = 5f;
}