Goonstation 13 - Modules - TypesVar Details - Proc Details

vehicle

Vars

ability_buttonsStorage for the ability buttons after initialization
ability_buttons_to_initializeList of types of ability buttons to be initialized
attacks_fast_ejectWhether any attack with an item that has a force value will immediately eject the rider (only works if rider_visible is true)
booster_imageWhat overlay icon do we use for the booster upgrade? (we have to initialize this in New)
booster_upgradeDo we go through space?
can_eject_itemsSee /mob/proc/drop_item() in mob.dm and /atom/movable/proc/throw_at in throwing.dm
delaySpeed, lower is faster, minimum of MINIMUM_EFFECTIVE_DELAY
in_bumpSanity variable to prevent the vehicle from crashing multiple times due to a single collision
riderRider is basically the "driver" of the vehicle
rider_visibleCan we see the driver from outside of the vehicle? (used for overlays)
sealed_cabinDoes the vehicle have air conditioning? (check /datum/lifeprocess/bodytemp in bodytemp.dm for details)

Procs

eject_riderkick out the rider
handle_button_additionadd the ability buttons to the rider
handle_button_removalremove the ability buttons from the rider
setup_ability_buttonsinitializes the ability buttons (if we have any)

Var Details

ability_buttons

Storage for the ability buttons after initialization

ability_buttons_to_initialize

List of types of ability buttons to be initialized

attacks_fast_eject

Whether any attack with an item that has a force value will immediately eject the rider (only works if rider_visible is true)

booster_image

What overlay icon do we use for the booster upgrade? (we have to initialize this in New)

booster_upgrade

Do we go through space?

can_eject_items

See /mob/proc/drop_item() in mob.dm and /atom/movable/proc/throw_at in throwing.dm

delay

Speed, lower is faster, minimum of MINIMUM_EFFECTIVE_DELAY

in_bump

Sanity variable to prevent the vehicle from crashing multiple times due to a single collision

rider

Rider is basically the "driver" of the vehicle

rider_visible

Can we see the driver from outside of the vehicle? (used for overlays)

sealed_cabin

Does the vehicle have air conditioning? (check /datum/lifeprocess/bodytemp in bodytemp.dm for details)

Proc Details

eject_rider

kick out the rider

handle_button_addition

add the ability buttons to the rider

handle_button_removal

remove the ability buttons from the rider

setup_ability_buttons

initializes the ability buttons (if we have any)