/tg/ Station 13 - Modules - TypesVar Details - Proc Details

vehicle

Vars

canmoveWhether the vehicle is currently able to move
inserted_keyThe inserted key, needed on some vehicles to start the engine
key_typeIf the driver needs a certain item in hand (or inserted, for vehicles) to drive this. For vehicles, this must be duplicated on their riding component subtype /datum/component/riding/var/keytype variable because only a few specific checks are handled here with this var, and the majority of it is on the riding component Eventually the remaining checks should be moved to the component and this var removed.
max_driversMaximum amount of drivers
max_occupantsMaximum amount of passengers plus drivers
trailerThis vehicle will follow us when we move (like atrailer duh)

Procs

add_trailerTo add a trailer to the vehicle in a manner that allows safe qdels
destroy_controller_action_type
destroy_passenger_action_type
generate_action_type
generate_actions
generate_integrity_messageReturns a readable string of the vehicle's health for examining. Overridden by subtypes who want to be more verbose with their health messages.
grant_action_type_to_mob
grant_passenger_actions
initialize_controller_action_type
initialize_passenger_action_type
remove_action_type_from_mob
remove_passenger_actions
remove_trailerTo remove a trailer from the vehicle in a manner that allows safe qdels

Var Details

canmove

Whether the vehicle is currently able to move

inserted_key

The inserted key, needed on some vehicles to start the engine

key_type

If the driver needs a certain item in hand (or inserted, for vehicles) to drive this. For vehicles, this must be duplicated on their riding component subtype /datum/component/riding/var/keytype variable because only a few specific checks are handled here with this var, and the majority of it is on the riding component Eventually the remaining checks should be moved to the component and this var removed.

max_drivers

Maximum amount of drivers

max_occupants

Maximum amount of passengers plus drivers

trailer

This vehicle will follow us when we move (like atrailer duh)

Proc Details

add_trailer

To add a trailer to the vehicle in a manner that allows safe qdels

destroy_controller_action_type

destroy_controller_action_type

As the name implies, removes the actiontype from autogrant and removes it from all occupants args:

destroy_passenger_action_type

destroy_passenger_action_type

Removes this action type from all occupants and stops autogranting it args:

generate_action_type

generate_action_type

A small proc to properly set up each action path. args:

generate_actions

generate_actions

You override this with initialize_passenger_action_type and initialize_controller_action_type calls To give passengers actions when they enter the vehicle. Read the documentation on the aforementioned procs to learn the difference

generate_integrity_message

Returns a readable string of the vehicle's health for examining. Overridden by subtypes who want to be more verbose with their health messages.

grant_action_type_to_mob

grant_action_type_to_mob

As on the tin, it does all the annoying small stuff and sanity needed to GRANT an action to a mob. args:

grant_passenger_actions

grant_passenger_actions

Called on every passenger that enters the vehicle, goes through the list of actions it needs to give... and does that. args:

initialize_controller_action_type

initialize_controller_action_type

Gives any passenger that enters the vehicle this action... IF they have the correct vehicle control flag. This is used so passengers cannot press buttons only drivers should have, for example. args:

initialize_passenger_action_type

initialize_passenger_action_type

Gives any passenger that enters the mech this action. They will lose it when they disembark. args:

remove_action_type_from_mob

remove_action_type_from_mob

As on the tin, it does all the annoying small stuff and sanity needed to REMOVE an action to a mob. args:

remove_passenger_actions

remove_passenger_actions

Called on every passenger that exits the vehicle, goes through the list of actions it needs to remove... and does that. args:

remove_trailer

To remove a trailer from the vehicle in a manner that allows safe qdels