Implanters and Subdermal Implants (#11840)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
16
Content.Server/Explosion/Components/GibOnTriggerComponent.cs
Normal file
16
Content.Server/Explosion/Components/GibOnTriggerComponent.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Content.Server.Explosion.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Gibs on trigger, self explanatory.
|
||||
/// Also in case of an implant using this, gibs the implant user instead.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class GibOnTriggerComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Should gibbing also delete the owners items?
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("deleteItems")]
|
||||
public bool DeleteItems = false;
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
using Content.Shared.MobState;
|
||||
using Robust.Shared.Audio;
|
||||
|
||||
namespace Content.Server.Explosion.Components
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
using Content.Shared.MobState;
|
||||
|
||||
namespace Content.Server.Explosion.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Use where you want something to trigger on mobstate change
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class TriggerOnMobstateChangeComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// What state should trigger this?
|
||||
/// </summary>
|
||||
[DataField("mobState", required: true)]
|
||||
public DamageState MobState = DamageState.Alive;
|
||||
}
|
||||
Reference in New Issue
Block a user