Gibbing refactor (Per-part gibbing and giblet throwing!) (#24989)

* Moving Gibbing rework out from medrefactor into it's own PR

* Re-enabled warning for missing gibbable on TryGibEntity

* Implemented better logic for gibbing failover and better logging

* Allowing audio params and drop scattering customization per component. Created UnGibbable organ base types and made brains ungibbable.
Removed delete brain from gibBody function. Artifact crusher does not destroy brains anymore. It only destroyed brains before not other organs which was wierd.

* Update Content.Shared/Body/Systems/SharedBodySystem.Body.cs

Fixing space for multiplication

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>

* Added event raised when attempting to gib contained entities to allow modification of allowed and excluded container ids

* removing audioParams var from component (sound specifier includes it)

* Fixing signature

---------

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Jezithyr
2024-02-10 15:37:06 -08:00
committed by GitHub
parent 2a9fa67a7f
commit 541d8f8715
12 changed files with 493 additions and 35 deletions

View File

@@ -1,5 +1,5 @@
- type: entity
id: BaseAnimalOrgan
id: BaseAnimalOrganUnGibbable
parent: BaseItem
abstract: true
components:
@@ -23,6 +23,12 @@
tags:
- Meat
- type: entity
id: BaseAnimalOrgan
parent: BaseAnimalOrganUnGibbable
abstract: true
components:
- type: Gibbable
- type: entity
id: OrganAnimalLungs

View File

@@ -1,5 +1,5 @@
- type: entity
id: BaseHumanOrgan
id: BaseHumanOrganUnGibbable
parent: BaseItem
abstract: true
components:
@@ -27,9 +27,16 @@
tags:
- Meat
- type: entity
id: BaseHumanOrgan
parent: BaseHumanOrganUnGibbable
abstract: true
components:
- type: Gibbable
- type: entity
id: OrganHumanBrain
parent: BaseHumanOrgan
parent: BaseHumanOrganUnGibbable
name: brain
description: "The source of incredible, unending intelligence. Honk."
components:

View File

@@ -23,6 +23,7 @@
- type: Tag
tags:
- Trash
- type: Gibbable
- type: Extractable
juiceSolution:
reagents:

View File

@@ -9,6 +9,7 @@
- type: Damageable
damageContainer: Biological
- type: BodyPart
- type: Gibbable
- type: ContainerContainer
containers:
bodypart: !type:Container

View File

@@ -14,6 +14,7 @@
ents: []
- type: StaticPrice
price: 20
- type: Gibbable
- type: Tag
tags:
- Trash

View File

@@ -16,6 +16,7 @@
containers:
bodypart: !type:Container
ents: []
- type: Gibbable
- type: StaticPrice
price: 200