Add radio jammer (#14369)
This commit is contained in:
20
Content.Server/Radio/Components/RadioJammerComponent.cs
Normal file
20
Content.Server/Radio/Components/RadioJammerComponent.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Content.Server.Radio.EntitySystems;
|
||||
|
||||
namespace Content.Server.Radio.Components;
|
||||
|
||||
/// <summary>
|
||||
/// When activated (<see cref="ActiveRadioJammerComponent"/>) prevents from sending messages in range
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(JammerSystem))]
|
||||
public sealed class RadioJammerComponent : Component
|
||||
{
|
||||
[DataField("range"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public float Range = 8f;
|
||||
|
||||
/// <summary>
|
||||
/// Power usage per second when enabled
|
||||
/// </summary>
|
||||
[DataField("wattage"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public float Wattage = 6f;
|
||||
}
|
||||
Reference in New Issue
Block a user