From fc23701fc0ac07c8e89d37e4248e834503a3f187 Mon Sep 17 00:00:00 2001 From: Kara D Date: Thu, 5 Aug 2021 17:35:14 -0700 Subject: [PATCH] a --- .../Structures/Doors/Windoors/base.yml | 112 ++++++++++++++++++ .../Structures/Doors/Windoors/windoor.yml | 47 ++++++++ 2 files changed, 159 insertions(+) create mode 100644 Resources/Prototypes/Entities/Structures/Doors/Windoors/base.yml create mode 100644 Resources/Prototypes/Entities/Structures/Doors/Windoors/windoor.yml diff --git a/Resources/Prototypes/Entities/Structures/Doors/Windoors/base.yml b/Resources/Prototypes/Entities/Structures/Doors/Windoors/base.yml new file mode 100644 index 0000000000..0f8bcc4ea4 --- /dev/null +++ b/Resources/Prototypes/Entities/Structures/Doors/Windoors/base.yml @@ -0,0 +1,112 @@ +- type: entity + id: BaseWindoor + parent: BaseStructure + abstract: true + placement: + mode: SnapgridCenter + components: + - type: InteractionOutline + - type: Physics + fixtures: + - shape: + !type:PhysShapeAabb + bounds: "-0.2,-0.49,-0.49,0.49" + mass: 50 + layer: + - Impassable + - MobImpassable + - VaultImpassable + - SmallImpassable + mask: + - VaultImpassable + - type: Sprite + netsync: false + drawdepth: FloorObjects + sprite: Structures/Doors/Windoors/glass.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: 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: AccessReader + - type: Airlock + - type: Door + openSound: /Audio/Machines/windoor_open.ogg + closeSound: /Audio/Machines/windoor_open.ogg + denySound: /Audio/Machines/airlock_deny.ogg + - type: Wires + BoardName: "Windoor Control" + LayoutId: Airlock + - type: UserInterface + interfaces: + - key: enum.WiresUiKey.Key + type: WiresBoundUserInterface + - type: Appearance + visuals: + - type: AirlockVisualizer + hasMaintenancePanel: false + openCloseUnlit: false + delay: 0.7 + +- type: entity + id: BaseSecureWindoor + parent: BaseWindoor + abstract: true + components: + - type: Airtight + fixVacuum: true + noAirWhenFullyAirBlocked: false + airBlockedDirection: + - South + - type: Sprite + sprite: Structures/Doors/Windoors/secure.rsi + - 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" ] + +# "0.49,-0.49,-0.49,-0.2" +# to: +# (-0.2, -0.49), (-0.2, 0.49), (-0.49, 0.49), (-0.49, -0.49) +# what i want is: +# (0.49, -0.49), (0.49, -0.2), (-0.49, -0.2), (-0.49, -0.49) +# which is: +# "-0.2,-0.49,-0.49,0.49" diff --git a/Resources/Prototypes/Entities/Structures/Doors/Windoors/windoor.yml b/Resources/Prototypes/Entities/Structures/Doors/Windoors/windoor.yml new file mode 100644 index 0000000000..57511c229c --- /dev/null +++ b/Resources/Prototypes/Entities/Structures/Doors/Windoors/windoor.yml @@ -0,0 +1,47 @@ +- type: entity + id: Windoor + parent: BaseWindoor + name: windoor + description: It's a window and a sliding door. Wow! + +- type: entity + id: WindoorSecure + parent: BaseSecureWindoor + name: secure windoor + description: It's a sturdy window and a sliding door. Wow! + +# Bar windoor +- type: entity + parent: Windoor + id: WindoorBarLocked + suffix: Bar, Locked + components: + - type: AccessReader + access: [["Bar"]] + +# Chemistry windoor +- type: entity + parent: WindoorSecure + id: WindoorMedicalLocked + suffix: Medical, Locked + components: + - type: AccessReader + access: [["Medical"]] + +# HOP's office windoor +- type: entity + parent: WindoorSecure + id: WindoorCommandLocked + suffix: Command, Locked + components: + - type: AccessReader + access: [["Command"]] + +# Cargo windoor +- type: entity + parent: Windoor + id: WindoorCargoLocked + suffix: Cargo, Locked + components: + - type: AccessReader + access: [["Cargo"]]