6
StarHorizon_Public/Content.Server/_NF/Emp/EmpDescriptionComponent.cs
2026-01-24 12:49:55 +03:00

28 lines
677 B
C#

namespace Content.Server.Emp;
/// <summary>
/// Generates an EMP description for an entity that won't otherwise get one.
/// </summary>
[RegisterComponent]
[Access(typeof(EmpSystem))]
public sealed partial class EmpDescriptionComponent : Component
{
/// <summary>
/// The range of the EMP blast, in meters
/// </summary>
[DataField]
public float Range = 1.0f;
/// <summary>
/// How much energy will be consumed per battery in range
/// </summary>
[DataField]
public float EnergyConsumption;
/// <summary>
/// How long it disables targets in seconds
/// </summary>
[DataField]
public float DisableDuration = 10f;
}