construction

This commit is contained in:
Kara D
2021-08-05 21:10:06 -07:00
parent e460285187
commit 5af4c06231
8 changed files with 388 additions and 10 deletions

View File

@@ -0,0 +1,80 @@
- type: entity
id: WindoorAssembly
name: windoor assembly
description: It opens, it closes, and you can see through it!
parent: BaseStructure
components:
- type: InteractionOutline
- type: Sprite
netsync: false
drawdepth: FloorObjects
sprite: Structures/Doors/Windoors/windoor.rsi
layers:
- state: assembly
- state: panel_open
visible: false
- type: Physics
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.2,-0.49,-0.49,0.49"
mass: 30
mask:
- Impassable
- VaultImpassable
- type: Anchorable
- type: Pullable
- type: Rotatable
- type: Damageable
resistances: metallicResistances
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
MetalRod:
min: 1
max: 3
- type: Construction
graph: windoor
node: assembly
placement:
mode: SnapgridCenter
- type: entity
id: WindoorAssemblySecure
name: secure windoor assembly
description: It opens, it closes, and you can see through it! This one looks tough.
parent: WindoorAssembly
components:
- type: Sprite
netsync: false
drawdepth: Mobs
sprite: Structures/Doors/Windoors/windoor.rsi
layers:
- state: secure_underlay
- state: assembly
- state: panel_open
visible: false
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 600
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
MetalRod:
min: 2
max: 4
- type: Construction
graph: windoor
node: assemblySecure

View File

@@ -50,12 +50,16 @@
ShardGlass:
min: 1
max: 2
MetalRod:
min: 1
max: 3
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: AccessReader
- type: Airlock
openPanelVisible: true
- type: Door
weldable: false
openSound:
path: /Audio/Machines/windoor_open.ogg
closeSound:
@@ -77,6 +81,9 @@
animatedPanel: false
openUnlitVisible: true
- type: WiresVisualizer
- type: Construction
graph: windoor
node: windoor
- type: entity
id: BaseSecureWindoor
@@ -118,13 +125,14 @@
ShardGlass:
min: 1
max: 2
- !type:SpawnEntitiesBehavior
spawn:
MetalRod:
min: 1
max: 3
min: 2
max: 4
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Construction
graph: windoor
node: windoorSecure
# "0.49,-0.49,-0.49,-0.2"
# to: