Goonstation 13 - Modules - TypesVar Details - Proc Details

/datum/shuttle_controller

Vars

announcement_donethe stages of the shuttle prepping for transit
callcountNumber of shuttle calls required to break through interference (wizard mode)
can_recallset to FALSE in the admin call thing to make it not recallable
centcom_turfNot currently modified
direction-1 = going back to central command, 1 = going back to SS13
disabledBlock shuttle calling if it's disabled.
endtimeround_elapsed_ticks that shuttle arrives
location0 = somewhere far away, 1 = at SS13, 2 = returned from SS13.
map_turfSet in New() by map settings
sound_turfwhere to play takeoff sounds, defined by landmark
transit_turfNot currently modified

Procs

incallcall the shuttle if not called before, set the endtime to T+600 seconds otherwise if outgoing, switch to incoming
setdirectionsets the shuttle direction 1 = towards SS13, -1 = back to centcom. Uses defines like SHUTTLE_DIRECTION_TO_STATION
settimeleftsets the time left to a given delay (in seconds)
timeleftreturns 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