]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
make vending machines destructible (#16574)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Thu, 18 May 2023 23:48:14 +0000 (19:48 -0400)
committerGitHub <noreply@github.com>
Thu, 18 May 2023 23:48:14 +0000 (09:48 +1000)
Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml

index 699625b61fe423af0d4ba3bc8e7d3acb426a483e..a662bafc99c4c8a9525f28efca1fddb22408ece0 100644 (file)
       - !type:DoActsBehavior
         acts: ["Breakage"]
       - !type:EjectVendorItems
+    - trigger:
+        !type:DamageTrigger
+        damage: 200
+      behaviors:
+      - !type:SpawnEntitiesBehavior
+        spawn:
+          SheetSteel1:
+            min: 1
+            max: 1
+      - !type:DoActsBehavior
+        acts: [ "Destruction" ]
+      - !type:PlaySoundBehavior
+        sound:
+          path: /Audio/Effects/metalbreak.ogg
   - type: ActivatableUI
     key: enum.VendingMachineUiKey.Key
   - type: ActivatableUIRequiresPower