From 6574681bcb88e9c524b998c525d1980e88884e96 Mon Sep 17 00:00:00 2001 From: Gyrandola Date: Wed, 13 Mar 2024 16:09:06 +0100 Subject: [PATCH] Make fireaxe & shotgun cabinets destructible (#25962) * Update fireaxe_cabinet.yml * added min(75) and max (100) dmg threshold 100 dmg destroys the axe as well. * made the cabinet tougher --- .../Structures/Wallmounts/fireaxe_cabinet.yml | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Resources/Prototypes/Entities/Structures/Wallmounts/fireaxe_cabinet.yml b/Resources/Prototypes/Entities/Structures/Wallmounts/fireaxe_cabinet.yml index 070c6e526d..acd865aa62 100644 --- a/Resources/Prototypes/Entities/Structures/Wallmounts/fireaxe_cabinet.yml +++ b/Resources/Prototypes/Entities/Structures/Wallmounts/fireaxe_cabinet.yml @@ -3,9 +3,27 @@ name: fire axe cabinet description: There is a small label that reads "For Emergency use only" along with details for safe use of the axe. As if. components: - - type: Damageable # adding destructible causes the entity inside to be deleted when the cabinet is destroyed :( + - type: Damageable damageContainer: Inorganic damageModifierSet: Glass + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 300 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - trigger: + !type:DamageTrigger + damage: 200 #20ish crowbar hits + behaviors: + - !type:EmptyAllContainersBehaviour + - !type:DoActsBehavior + acts: [ "Destruction" ] + - !type:PlaySoundBehavior + sound: + collection: MetalGlassBreak - type: MeleeSound soundGroups: Brute: -- 2.52.0