shuttle ![code/controllers/subsystem/shuttle.dm 9](git.png)
Vars | |
admin_emergency_no_recall | Did admins force-prevent the recall of the shuttle? |
---|---|
arrivals | The mobile docking port of the arrivals shuttle. |
assoc_mobile | Now it's only for ID generation in /obj/docking_port/mobile/register() |
assoc_stationary | Now it's only for ID generation in /obj/docking_port/stationary/register() |
backup_shuttle | The mobile docking port of the backup emergency shuttle. |
beacon_list | A list of all the beacons that can be docked to. |
centcom_message | Remarks from CentCom on how well you checked the last order. |
chef_groceries | Queued supplies to be purchased for the chef. |
discovered_plants | Typepaths for unusual plants we've already sent CentCom, associated with their potencies. |
emergency | Emergency shuttle stuff The mobile docking port of the emergency shuttle. |
emergencyCallAmount | How many times was the escape shuttle called? |
emergency_call_time | Time taken for emergency shuttle to reach the station when called (in deciseconds). |
emergency_dock_time | Time taken for emergency shuttle to leave again once it has docked (in deciseconds). |
emergency_escape_time | Time taken for emergency shuttle to reach a safe distance after leaving station (in deciseconds). |
emergency_last_call_loc | Where was the emergency shuttle last called from? |
emergency_no_escape | Is the departure of the shuttle currently prevented? FALSE for no, any other number for yes (thanks shuttle code). |
emergency_no_recall | Do we prevent the recall of the shuttle? |
existing_shuttle | The existing shuttle associated with the selected shuttle map_template. |
express_consoles | List of express consoles that are waiting for pack initialization |
has_purchase_shuttle_access | A list of job accesses that are able to purchase any shuttles. |
hidden_shuttle_turf_images | Only the images from the /datum/controller/subsystem/shuttle/hidden_shuttle_turfs list. |
hidden_shuttle_turfs | All turfs hidden from navigation computers associated with a list containing the image hiding them and the type of the turf they are pretending to be |
hostile_environments | Things blocking escape shuttle from leaving. |
last_call_time | Previous time left to the call, only useful for disabling and re-enabling the shuttle for admins so it doesn't have to start the whole timer again. |
last_mode | Previous mode of the shuttle before it was forcefully disabled by admins. |
lockdown | Disallow transit after nuke goes off |
mobile_docking_ports | A list of all the mobile docking ports. |
order_number | Order number given to next order. |
points | Number of trade-points we have (basically money). |
preview_reservation | The turf reservation for the current previewed shuttle. |
preview_shuttle | The docking port associated to the preview_template that's currently being previewed. |
preview_template | The shuttle map_template of the shuttle we want to preview. |
request_list | Wishlist items made by crew for cargo to purchase at their leisure. |
selected | The currently selected shuttle map_template in the shuttle manipulator's template viewer. |
shopping_list | Queued supply packs to be purchased. |
shuttle_insurance | If the event happens where the crew can purchase shuttle insurance, catastrophe can't run. |
shuttle_loading | Are we currently in the process of loading a shuttle? Useful to ensure we don't load more than one at once, to avoid weird inconsistencies and possible runtimes. |
shuttle_loan | The current shuttle loan event, if any. |
shuttle_purchase_requirements_met | For keeping track of ingame events that would unlock new shuttles, such as defeating a boss or discovering a secret item. |
stationary_docking_ports | A list of all the stationary docking ports. |
supermatter_cascade | Did the supermatter start a cascade event? |
supply | Supply shuttle stuff The current cargo shuttle's mobile docking port. |
supply_blocked | Is the cargo shuttle currently blocked from leaving? |
supply_packs | All of the possible supply packs that can be purchased by cargo. |
trade_blockade | Things blocking the cargo shuttle from leaving. |
transit_docking_ports | A list of all the transit docking ports. |
transit_request_failures | An associative list of the mobile docking ports that have failed a transit request, with the amount of times they've actually failed that transit request, up to MAX_TRANSIT_REQUEST_RETRIES |
transit_requesters | A list of all the mobile docking ports currently requesting a spot in hyperspace. |
transit_utilized | How many turfs our shuttles are currently utilizing in reservation space |
Procs | |
action_load | Loads a shuttle template and sends it to a given destination port, optionally replacing the existing shuttle |
call_evac_shuttle | Call the emergency shuttle.
If you are doing this on behalf of a player, use requestEvac instead.
signal_origin is fluff occasionally provided to players. |
canEvac | Check if we can call the evac shuttle. Returns TRUE if we can. Otherwise, returns a string detailing the problem. |
load_template | Loads a shuttle template into the transit Z level, usually referred to elsewhere in the code as a shuttle preview. Does not register the shuttle so it can't be used yet, that's handled in action_load() |
moveShuttle | Moves a shuttle to a new location |
requestEvac | Calls the emergency shuttle. |
transit_space_clearing | Gotta manage our space brother |
unload_preview | Removes the preview_shuttle from the transit Z-level |
Var Details
admin_emergency_no_recall ![code/controllers/subsystem/shuttle.dm 62](git.png)
Did admins force-prevent the recall of the shuttle?
arrivals ![code/controllers/subsystem/shuttle.dm 44](git.png)
The mobile docking port of the arrivals shuttle.
assoc_mobile ![code/controllers/subsystem/shuttle.dm 26](git.png)
Now it's only for ID generation in /obj/docking_port/mobile/register()
assoc_stationary ![code/controllers/subsystem/shuttle.dm 28](git.png)
Now it's only for ID generation in /obj/docking_port/stationary/register()
backup_shuttle ![code/controllers/subsystem/shuttle.dm 46](git.png)
The mobile docking port of the backup emergency shuttle.
beacon_list ![code/controllers/subsystem/shuttle.dm 21](git.png)
A list of all the beacons that can be docked to.
centcom_message ![code/controllers/subsystem/shuttle.dm 82](git.png)
Remarks from CentCom on how well you checked the last order.
chef_groceries ![code/controllers/subsystem/shuttle.dm 95](git.png)
Queued supplies to be purchased for the chef.
discovered_plants ![code/controllers/subsystem/shuttle.dm 84](git.png)
Typepaths for unusual plants we've already sent CentCom, associated with their potencies.
emergency ![code/controllers/subsystem/shuttle.dm 42](git.png)
Emergency shuttle stuff The mobile docking port of the emergency shuttle.
emergencyCallAmount ![code/controllers/subsystem/shuttle.dm 56](git.png)
How many times was the escape shuttle called?
emergency_call_time ![code/controllers/subsystem/shuttle.dm 48](git.png)
Time taken for emergency shuttle to reach the station when called (in deciseconds).
emergency_dock_time ![code/controllers/subsystem/shuttle.dm 50](git.png)
Time taken for emergency shuttle to leave again once it has docked (in deciseconds).
emergency_escape_time ![code/controllers/subsystem/shuttle.dm 52](git.png)
Time taken for emergency shuttle to reach a safe distance after leaving station (in deciseconds).
emergency_last_call_loc ![code/controllers/subsystem/shuttle.dm 54](git.png)
Where was the emergency shuttle last called from?
emergency_no_escape ![code/controllers/subsystem/shuttle.dm 58](git.png)
Is the departure of the shuttle currently prevented? FALSE for no, any other number for yes (thanks shuttle code).
emergency_no_recall ![code/controllers/subsystem/shuttle.dm 60](git.png)
Do we prevent the recall of the shuttle?
existing_shuttle ![code/controllers/subsystem/shuttle.dm 128](git.png)
The existing shuttle associated with the selected shuttle map_template.
express_consoles ![code/controllers/subsystem/shuttle.dm 144](git.png)
List of express consoles that are waiting for pack initialization
has_purchase_shuttle_access ![code/controllers/subsystem/shuttle.dm 104](git.png)
A list of job accesses that are able to purchase any shuttles.
hidden_shuttle_turf_images ![code/controllers/subsystem/shuttle.dm 109](git.png)
Only the images from the /datum/controller/subsystem/shuttle/hidden_shuttle_turfs list.
hidden_shuttle_turfs ![code/controllers/subsystem/shuttle.dm 107](git.png)
All turfs hidden from navigation computers associated with a list containing the image hiding them and the type of the turf they are pretending to be
hostile_environments ![code/controllers/subsystem/shuttle.dm 69](git.png)
Things blocking escape shuttle from leaving.
last_call_time ![code/controllers/subsystem/shuttle.dm 66](git.png)
Previous time left to the call, only useful for disabling and re-enabling the shuttle for admins so it doesn't have to start the whole timer again.
last_mode ![code/controllers/subsystem/shuttle.dm 64](git.png)
Previous mode of the shuttle before it was forcefully disabled by admins.
lockdown ![code/controllers/subsystem/shuttle.dm 122](git.png)
Disallow transit after nuke goes off
mobile_docking_ports ![code/controllers/subsystem/shuttle.dm 17](git.png)
A list of all the mobile docking ports.
order_number ![code/controllers/subsystem/shuttle.dm 78](git.png)
Order number given to next order.
points ![code/controllers/subsystem/shuttle.dm 80](git.png)
Number of trade-points we have (basically money).
preview_reservation ![code/controllers/subsystem/shuttle.dm 136](git.png)
The turf reservation for the current previewed shuttle.
preview_shuttle ![code/controllers/subsystem/shuttle.dm 133](git.png)
The docking port associated to the preview_template that's currently being previewed.
preview_template ![code/controllers/subsystem/shuttle.dm 131](git.png)
The shuttle map_template of the shuttle we want to preview.
request_list ![code/controllers/subsystem/shuttle.dm 101](git.png)
Wishlist items made by crew for cargo to purchase at their leisure.
selected ![code/controllers/subsystem/shuttle.dm 125](git.png)
The currently selected shuttle map_template in the shuttle manipulator's template viewer.
shopping_list ![code/controllers/subsystem/shuttle.dm 98](git.png)
Queued supply packs to be purchased.
shuttle_insurance ![code/controllers/subsystem/shuttle.dm 115](git.png)
If the event happens where the crew can purchase shuttle insurance, catastrophe can't run.
shuttle_loading ![code/controllers/subsystem/shuttle.dm 139](git.png)
Are we currently in the process of loading a shuttle? Useful to ensure we don't load more than one at once, to avoid weird inconsistencies and possible runtimes.
shuttle_loan ![code/controllers/subsystem/shuttle.dm 112](git.png)
The current shuttle loan event, if any.
shuttle_purchase_requirements_met ![code/controllers/subsystem/shuttle.dm 119](git.png)
For keeping track of ingame events that would unlock new shuttles, such as defeating a boss or discovering a secret item.
stationary_docking_ports ![code/controllers/subsystem/shuttle.dm 19](git.png)
A list of all the stationary docking ports.
supermatter_cascade ![code/controllers/subsystem/shuttle.dm 141](git.png)
Did the supermatter start a cascade event?
supply ![code/controllers/subsystem/shuttle.dm 76](git.png)
Supply shuttle stuff The current cargo shuttle's mobile docking port.
supply_blocked ![code/controllers/subsystem/shuttle.dm 89](git.png)
Is the cargo shuttle currently blocked from leaving?
supply_packs ![code/controllers/subsystem/shuttle.dm 92](git.png)
All of the possible supply packs that can be purchased by cargo.
trade_blockade ![code/controllers/subsystem/shuttle.dm 87](git.png)
Things blocking the cargo shuttle from leaving.
transit_docking_ports ![code/controllers/subsystem/shuttle.dm 23](git.png)
A list of all the transit docking ports.
transit_request_failures ![code/controllers/subsystem/shuttle.dm 33](git.png)
An associative list of the mobile docking ports that have failed a transit request, with the amount of times they've actually failed that transit request, up to MAX_TRANSIT_REQUEST_RETRIES
transit_requesters ![code/controllers/subsystem/shuttle.dm 31](git.png)
A list of all the mobile docking ports currently requesting a spot in hyperspace.
transit_utilized ![code/controllers/subsystem/shuttle.dm 35](git.png)
How many turfs our shuttles are currently utilizing in reservation space
Proc Details
action_load
Loads a shuttle template and sends it to a given destination port, optionally replacing the existing shuttle
Arguments:
- loading_template - The shuttle template to load
- destination_port - The station docking port to send the shuttle to once loaded
- replace - Whether to replace the shuttle or create a new one
call_evac_shuttle
Call the emergency shuttle.
If you are doing this on behalf of a player, use requestEvac instead.
signal_origin
is fluff occasionally provided to players.
canEvac
Check if we can call the evac shuttle. Returns TRUE if we can. Otherwise, returns a string detailing the problem.
load_template
Loads a shuttle template into the transit Z level, usually referred to elsewhere in the code as a shuttle preview. Does not register the shuttle so it can't be used yet, that's handled in action_load()
Arguments:
- loading_template - The shuttle template to load
moveShuttle
Moves a shuttle to a new location
Arguments:
- shuttle_id - The ID of the shuttle (mobile docking port) to move
- dock_id - The ID of the destination (stationary docking port) to move to
- timed - If true, have the shuttle follow normal spool-up, jump, dock process. If false, immediately move to the new location.
requestEvac
Calls the emergency shuttle.
Arguments:
- user - The mob that called the shuttle.
- call_reason - The reason the shuttle was called, which should be non-html-encoded text.
transit_space_clearing
Gotta manage our space brother
unload_preview
Removes the preview_shuttle from the transit Z-level