From: FungiFellow <151778459+FungiFellow@users.noreply.github.com> Date: Sat, 13 Sep 2025 07:01:13 +0000 (-0400) Subject: Cockroach Gib when Stepped on (#40103) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=bcc30813e96087a3b5b434655fce3c7be0ee47de;p=space-station-14.git 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 --- 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