Makes more stuff destructible/breakable (#4081)

This commit is contained in:
Swept
2021-06-19 19:34:01 +00:00
committed by GitHub
parent 6a646d25ca
commit a51305466e
17 changed files with 201 additions and 43 deletions

View File

@@ -24,6 +24,17 @@
- type: SecretStash
secretPartName: the plant
- type: Pullable
- type: Damageable
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/plant_rustle.ogg
- type: entity
id: PottedPlantRandom

View File

@@ -1,28 +1,26 @@
- type: entity
id: SeedExtractor
name: seed extractor
parent: BaseMachinePowered
description: Extracts seeds from produce.
placement:
mode: SnapgridCenter
components:
- type: Clickable
- type: InteractionOutline
- type: Sprite
sprite: Constructible/Hydroponics/machines.rsi
state: seedextractor
- type: Physics
bodyType: Static
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.4,-0.25,0.4,0.25"
mass: 25
layer:
- Opaque
- Impassable
- MobImpassable
- VaultImpassable
- type: SnapGrid
- type: Anchorable
- type: SeedExtractor
- type: PowerReceiver
- type: Sprite
sprite: Constructible/Hydroponics/machines.rsi
layers:
- state: seedextractor-off
- state: seedextractor-unlit
shader: unshaded
netsync: false
- type: Physics
bodyType: Static
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.4,-0.25,0.4,0.25"
mass: 25
layer:
- MobMask
- Opaque
mask:
- MobMask
- type: SeedExtractor

View File

@@ -14,17 +14,13 @@
bounds: "-0.3,-0.4,0.3,0.4"
mass: 25
mask:
- Impassable
- MobImpassable
- VaultImpassable
- SmallImpassable
- Impassable
- VaultImpassable
- SmallImpassable
layer:
- Opaque
- Impassable
- MobImpassable
- VaultImpassable
- type: SnapGrid
- type: ReagentDispenser
- Opaque
- MobImpassable
- SmallImpassable
- type: PowerReceiver
- type: UserInterface
interfaces:
@@ -33,3 +29,15 @@
- type: LoopingSound
- type: Anchorable
- type: Pullable
- type: Damageable
resistances: metallicResistances
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg

View File

@@ -11,14 +11,22 @@
sprite: Constructible/Misc/kitchen.rsi
state: spike
- type: Damageable
resistances: metallicResistances
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 50
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 1
- type: KitchenSpike
- type: Anchorable
- type: Pullable

View File

@@ -40,3 +40,13 @@
shader: unshaded
map: ["enum.MicrowaveVisualizerLayers.BaseUnlit"]
- type: PowerReceiver
- type: Damageable
resistances: metallicResistances
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Breakage"]

View File

@@ -33,3 +33,15 @@
sprite: Constructible/Power/juicer.rsi
state: juicer0
drawdepth: Items
- type: Damageable
resistances: metallicResistances
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg

View File

@@ -24,6 +24,23 @@
- type: PowerReceiver
powerLoad: 200
priority: Low
- type: Damageable
resistances: metallicResistances
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 2
- type: entity
id: BaseResearchAndDevelopmentPointSource
@@ -61,3 +78,18 @@
visuals:
- type: PowerDeviceVisualizer
- type: PowerReceiver
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 1

View File

@@ -53,9 +53,10 @@
- type: entity
id: chem_master_broken
parent: BaseConstructibleDynamic
name: ChemMaster 4000 [Broken]
name: ChemMaster 4000
description: "An industrial grade chemical manipulator with pill and bottle production included. It's broken."
abstract: true
suffix: Broken
components:
- type: Sprite
sprite: Constructible/Power/mixer.rsi

View File

@@ -41,10 +41,17 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
damage: 150
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 1
- type: Appearance
visuals:
- type: StorageVisualizer

View File

@@ -18,3 +18,18 @@
- state: welded
visible: false
map: ["enum.StorageVisualLayers.Welded"]
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 2

View File

@@ -27,11 +27,12 @@
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound: /Audio/Effects/metalbreak.ogg
- type: entity
abstract: true
parent: BaseMachine
id: BaseMachinePowered
components:
- type: PowerReceiver