/datum/shuttle_controller
Vars | |
announcement_done | the stages of the shuttle prepping for transit |
---|---|
callcount | Number of shuttle calls required to break through interference (wizard mode) |
can_recall | set to FALSE in the admin call thing to make it not recallable |
centcom_turf | Not currently modified |
direction | -1 = going back to central command, 1 = going back to SS13 |
disabled | Block shuttle calling if it's disabled. |
endtime | round_elapsed_ticks that shuttle arrives |
location | 0 = somewhere far away, 1 = at SS13, 2 = returned from SS13. |
map_turf | Set in New() by map settings |
sound_turf | where to play takeoff sounds, defined by landmark |
transit_turf | Not currently modified |
Procs | |
incall | call the shuttle if not called before, set the endtime to T+600 seconds otherwise if outgoing, switch to incoming |
setdirection | sets the shuttle direction 1 = towards SS13, -1 = back to centcom. Uses defines like SHUTTLE_DIRECTION_TO_STATION |
settimeleft | sets the time left to a given delay (in seconds) |
timeleft | returns the time (in seconds) before shuttle arrival note if direction = SHUTTLE_DIRECTION_TO_CENTCOMM, gives a count-up to SHUTTLEARRIVETIME |
Var Details
announcement_done
the stages of the shuttle prepping for transit
callcount
Number of shuttle calls required to break through interference (wizard mode)
can_recall
set to FALSE in the admin call thing to make it not recallable
centcom_turf
Not currently modified
direction
-1 = going back to central command, 1 = going back to SS13
disabled
Block shuttle calling if it's disabled.
endtime
round_elapsed_ticks that shuttle arrives
location
0 = somewhere far away, 1 = at SS13, 2 = returned from SS13.
map_turf
Set in New() by map settings
sound_turf
where to play takeoff sounds, defined by landmark
transit_turf
Not currently modified
Proc Details
incall
call the shuttle if not called before, set the endtime to T+600 seconds otherwise if outgoing, switch to incoming
setdirection
sets the shuttle direction 1 = towards SS13, -1 = back to centcom. Uses defines like SHUTTLE_DIRECTION_TO_STATION
settimeleft
sets the time left to a given delay (in seconds)
timeleft
returns the time (in seconds) before shuttle arrival note if direction = SHUTTLE_DIRECTION_TO_CENTCOMM, gives a count-up to SHUTTLEARRIVETIME