From 4b6a2ab9ea3eab8bcbd4c955d49de755d006de17 Mon Sep 17 00:00:00 2001 From: deltanedas <@deltanedas:kde.org> Date: Sat, 31 Aug 2024 02:40:00 +0100 Subject: [PATCH] add map and grid prototypes --- Resources/Prototypes/Entities/Maps/atmos.yml | 48 ++++++++++++++++++++ Resources/Prototypes/Entities/Maps/grid.yml | 42 +++++++++++++++++ Resources/Prototypes/Entities/Maps/map.yml | 24 ++++++++++ 3 files changed, 114 insertions(+) create mode 100644 Resources/Prototypes/Entities/Maps/atmos.yml create mode 100644 Resources/Prototypes/Entities/Maps/grid.yml create mode 100644 Resources/Prototypes/Entities/Maps/map.yml diff --git a/Resources/Prototypes/Entities/Maps/atmos.yml b/Resources/Prototypes/Entities/Maps/atmos.yml new file mode 100644 index 000000000000..c38fbb04407d --- /dev/null +++ b/Resources/Prototypes/Entities/Maps/atmos.yml @@ -0,0 +1,48 @@ +# 20C air mix planet atmosphere +- type: entity + parent: Map + id: MapAtmos + components: + - type: MapAtmosphere + space: False + mixture: + volume: 2500 + immutable: True + temperature: 293.15 + moles: + - 21.824879 + - 82.10312 + - 0 + - 0 + - 0 + - 0 + - 0 + - 0 + - 0 + - 0 + - 0 + - 0 + +# -25C air mix planet atmosphere +- type: entity + parent: MapAtmos + id: MapAtmosCold + components: + - type: MapAtmosphere + mixture: + volume: 2500 + immutable: True + temperature: 248.15 + moles: + - 21.824879 + - 82.10312 + - 0 + - 0 + - 0 + - 0 + - 0 + - 0 + - 0 + - 0 + - 0 + - 0 diff --git a/Resources/Prototypes/Entities/Maps/grid.yml b/Resources/Prototypes/Entities/Maps/grid.yml new file mode 100644 index 000000000000..b62d68a68062 --- /dev/null +++ b/Resources/Prototypes/Entities/Maps/grid.yml @@ -0,0 +1,42 @@ +# Prototype for a map's grid entity +# The parent should be the Map entity +# For the station's main grid you add BecomesStation with the station ID. +# You must set GridAtmosphere yourself, it doesn't like composition. +- type: entity + parent: BaseMapEntity + id: MapGrid + name: grid + components: + - type: MapGrid + - type: Physics + bodyStatus: InAir + angularDamping: 0.05 + linearDamping: 0.05 + fixedRotation: False + bodyType: Dynamic + - type: Fixtures + fixtures: {} + - type: Shuttle + angularDamping: 0.05 + linearDamping: 0.05 + - type: SpreaderGrid + - type: Gravity + gravityShakeSound: !type:SoundPathSpecifier + path: /Audio/Effects/alert.ogg + - type: DecalGrid + - type: GasTileOverlay + - type: RadiationGridResistance + - type: GridPathfinding + - type: NavMap # Required for nav maps to work on this grid, even for mapped shuttles you shouldn't prevent players building navmaps just because + +# A grid that has extremely high dampening, so it can't be moved +- type: entity + parent: MapGrid + id: MapGridAnchored + components: + - type: Physics + angularDamping: 10000 + linearDamping: 10000 + - type: Shuttle + angularDamping: 10000 + linearDamping: 10000 diff --git a/Resources/Prototypes/Entities/Maps/map.yml b/Resources/Prototypes/Entities/Maps/map.yml new file mode 100644 index 000000000000..aa94d83bf729 --- /dev/null +++ b/Resources/Prototypes/Entities/Maps/map.yml @@ -0,0 +1,24 @@ +# Components the map itself and grids have in common +- type: entity + abstract: true + categories: [ HideSpawnMenu ] + id: BaseMapEntity + components: + - type: Broadphase + - type: OccluderTree + +# Prototype for a station's map entity +# Set the station's name with MetaData, this is visible on a shuttle console when FTLing +# Add your map's custom parallax to this entity with Parallax +- type: entity + parent: BaseMapEntity + id: Map + name: station + components: + - type: Transform + - type: Map + mapPaused: True + - type: PhysicsMap + - type: GridTree + - type: MovedGrids + - type: LoadedMap