Shuttle walls (#7219)

This commit is contained in:
metalgearsloth
2022-03-29 10:11:39 +11:00
committed by GitHub
parent 122029938a
commit 6dfa4c0fef
14 changed files with 153 additions and 0 deletions

View File

@@ -32,6 +32,8 @@
- Impassable
- VaultImpassable
- SmallImpassable
mask:
- Impassable
- type: Occluder
sizeX: 32
sizeY: 32

View File

@@ -462,6 +462,97 @@
key: walls
base: silver
- type: entity
id: WallShuttleDiagonal
name: shuttle wall
suffix: diagonal
description: Keeps the air in and the greytide out.
placement:
mode: SnapgridCenter
snap:
- Wall
components:
- type: Transform
anchored: true
- type: Clickable
- type: Tag
tags:
- Wall
- type: Sprite
netsync: false
drawdepth: Walls
# TODO: Icon smoothing support
sprite: Structures/Walls/shuttle_diagonal.rsi
state: state0
- type: Icon
sprite: Structures/Walls/shuttle_diagonal.rsi
state: state0
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Physics
bodyType: Static
- type: Pullable
- type: Fixtures
fixtures:
- shape:
!type:PolygonShape
vertices:
- "-0.5,-0.5"
- "0.5,0.5"
- "0.5,-0.5"
layer:
- Opaque
- Impassable
- MobImpassable
- VaultImpassable
- SmallImpassable
mask:
- Impassable
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
- !type:DoActsBehavior
acts: ["Destruction"]
destroySound:
path: /Audio/Effects/metalbreak.ogg
- type: entity
parent: WallBase
id: WallShuttle
name: shuttle wall
components:
- type: Tag
tags:
- Wall
- RCDDeconstructWhitelist
- type: Sprite
sprite: Structures/Walls/shuttle.rsi
- type: Icon
sprite: Structures/Walls/shuttle.rsi
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 500
behaviors:
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
- !type:DoActsBehavior
acts: ["Destruction"]
destroySound:
path: /Audio/Effects/metalbreak.ogg
- type: IconSmooth
key: walls
base: state
- type: entity
parent: WallBase
id: WallSolid