Guide to mapping: Difference between revisions
rewrite guide from info dump
imported>Oranges |
imported>Oranges (rewrite guide from info dump) |
||
Line 276: | Line 276: | ||
==Shuttles== | ==Shuttles== | ||
Basically there's 3 types of shuttle dock stationary, transit and mobile | |||
*stationary == places where the shuttle can dock | |||
*transit == shuttle as it moves | |||
*mobile == the place with the actual shuttle | |||
so you'd have a transit dock in the transit area and 2 stationary docks, one in centcomm and the other one in the station and 1 mobile dock, in centcomm for most shuttles (apart from mining) | |||
The shuttle docks are grouped by id eg id = "cargo_away" id = "cargo_transit" | |||
You need to add the dock types to the map and edit the bounding boxes via varediting the dock, you need to varedit height, width, dheight and dwidth at minimum. These are offset by the dir so do keep that in mind, eg if dir == 2 then width goes from EAST to WEST, if dir == 4 then width goes from NORTH to SOUTH and dwidth/dheight are offsets from the lower-left corner of the plane switched to the dock's dir | |||
The new shuttle controller will only move shuttle tiles so make sure to create shuttle plating under the engine and turn all existing plating to shuttle plating | |||
Also note that the emergency shuttle and cargo shuttle need special subtypes of the dock type eg so /obj/docking_port/mobile/emergency | |||
The other variables of note is traveldir, which defines if the shuttle rotates on transit, it's an angle in degrees (just imagine the shuttle is inside a circle . For example, if you want the shuttle going right to left set it to 270 degrees. | |||
===Dwidth and Dheight in more depth=== | ===Dwidth and Dheight in more depth=== | ||
dwidth/dheight is the offset of the docking_port obj from the (0,0) bounding box corner. In dir == 1 (north) 0,0 is the bottom left corner? This changes for each direction, For example when dir is 2 it's the upper right corner. so dwidth and dheight identify where the bounding box starts relative to the docking port obj whereaswidth and height determine the actual width and height of the bounding box | |||
'''Note: We count step 0 as a tile, so a height and width of 9 is actually 10 tiles (tile 0 to tile 9)''' | |||
Here is an example for the north facing shuttle dock direction | Here is an example for the north facing shuttle dock direction - you can rotate this image to determine where the offset is for each other cardinal direction | ||
[[File:ShuttleBox.png]] | [[File:ShuttleBox.png]] | ||
[[Category:Guides]] [[Category:Game Resources]] | [[Category:Guides]] [[Category:Game Resources]] | ||
{{Contribution guides}} | {{Contribution guides}} |