From 4bb94238819b4c96cf162f2c7e431021a8ab74be Mon Sep 17 00:00:00 2001 From: Gnomeev <137652177+Gnomeev@users.noreply.github.com> Date: Tue, 30 Jul 2024 16:20:37 +0300 Subject: [PATCH] Destructible Box (#1487) --- .../Structures/Storage/Closets/big_boxes.yml | 37 ++++++++++++++----- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/Resources/Prototypes/Entities/Structures/Storage/Closets/big_boxes.yml b/Resources/Prototypes/Entities/Structures/Storage/Closets/big_boxes.yml index 0c5db15c7c42..91edc7bf2ca4 100644 --- a/Resources/Prototypes/Entities/Structures/Storage/Closets/big_boxes.yml +++ b/Resources/Prototypes/Entities/Structures/Storage/Closets/big_boxes.yml @@ -35,6 +35,24 @@ entity_storage: !type:Container - type: Damageable damageContainer: Box + # ss220 box fix begin + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 60 + behaviors: + - !type:PlaySoundBehavior + sound: + collection: WoodDestroyHeavy + - !type:SpawnEntitiesBehavior + spawn: + MaterialCardboard: + min: 2 + max: 4 + - !type:DoActsBehavior + acts: [ "Destruction" ] + # ss220 box fix end - type: Sprite noRot: true sprite: SS220/Structures/Storage/closet.rsi #SS220-Closet-Resprite @@ -91,15 +109,16 @@ parent: BaseBigBox components: - type: InteractionOutline - - type: Destructible - thresholds: - - trigger: - !type:DamageTrigger - damage: 15 - behaviors: - - !type:DoActsBehavior - acts: [ "Destruction" ] - + # ss220 box fix begin + # - type: Destructible + # thresholds: + # - trigger: + # !type:DamageTrigger + # damage: 15 + # behaviors: + # - !type:DoActsBehavior + # acts: [ "Destruction" ] + # ss220 box fix end #For admin spawning only - type: entity