Files
space-station-14/Content.Shared/Gibbing/GibOnRoundEndComponent.cs
pathetic meowmeow fb133494cc Decouple gibbing from the body system (#42405)
* Decouple gibbing from the body system

* allow gibs that don't drop giblets

* pass through user

* prediction gon

* comment

* destructible

* playpvs

* very very very very very very very minor cleanup

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
2026-01-14 05:57:08 +00:00

23 lines
579 B
C#

using Robust.Shared.Prototypes;
namespace Content.Shared.Gibbing.Components;
/// <summary>
/// Gibs an entity on round end.
/// </summary>
[RegisterComponent]
public sealed partial class GibOnRoundEndComponent : Component
{
/// <summary>
/// If the entity has all these objectives fulfilled they won't be gibbed.
/// </summary>
[DataField]
public HashSet<EntProtoId> PreventGibbingObjectives = new();
/// <summary>
/// Entity to spawn when gibbed. Can be used for effects.
/// </summary>
[DataField]
public EntProtoId? SpawnProto;
}