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))]
|
2023-08-22 18:14:33 -07:00
|
|
|
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;
|
2023-05-07 01:26:04 +10:00
|
|
|
|
|
|
|
|
/// <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
|
|
|
}
|