Adds Destructible data to some common objects. (#12524)

* simple destructible

* more destructibles
This commit is contained in:
Mervill
2022-11-10 06:32:52 -08:00
committed by GitHub
parent da1f0ce8b1
commit 853ddaae36
8 changed files with 115 additions and 1 deletions

View File

@@ -262,4 +262,17 @@
maxVol: 500
- type: DrainableSolution
solution: drainBuffer
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg

View File

@@ -7,3 +7,22 @@
- type: Sprite
sprite: Structures/Furniture/furniture.rsi
state: dresser
- type: Damageable
damageModifierSet: Wood
damageContainer: Inorganic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
MaterialWoodPlank1:
min: 3
max: 3
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Tag
tags:
- Wooden

View File

@@ -19,6 +19,20 @@
- type: DrainableSolution
solution: tank
- type: ReagentTank
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 40
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
- type: entity
name: sink

View File

@@ -64,6 +64,20 @@
- type: Construction
graph: AirAlarm
node: air_alarm
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
placement:
mode: SnapgridCenter
snap:

View File

@@ -36,6 +36,21 @@
- type: ContainerContainer
containers:
ItemCabinet: !type:ContainerSlot
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 40
behaviors:
- !type:EmptyAllContainersBehaviour
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
placement:
mode: SnapgridCenter

View File

@@ -75,6 +75,20 @@
- type: Construction
graph: FireAlarm
node: fire_alarm
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 80
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
placement:
mode: SnapgridCenter
snap:

View File

@@ -46,6 +46,17 @@
type: WiresBoundUserInterface
- type: StaticPrice
price: 200
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
placement:
mode: SnapgridCenter
snap:

View File

@@ -58,6 +58,20 @@
- type: SignalTransmitter
outputs:
Pressed: []
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 40
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
- type: entity
id: ApcNetSwitch