Make projectiles not hit crates unless clicked on (#28072)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user