Make projectiles not hit crates unless clicked on (#28072)

This commit is contained in:
Cojoke
2024-06-03 08:04:07 -05:00
committed by GitHub
parent 977bd5ad6d
commit e784f2cf3c
5 changed files with 69 additions and 18 deletions

View File

@@ -0,0 +1,14 @@
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;
}