From bcc30813e96087a3b5b434655fce3c7be0ee47de Mon Sep 17 00:00:00 2001 From: FungiFellow <151778459+FungiFellow@users.noreply.github.com> Date: Sat, 13 Sep 2025 03:01:13 -0400 Subject: [PATCH] Cockroach Gib when Stepped on (#40103) * Cockroach Gib * Prevent Cockroaches From Gibbing Eachother * Added - type: RandomChanceTriggerCondition * Update animals.yml * Named SuccessChance Datafield * successChance * Revert Change * Uncapitalize C * RECAPITALIZE THE C --- Resources/Prototypes/Entities/Mobs/NPCs/animals.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Resources/Prototypes/Entities/Mobs/NPCs/animals.yml b/Resources/Prototypes/Entities/Mobs/NPCs/animals.yml index c8bf6f23c3..7fa2583b52 100644 --- a/Resources/Prototypes/Entities/Mobs/NPCs/animals.yml +++ b/Resources/Prototypes/Entities/Mobs/NPCs/animals.yml @@ -341,7 +341,7 @@ - type: TimedDespawn #delete the egg after the chicken spawns lifetime: 21 -- type: entity # TODO: figure out how to make these guys gib when stepped on +- type: entity name: cockroach parent: SimpleMobBase id: MobCockroach @@ -426,6 +426,13 @@ - !type:GibBehavior recursive: false - type: NonSpreaderZombie + - type: StepTrigger + requiredTriggeredSpeed: 1 + - type: TriggerOnStepTrigger + - type: RandomChanceTriggerCondition + successChance: 0.2 + - type: GibOnTrigger + - type: ProtectedFromStepTriggers - type: MeleeWeapon soundHit: path: /Audio/Effects/bite.ogg -- 2.51.2