]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Mechs now destructable (#29338)
authorToken <esil.bektay@yandex.com>
Sat, 29 Jun 2024 03:28:46 +0000 (08:28 +0500)
committerGitHub <noreply@github.com>
Sat, 29 Jun 2024 03:28:46 +0000 (13:28 +1000)
Add Destructible component to BaseMech
So all mechs are destructable now

Resources/Prototypes/Entities/Objects/Specific/Mech/mechs.yml

index dab6f9f20fe8cdeed478720393941c31946828ac..99d39a82499bebd7eb34c26d71bad64cca2f00ba 100644 (file)
   - 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