finished yaml
This commit is contained in:
@@ -1,44 +1,45 @@
|
||||
- type: entity
|
||||
id: Windoor
|
||||
parent: BaseStructure
|
||||
id: WindoorLeft
|
||||
parent: BaseWindoor
|
||||
name: windoor
|
||||
description: It's a window and a sliding door. Wow!
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
suffix: Left
|
||||
components:
|
||||
- type: Sprite
|
||||
state: left
|
||||
|
||||
- type: entity
|
||||
id: WindoorRight
|
||||
parent: BaseWindoor
|
||||
name: windoor
|
||||
description: It's a window and a sliding door. Wow! This one is flipped 180 degrees.
|
||||
suffix: Right
|
||||
components:
|
||||
- type: Sprite
|
||||
state: right
|
||||
|
||||
- type: entity
|
||||
id: WindoorLeftSecure
|
||||
parent: BaseSecureWindoor
|
||||
name: secure windoor
|
||||
description: It's a sturdy window and a sliding door. Wow!
|
||||
suffix: Left
|
||||
components:
|
||||
- type: InteractionOutline
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
drawdepth: Mobs
|
||||
sprite: Structures/Doors/windoor.rsi
|
||||
state: left
|
||||
- type: Physics
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.5, -0.5, -0.3, 0.5" # i don't understand why these bounds work but they do
|
||||
mass: 100
|
||||
mask:
|
||||
- MobImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
- Impassable
|
||||
- MobImpassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
- type: ApcPowerReceiver
|
||||
- type: Damageable
|
||||
resistances: glassResistances
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 200
|
||||
behaviors:
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
ShardGlass:
|
||||
min: 1
|
||||
max: 2
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
state: left_secure
|
||||
|
||||
- type: entity
|
||||
id: WindoorRightSecure
|
||||
parent: BaseSecureWindoor
|
||||
name: secure windoor
|
||||
description: It's a sturdy window and a sliding door. Wow! This one is flipped 180 degrees.
|
||||
suffix: Right
|
||||
components:
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
drawdepth: Mobs
|
||||
sprite: Structures/Doors/windoor.rsi
|
||||
state: right_secure
|
||||
|
||||
66
Resources/Prototypes/Entities/Structures/Windoors/base.yml
Normal file
66
Resources/Prototypes/Entities/Structures/Windoors/base.yml
Normal file
@@ -0,0 +1,66 @@
|
||||
- type: entity
|
||||
id: BaseWindoor
|
||||
parent: BaseStructure
|
||||
abstract: true
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
components:
|
||||
- type: InteractionOutline
|
||||
- type: Physics
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.49,-0.49,0.49,0.49"
|
||||
mass: 50
|
||||
mask:
|
||||
- MobImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
- Impassable
|
||||
- MobImpassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
drawdepth: Mobs
|
||||
sprite: Structures/Doors/windoor.rsi
|
||||
- type: ApcPowerReceiver
|
||||
- type: Damageable
|
||||
resistances: glassResistances
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 200
|
||||
behaviors:
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
ShardGlass:
|
||||
min: 1
|
||||
max: 2
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
|
||||
- type: entity
|
||||
id: BaseSecureWindoor
|
||||
parent: BaseWindoor
|
||||
abstract: true
|
||||
components:
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 400
|
||||
behaviors:
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
ShardGlass:
|
||||
min: 1
|
||||
max: 2
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
MetalRod:
|
||||
min: 1
|
||||
max: 3
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
Reference in New Issue
Block a user