Substations now explode when destroyed (#5729)
* Substation destructible component Substations now explode and create a destroyed machine which can be deconstructed. * construction graph test failed Does not need a path from start to finish but adding anyway to fix tests * railing to structures * Fixed Review Updated parent to fix most comments. Updated node to camelcase * Updated target node graph Still recovering... * Final fix of graph I swear * Altered destroyed machine spawns Removed HV cable and reduced steel sheets.
This commit is contained in:
@@ -105,3 +105,37 @@
|
||||
- type: Appearance
|
||||
visuals:
|
||||
- type: MachineFrameVisualizer
|
||||
|
||||
|
||||
- type: entity
|
||||
id: MachineFrameDestroyed
|
||||
parent: BaseStructureDynamic
|
||||
name: destroyed machine frame
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
components:
|
||||
- type: Transform
|
||||
anchored: true
|
||||
- type: Construction
|
||||
graph: machine
|
||||
node: destroyedMachineFrame
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Metallic
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 100
|
||||
behaviors:
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
SheetSteel1:
|
||||
min: 1
|
||||
max: 3
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
sprite: Structures/Machines/parts.rsi
|
||||
state: destroyed
|
||||
@@ -42,3 +42,25 @@
|
||||
maxChargeRate: 5000
|
||||
supplyRampTolerance: 5000
|
||||
supplyRampRate: 1000
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 100
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
path: /Audio/Effects/metalbreak.ogg
|
||||
- !type:ExplodeBehavior
|
||||
- !type:SpawnEntitiesBehavior #in future should also emit a cloud of hot gas
|
||||
spawn:
|
||||
MachineFrameDestroyed:
|
||||
min: 1
|
||||
max: 1
|
||||
- type: Explosive
|
||||
devastationRange: 1
|
||||
heavyImpactRange: 3
|
||||
lightImpactRange: 5
|
||||
flashRange: 6
|
||||
Reference in New Issue
Block a user