Shuttle airlock cleanup (#5737)

This commit is contained in:
AJCM-git
2021-12-11 19:09:16 -04:00
committed by GitHub
parent 6259794e8b
commit a785273801
16 changed files with 116 additions and 76 deletions

View File

@@ -449,3 +449,12 @@
components:
- type: AccessReader
access: [["HeadOfPersonnel"]]
# Shuttle airlocks
- type: entity
parent: AirlockShuttle
id: AirlockExternalShuttleLocked
suffix: External, Locked
components:
- type: AccessReader
access: [["External"]]

View File

@@ -1,44 +1,29 @@
- type: entity
id: AirlockShuttle
parent: BaseStructure
name: airlock
parent: Airlock
name: external airlock
suffix: Docking
description: Necessary for connecting two space craft together.
components:
- type: Docking
- type: InteractionOutline
- type: Sprite
netsync: false
sprite: Structures/Doors/Airlocks/Standard/shuttle.rsi
layers:
- state: closed
map: ["enum.DoorVisualLayers.Base"]
#- state: closed_unlit
# shader: unshaded
# map: ["enum.DoorVisualLayers.BaseUnlit"]
#- state: welded
# map: ["enum.DoorVisualLayers.BaseWelded"]
#- state: bolted_unlit
# shader: unshaded
# map: ["enum.DoorVisualLayers.BaseBolted"]
#- state: panel_open
# map: ["enum.WiresVisualLayers.MaintenancePanel"]
- type: Physics
- type: Fixtures
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.49,-0.49,0.49,0.49" # don't want this colliding with walls or they won't close
mass: 100
mask:
- MobImpassable
layer:
- Opaque
- Impassable
- MobImpassable
- VaultImpassable
- SmallImpassable
- state: closed_unlit
shader: unshaded
map: ["enum.DoorVisualLayers.BaseUnlit"]
- state: welded
map: ["enum.DoorVisualLayers.BaseWelded"]
- state: bolted_unlit
shader: unshaded
map: ["enum.DoorVisualLayers.BaseBolted"]
- state: panel_open
map: ["enum.WiresVisualLayers.MaintenancePanel"]
- type: Door
bumpOpen: false
closeTimeTwo: 0.4
openTimeTwo: 0.4
board: DoorElectronics
@@ -49,44 +34,9 @@
path: /Audio/Effects/docking.ogg
closeSound:
path: /Audio/Effects/docking.ogg
# denySound:
# path: /Audio/Machines/airlock_deny.ogg
- type: Airlock
- type: Appearance
visuals:
- type: AirlockVisualizer
simpleVisuals: true
# - type: WiresVisualizer
- type: ApcPowerReceiver
- type: ExtensionCableReceiver
#- type: Wires
# BoardName: "Airlock Control"
# LayoutId: Airlock
#- type: UserInterface
# interfaces:
# - key: enum.WiresUiKey.Key
# type: WiresBoundUserInterface
denySound:
path: /Audio/Machines/airlock_deny.ogg
- type: Airtight
fixVacuum: true
airBlockedDirection:
- South
- type: Occluder
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 500
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
#- type: Construction
# graph: airlock
# node: airlock
- type: IconSmooth
key: walls
mode: NoSprite
placement:
mode: SnapgridCenter