Adds snapgrid to a bunch of constructible entities. (#2445)

This commit is contained in:
Swept
2020-10-30 00:07:34 +00:00
committed by GitHub
parent 23ae73d429
commit bc4eab53df
17 changed files with 110 additions and 68 deletions

View File

@@ -7,6 +7,21 @@
- type: Clickable - type: Clickable
- type: InteractionOutline - type: InteractionOutline
- type: Physics - type: Physics
anchored: true
shapes:
- !type:PhysShapeAabb
bounds: "-0.5,-0.25,0.5,0.25"
mask:
- Impassable
- MobImpassable
- VaultImpassable
- SmallImpassable
layer:
- Opaque
- Impassable
- MobImpassable
- VaultImpassable
- SmallImpassable
- type: Sprite - type: Sprite
sprite: Constructible/Misc/furniture.rsi sprite: Constructible/Misc/furniture.rsi
- type: Strap - type: Strap

View File

@@ -10,14 +10,23 @@
sprite: Constructible/Misc/furniture.rsi sprite: Constructible/Misc/furniture.rsi
state: rack state: rack
- type: Physics - type: Physics
mass: 25
anchored: true
shapes: shapes:
- !type:PhysShapeAabb - !type:PhysShapeAabb
bounds: "-0.4,-0.4,0.4,0.4"
layer: layer:
- Opaque - Opaque
- Impassable - Impassable
- MobImpassable - MobImpassable
- VaultImpassable - VaultImpassable
- SmallImpassable - SmallImpassable
mask:
- Impassable
- MobImpassable
- VaultImpassable
- type: Pullable
- type: Anchorable
- type: Destructible - type: Destructible
deadThreshold: 30 deadThreshold: 30
destroySound: /Audio/Effects/metalbreak.ogg destroySound: /Audio/Effects/metalbreak.ogg
@@ -39,14 +48,23 @@
sprite: Constructible/Misc/furniture.rsi sprite: Constructible/Misc/furniture.rsi
state: shelf state: shelf
- type: Physics - type: Physics
mass: 25
anchored: true
shapes: shapes:
- !type:PhysShapeAabb - !type:PhysShapeAabb
bounds: "-0.4,-0.4,0.4,0.4"
layer: layer:
- Opaque - Opaque
- Impassable - Impassable
- MobImpassable - MobImpassable
- VaultImpassable - VaultImpassable
- SmallImpassable - SmallImpassable
mask:
- Impassable
- MobImpassable
- VaultImpassable
- type: Pullable
- type: Anchorable
- type: Destructible - type: Destructible
deadThreshold: 30 deadThreshold: 30
destroySound: /Audio/Effects/metalbreak.ogg destroySound: /Audio/Effects/metalbreak.ogg

View File

@@ -2,6 +2,8 @@
id: CloningPod id: CloningPod
name: Cloning Pod name: Cloning Pod
description: A Cloning Pod. 50% reliable. description: A Cloning Pod. 50% reliable.
placement:
mode: SnapgridCenter
components: components:
- type: Sprite - type: Sprite
netsync: false netsync: false
@@ -10,7 +12,6 @@
- state: pod_0 - state: pod_0
map: ["enum.CloningPodVisualLayers.Machine"] map: ["enum.CloningPodVisualLayers.Machine"]
- type: PowerReceiver - type: PowerReceiver
- type: Anchorable - type: Anchorable
- type: Clickable - type: Clickable
- type: InteractionOutline - type: InteractionOutline

View File

@@ -1,10 +1,12 @@
- type: entity - type: entity
id: ComputerFrame id: ComputerFrame
name: computer frame name: computer frame
placement:
mode: SnapgridCenter
components: components:
- type: Physics - type: Physics
mass: 25 mass: 25
anchored: false anchored: true
shapes: shapes:
- !type:PhysShapeAabb - !type:PhysShapeAabb
bounds: "-0.5,-0.25,0.5,0.25" bounds: "-0.5,-0.25,0.5,0.25"
@@ -20,6 +22,8 @@
- type: Clickable - type: Clickable
- type: InteractionOutline - type: InteractionOutline
- type: Anchorable - type: Anchorable
- type: Rotatable
- type: Pullable
- type: Construction - type: Construction
graph: computer graph: computer
node: frameUnsecured node: frameUnsecured
@@ -62,12 +66,15 @@
id: ComputerBase id: ComputerBase
name: computer name: computer
abstract: true abstract: true
placement:
mode: SnapgridCenter
components: components:
- type: Clickable - type: Clickable
- type: InteractionOutline - type: InteractionOutline
- type: Construction - type: Construction
graph: computer graph: computer
node: computer node: computer
- type: Rotatable
- type: Physics - type: Physics
mass: 25 mass: 25
anchored: true anchored: true
@@ -86,9 +93,9 @@
- type: Computer - type: Computer
- type: PowerReceiver - type: PowerReceiver
- type: Anchorable - type: Anchorable
- type: Pullable
- type: BreakableConstruction - type: BreakableConstruction
node: monitorBroken node: monitorBroken
- type: Sprite - type: Sprite
sprite: Constructible/Power/computers.rsi sprite: Constructible/Power/computers.rsi
layers: layers:
@@ -102,14 +109,12 @@
- state: generic_key - state: generic_key
shader: unshaded shader: unshaded
map: ["enum.ComputerVisualizer+Layers.KeyboardOn"] map: ["enum.ComputerVisualizer+Layers.KeyboardOn"]
- type: Appearance - type: Appearance
visuals: visuals:
- type: ComputerVisualizer - type: ComputerVisualizer
key: generic_key key: generic_key
screen: generic screen: generic
- type: entity - type: entity
id: ComputerAlert id: ComputerAlert
parent: ComputerBase parent: ComputerBase
@@ -122,7 +127,6 @@
key: atmos_key key: atmos_key
screen: "alert-2" screen: "alert-2"
- type: entity - type: entity
id: ComputerPowerMonitoring id: ComputerPowerMonitoring
parent: ComputerBase parent: ComputerBase
@@ -135,7 +139,6 @@
key: power_key key: power_key
screen: power_monitor screen: power_monitor
- type: entity - type: entity
id: ComputerSupplyOrdering id: ComputerSupplyOrdering
parent: ComputerBase parent: ComputerBase
@@ -199,7 +202,6 @@
key: med_key key: med_key
screen: medcomp screen: medcomp
- type: entity - type: entity
id: ComputerResearchAndDevelopment id: ComputerResearchAndDevelopment
parent: ComputerBase parent: ComputerBase

View File

@@ -2,6 +2,8 @@
id: BaseLathe id: BaseLathe
name: "lathe" name: "lathe"
abstract: true abstract: true
placement:
mode: SnapgridCenter
components: components:
- type: Clickable - type: Clickable
- type: InteractionOutline - type: InteractionOutline
@@ -10,7 +12,12 @@
anchored: true anchored: true
shapes: shapes:
- !type:PhysShapeAabb - !type:PhysShapeAabb
bounds: "-0.4,-0.25,0.4,0.25" bounds: "-0.4,-0.4,0.4,0.4"
mask:
- Impassable
- MobImpassable
- VaultImpassable
- SmallImpassable
layer: layer:
- Opaque - Opaque
- Impassable - Impassable
@@ -21,6 +28,7 @@
- type: Lathe - type: Lathe
- type: MaterialStorage - type: MaterialStorage
- type: Anchorable - type: Anchorable
- type: Pullable
- type: UserInterface - type: UserInterface
interfaces: interfaces:
- key: enum.LatheUiKey.Key - key: enum.LatheUiKey.Key
@@ -41,18 +49,6 @@
- state: autolathe_unlit - state: autolathe_unlit
shader: unshaded shader: unshaded
map: ["enum.AutolatheVisualLayers.BaseUnlit"] map: ["enum.AutolatheVisualLayers.BaseUnlit"]
- type: Physics
shapes:
- !type:PhysShapeAabb
layer:
- Opaque
- Impassable
- MobImpassable
- VaultImpassable
- type: SnapGrid
offset: Center
- type: Lathe
- type: LatheDatabase - type: LatheDatabase
static: true static: true
recipes: recipes:
@@ -89,17 +85,6 @@
map: ["enum.ProtolatheVisualLayers.BaseUnlit"] map: ["enum.ProtolatheVisualLayers.BaseUnlit"]
- state: protolathe - state: protolathe
map: ["enum.ProtolatheVisualLayers.AnimationLayer"] map: ["enum.ProtolatheVisualLayers.AnimationLayer"]
- type: Physics
shapes:
- !type:PhysShapeAabb
layer:
- Opaque
- Impassable
- MobImpassable
- VaultImpassable
- type: SnapGrid
offset: Center
- type: ResearchClient - type: ResearchClient
- type: TechnologyDatabase - type: TechnologyDatabase
- type: ProtolatheDatabase - type: ProtolatheDatabase

View File

@@ -2,6 +2,8 @@
id: VendingMachine id: VendingMachine
name: vending machine name: vending machine
abstract: true abstract: true
placement:
mode: SnapgridCenter
components: components:
- type: Clickable - type: Clickable
- type: InteractionOutline - type: InteractionOutline

View File

@@ -9,8 +9,6 @@
state: booze_dispenser state: booze_dispenser
- type: ReagentDispenser - type: ReagentDispenser
pack: BoozeDispenserInventory pack: BoozeDispenserInventory
- type: Anchorable
- type: Pullable
- type: reagentDispenserInventory - type: reagentDispenserInventory
id: BoozeDispenserInventory id: BoozeDispenserInventory

View File

@@ -13,8 +13,6 @@
- type: ReagentDispenser - type: ReagentDispenser
pack: ChemDispenserStandardInventory pack: ChemDispenserStandardInventory
- type: PowerReceiver - type: PowerReceiver
- type: Anchorable
- type: Pullable
- type: reagentDispenserInventory - type: reagentDispenserInventory
id: ChemDispenserStandardInventory id: ChemDispenserStandardInventory

View File

@@ -1,16 +1,22 @@
- type: entity - type: entity
abstract: true abstract: true
id: ReagentDispenserBase id: ReagentDispenserBase
placement:
mode: SnapgridCenter
components: components:
- type: Clickable - type: Clickable
- type: InteractionOutline - type: InteractionOutline
- type: Anchorable
- type: Physics - type: Physics
mass: 25 mass: 25
anchored: true anchored: true
shapes: shapes:
- !type:PhysShapeAabb - !type:PhysShapeAabb
bounds: "-0.4,-0.25,0.4,0.25" bounds: "-0.3,-0.4,0.3,0.4"
mask:
- Impassable
- MobImpassable
- VaultImpassable
- SmallImpassable
layer: layer:
- Opaque - Opaque
- Impassable - Impassable
@@ -25,4 +31,5 @@
- key: enum.ReagentDispenserUiKey.Key - key: enum.ReagentDispenserUiKey.Key
type: ReagentDispenserBoundUserInterface type: ReagentDispenserBoundUserInterface
- type: LoopingSound - type: LoopingSound
- type: Anchorable
- type: Pullable

View File

@@ -9,8 +9,6 @@
state: soda_dispenser state: soda_dispenser
- type: ReagentDispenser - type: ReagentDispenser
pack: SodaDispenserInventory pack: SodaDispenserInventory
- type: Anchorable
- type: Pullable
- type: reagentDispenserInventory - type: reagentDispenserInventory
id: SodaDispenserInventory id: SodaDispenserInventory

View File

@@ -8,11 +8,20 @@
- type: InteractionOutline - type: InteractionOutline
- type: Clickable - type: Clickable
- type: Physics - type: Physics
mass: 25
anchored: true anchored: true
shapes: shapes:
- !type:PhysShapeAabb - !type:PhysShapeAabb
bounds: "-0.5, -0.5, 0.5, 0.5" bounds: "-0.5, -0.5, 0.5, 0.5"
layer: [MobMask, Opaque] layer:
- Impassable
- MobImpassable
- VaultImpassable
- Opaque
mask:
- Impassable
- MobImpassable
- VaultImpassable
- type: SnapGrid - type: SnapGrid
offset: Center offset: Center
- type: Sprite - type: Sprite
@@ -35,6 +44,8 @@
- type: Anchorable - type: Anchorable
- type: Pullable - type: Pullable
- type: Appearance - type: Appearance
# - type: Rotatable
# Idk why but the emitter breaks when I apply this.
visuals: visuals:
- type: EmitterVisualizer - type: EmitterVisualizer
- type: AccessReader - type: AccessReader

View File

@@ -2,6 +2,8 @@
id: ResearchAndDevelopmentServer id: ResearchAndDevelopmentServer
name: "R&D server" name: "R&D server"
description: 'Thats a R&D server.' description: 'Thats a R&D server.'
placement:
mode: SnapgridCenter
components: components:
- type: Sprite - type: Sprite
sprite: Constructible/Power/server.rsi sprite: Constructible/Power/server.rsi
@@ -37,6 +39,8 @@
- type: entity - type: entity
id: BaseResearchAndDevelopmentPointSource id: BaseResearchAndDevelopmentPointSource
name: "base R&D point source" name: "base R&D point source"
placement:
mode: SnapgridCenter
# We should make this abstract once there are actual point sources. # We should make this abstract once there are actual point sources.
components: components:
- type: Sprite - type: Sprite

View File

@@ -2,6 +2,8 @@
id: chem_master id: chem_master
name: ChemMaster 4000 name: ChemMaster 4000
description: An industrial grade chemical manipulator with pill and bottle production included. description: An industrial grade chemical manipulator with pill and bottle production included.
placement:
mode: SnapgridCenter
components: components:
- type: Sprite - type: Sprite
sprite: Constructible/Power/mixer.rsi sprite: Constructible/Power/mixer.rsi
@@ -46,6 +48,7 @@
id: chem_master_broken id: chem_master_broken
name: ChemMaster 4000 [Broken] name: ChemMaster 4000 [Broken]
description: A broken industrial grade chemical manipulator. description: A broken industrial grade chemical manipulator.
abstract: true
components: components:
- type: Sprite - type: Sprite
sprite: Constructible/Power/mixer.rsi sprite: Constructible/Power/mixer.rsi

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 B

After

Width:  |  Height:  |  Size: 251 B