mobile
![code/modules/shuttle/shuttle.dm 273](git.png)
Vars | |
assigned_transit | The transit dock assigned exclusively to this shuttle. |
---|---|
callTime | time spent in transit (deciseconds). Should not be lower then 10 seconds without editing the animation of the hyperspace ripples. |
can_move_docking_ports | if this shuttle can move docking ports other than the one it is docked at |
current_ship | The linked overmap object, if there is one |
docking_points | List of all stationary docking ports that spawned on the ship roundstart, used for docking to other ships. |
engine_list | A list of all engines currently linked to the shuttle. |
gravgen_list | A list of all gravity generators currently linked to the shuttle. |
ignitionTime | time spent "starting the engines". Also rate limits how often we try to reserve transit space if its ever full of transiting shuttles. |
landing_sound | The landing sound to be played |
launch_sound | The launch sound to be played |
mode | current shuttle mode |
movement_force | Whether or not you want your ship to knock people down, and also whether it will throw them several tiles upon launching. |
port_direction | relative direction of the docking port from the front of the shuttle NORTH is towards front, EAST would be starboard side, WEST port, etc. |
prearrivalTime | time spent after transit 'landing' before actually arriving |
preferred_direction | The direction the shuttle prefers to travel in, ie what direction the animation will cause it to appear to be traveling in |
rechargeTime | time spent after arrival before being able to begin ignition |
ripples | List of all the ripple effects made at this shuttle's future docking location. |
shuttle_areas | All currently linked areas that will be moved when the shuttle (un)docks |
shuttle_sounds | Does this shuttle play sounds upon landing and takeoff? |
sound_range | The sound range coeff for the landing and take off sound effects |
spawn_points | List of spawn points on the ship |
takeoff_sound | The take off sound to be played |
timer | used as a timer (if you want time left to complete move, use timeLeft proc) |
turf_count | The amount of turfs the shuttle is made up of (closed and open, doesn't include lattices) |
Procs | |
get_status_text_tgui | Gets shuttle location status in a form of string for tgui interfaces |
initiate_docking | This is the main proc. It instantly moves our mobile port to stationary port new_dock . |
throw_exception | Both lists are associative with a turf:bitflag structure. (new_turfs bitflag space unused currently) The bitflag contains the data for what inhabitants of that coordinate should be moved to the new location The bitflags can be found in __DEFINES/shuttles.dm |
Var Details
assigned_transit
![code/modules/shuttle/shuttle.dm 307](git.png)
The transit dock assigned exclusively to this shuttle.
callTime
![code/modules/shuttle/shuttle.dm 288](git.png)
time spent in transit (deciseconds). Should not be lower then 10 seconds without editing the animation of the hyperspace ripples.
can_move_docking_ports
![code/modules/shuttle/shuttle.dm 325](git.png)
if this shuttle can move docking ports other than the one it is docked at
current_ship
![code/modules/shuttle/shuttle.dm 334](git.png)
The linked overmap object, if there is one
docking_points
![code/modules/shuttle/shuttle.dm 340](git.png)
List of all stationary docking ports that spawned on the ship roundstart, used for docking to other ships.
engine_list
![code/modules/shuttle/shuttle.dm 319](git.png)
A list of all engines currently linked to the shuttle.
gravgen_list
![code/modules/shuttle/shuttle.dm 322](git.png)
A list of all gravity generators currently linked to the shuttle.
ignitionTime
![code/modules/shuttle/shuttle.dm 290](git.png)
time spent "starting the engines". Also rate limits how often we try to reserve transit space if its ever full of transiting shuttles.
landing_sound
![code/modules/shuttle/shuttle.dm 349](git.png)
The landing sound to be played
launch_sound
![code/modules/shuttle/shuttle.dm 347](git.png)
The launch sound to be played
mode
![code/modules/shuttle/shuttle.dm 286](git.png)
current shuttle mode
movement_force
![code/modules/shuttle/shuttle.dm 312](git.png)
Whether or not you want your ship to knock people down, and also whether it will throw them several tiles upon launching.
port_direction
![code/modules/shuttle/shuttle.dm 301](git.png)
relative direction of the docking port from the front of the shuttle NORTH is towards front, EAST would be starboard side, WEST port, etc.
prearrivalTime
![code/modules/shuttle/shuttle.dm 294](git.png)
time spent after transit 'landing' before actually arriving
preferred_direction
![code/modules/shuttle/shuttle.dm 298](git.png)
The direction the shuttle prefers to travel in, ie what direction the animation will cause it to appear to be traveling in
rechargeTime
![code/modules/shuttle/shuttle.dm 292](git.png)
time spent after arrival before being able to begin ignition
ripples
![code/modules/shuttle/shuttle.dm 315](git.png)
List of all the ripple effects made at this shuttle's future docking location.
shuttle_areas
![code/modules/shuttle/shuttle.dm 280](git.png)
All currently linked areas that will be moved when the shuttle (un)docks
shuttle_sounds
![code/modules/shuttle/shuttle.dm 343](git.png)
Does this shuttle play sounds upon landing and takeoff?
sound_range
![code/modules/shuttle/shuttle.dm 351](git.png)
The sound range coeff for the landing and take off sound effects
spawn_points
![code/modules/shuttle/shuttle.dm 337](git.png)
List of spawn points on the ship
takeoff_sound
![code/modules/shuttle/shuttle.dm 345](git.png)
The take off sound to be played
timer
![code/modules/shuttle/shuttle.dm 283](git.png)
used as a timer (if you want time left to complete move, use timeLeft proc)
turf_count
![code/modules/shuttle/shuttle.dm 354](git.png)
The amount of turfs the shuttle is made up of (closed and open, doesn't include lattices)
Proc Details
get_status_text_tgui
Gets shuttle location status in a form of string for tgui interfaces
initiate_docking
This is the main proc. It instantly moves our mobile port to stationary port new_dock
.
throw_exception
Both lists are associative with a turf:bitflag structure. (new_turfs bitflag space unused currently) The bitflag contains the data for what inhabitants of that coordinate should be moved to the new location The bitflags can be found in __DEFINES/shuttles.dm