From: Token Date: Sat, 29 Jun 2024 03:28:46 +0000 (+0500) Subject: Mechs now destructable (#29338) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=f7e92980ab78ed1abb77d345a1b01cad665dafea;p=space-station-14.git Mechs now destructable (#29338) Add Destructible component to BaseMech So all mechs are destructable now --- diff --git a/Resources/Prototypes/Entities/Objects/Specific/Mech/mechs.yml b/Resources/Prototypes/Entities/Objects/Specific/Mech/mechs.yml index dab6f9f20f..99d39a8249 100644 --- a/Resources/Prototypes/Entities/Objects/Specific/Mech/mechs.yml +++ b/Resources/Prototypes/Entities/Objects/Specific/Mech/mechs.yml @@ -92,6 +92,19 @@ - type: GuideHelp guides: - Robotics + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 400 + behaviors: + - !type:PlaySoundBehavior + sound: + collection: MetalBreak + - !type:ChangeConstructionNodeBehavior + node: start + - !type:DoActsBehavior + acts: ["Destruction"] - type: entity id: MechRipley