Add emp grenade (#14393)
This commit is contained in:
17
Content.Server/Emp/EmpOnTriggerComponent.cs
Normal file
17
Content.Server/Emp/EmpOnTriggerComponent.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace Content.Server.Emp;
|
||||
|
||||
/// <summary>
|
||||
/// Upon being triggered will EMP area around it.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
sealed 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;
|
||||
}
|
||||
Reference in New Issue
Block a user