Deathgasp + last words / succumbing / fake deathgasp as crit actions (#18993)
This commit is contained in:
18
Content.Server/Mobs/DeathgaspComponent.cs
Normal file
18
Content.Server/Mobs/DeathgaspComponent.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Content.Shared.Chat.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Server.Mobs;
|
||||
|
||||
/// <summary>
|
||||
/// Mobs with this component will emote a deathgasp when they die.
|
||||
/// </summary>
|
||||
/// <see cref="DeathgaspSystem"/>
|
||||
[RegisterComponent]
|
||||
public sealed class DeathgaspComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The emote prototype to use.
|
||||
/// </summary>
|
||||
[DataField("prototype", customTypeSerializer:typeof(PrototypeIdSerializer<EmotePrototype>))]
|
||||
public string Prototype = "DefaultDeathgasp";
|
||||
}
|
||||
Reference in New Issue
Block a user