Files
crystall-punk-14/Content.Server/Emp/EmpOnTriggerComponent.cs

25 lines
719 B
C#
Raw Permalink Normal View History

2023-03-06 22:05:12 +03:00
namespace Content.Server.Emp;
/// <summary>
/// Upon being triggered will EMP area around it.
/// </summary>
[RegisterComponent]
2023-03-06 22:26:08 +03:00
[Access(typeof(EmpSystem))]
public sealed partial class EmpOnTriggerComponent : Component
2023-03-06 22:05:12 +03:00
{
[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;
2023-03-06 22:05:12 +03:00
}