16 lines
488 B
C#
16 lines
488 B
C#
using Content.Shared.Damage.Systems;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Damage.Components;
|
|
|
|
/// <summary>
|
|
/// Prevent the object from getting hit by projetiles unless you target the object.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
[Access(typeof(RequireProjectileTargetSystem))]
|
|
public sealed partial class RequireProjectileTargetComponent : Component
|
|
{
|
|
[DataField, AutoNetworkedField]
|
|
public bool Active = true;
|
|
}
|