25 lines
719 B
C#
25 lines
719 B
C#
namespace Content.Server.Emp;
|
|
|
|
/// <summary>
|
|
/// Upon being triggered will EMP area around it.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
[Access(typeof(EmpSystem))]
|
|
public sealed partial class EmpOnTriggerComponent : Component
|
|
{
|
|
[DataField("range"), ViewVariables(VVAccess.ReadWrite)]
|
|
public float Range = 1.0f;
|
|
|
|
/// <summary>
|
|
/// How much energy will be consumed per battery in range
|
|
/// </summary>
|
|
[DataField("energyConsumption"), ViewVariables(VVAccess.ReadWrite)]
|
|
public float EnergyConsumption;
|
|
|
|
/// <summary>
|
|
/// How long it disables targets in seconds
|
|
/// </summary>
|
|
[DataField("disableDuration"), ViewVariables(VVAccess.ReadWrite)]
|
|
public float DisableDuration = 60f;
|
|
}
|