1
0

RequireProjectileTargetComponent.cs 451 B

1234567891011121314
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Damage.Components;
  3. /// <summary>
  4. /// Prevent the object from getting hit by projetiles unless you target the object.
  5. /// </summary>
  6. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  7. [Access(typeof(RequireProjectileTargetSystem))]
  8. public sealed partial class RequireProjectileTargetComponent : Component
  9. {
  10. [DataField, AutoNetworkedField]
  11. public bool Active = true;
  12. }