adds destructible to power structures (#8536)

This commit is contained in:
Peptide90
2022-06-03 11:10:18 +01:00
committed by GitHub
parent f5dfba9db4
commit d2377df81f
3 changed files with 34 additions and 0 deletions

View File

@@ -45,6 +45,9 @@
supplyRampTolerance: 500
- type: Anchorable
- type: Pullable
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:

View File

@@ -69,3 +69,25 @@
supplyRampTolerance: 1000
supplyRampRate: 500
- type: WallMount
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors: #excess damage, don't spawn entities.
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]

View File

@@ -138,6 +138,9 @@
maxChargeRate: 5000
supplyRampTolerance: 5000
supplyRampRate: 1000
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
@@ -146,9 +149,15 @@
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:ExplodeBehavior
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
- type: Explosive
explosionType: Default
maxIntensity: 50
intensitySlope: 2
totalIntensity: 100
# Substations in use