make meat spike drop organs (#2154)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas 2024-11-09 04:40:16 +00:00 committed by GitHub
parent 73373c968a
commit d8265ce026
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,7 @@ using Content.Server.Body.Systems;
using Content.Server.Kitchen.Components;
using Content.Server.Popups;
using Content.Shared.Chat;
using Content.Shared.Body.Part; // DeltaV
using Content.Shared.Damage;
using Content.Shared.Database;
using Content.Shared.DoAfter;
@ -160,9 +161,12 @@ namespace Content.Server.Kitchen.EntitySystems
_transform.SetCoordinates(victimUid, Transform(uid).Coordinates);
// THE WHAT?
// TODO: Need to be able to leave them on the spike to do DoT, see ss13.
var gibs = _bodySystem.GibBody(victimUid);
var gibs = _bodySystem.GibBody(victimUid, gibOrgans: true); // DeltaV: spawn organs
foreach (var gib in gibs) {
QueueDel(gib);
// Begin DeltaV changes: Only delete limbs instead of organs
if (HasComp<BodyPartComponent>(gib))
QueueDel(gib);
// End DeltaV changes
}
_audio.PlayEntity(component.SpikeSound, Filter.Pvs(uid), uid, true);