From 4f2add8f907171b9069b5c664694e2bb68dbf995 Mon Sep 17 00:00:00 2001 From: Peptide90 <78795277+Peptide90@users.noreply.github.com> Date: Thu, 18 Feb 2021 12:17:38 +0000 Subject: [PATCH] Made firelocks damageable & destructible (#3303) --- .../Entities/Constructible/Doors/firelock.yml | 10 ++++++++++ .../Entities/Constructible/Doors/firelock_frame.yml | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/Resources/Prototypes/Entities/Constructible/Doors/firelock.yml b/Resources/Prototypes/Entities/Constructible/Doors/firelock.yml index d03c757fd3..4100d6dc85 100644 --- a/Resources/Prototypes/Entities/Constructible/Doors/firelock.yml +++ b/Resources/Prototypes/Entities/Constructible/Doors/firelock.yml @@ -5,6 +5,16 @@ components: - type: Clickable - type: InteractionOutline + - type: Damageable + resistances: metallicResistances + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 500 + behaviors: + - !type:DoActsBehavior + acts: ["Destruction"] - type: Sprite netsync: false drawdepth: Mobs # They're on the same layer as mobs, perspective. diff --git a/Resources/Prototypes/Entities/Constructible/Doors/firelock_frame.yml b/Resources/Prototypes/Entities/Constructible/Doors/firelock_frame.yml index e4d8931124..113b927d18 100644 --- a/Resources/Prototypes/Entities/Constructible/Doors/firelock_frame.yml +++ b/Resources/Prototypes/Entities/Constructible/Doors/firelock_frame.yml @@ -11,6 +11,16 @@ node: frame1 - type: Clickable - type: InteractionOutline + - type: Damageable + resistances: metallicResistances + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 500 + behaviors: + - !type:DoActsBehavior + acts: ["Destruction"] - type: Physics shapes: - !type:PhysShapeAabb