vehicle ![code/modules/vehicles/_vehicle.dm 1](git.png)
Vars | |
autogrant_actions_controller | Assoc list "[bitflag]" = list(typepaths) |
---|---|
autogrant_actions_passenger | Plain list of typepaths |
canmove | Whether the vehicle is currently able to move |
default_driver_move | Handle driver movement instead of letting something else do it like riding datums. |
emulate_door_bumps | When bumping a door try to make occupants bump them to open them. |
enclosed | Is the rider protected from bullets? assume no |
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. |
key_type_exact | Can subtypes of this key work |
max_drivers | Maximum amount of drivers |
mouse_pointer | Do we have a special mouse |
occupant_actions | Assoc list mob = list(type = action datum assigned to mob) |
occupants | mob = bitflags of their control level. |
trailer | This vehicle will follow us when we move (like atrailer duh) |
Procs | |
add_trailer | To add a trailer to the vehicle in a manner that allows safe qdels |
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. |
remove_trailer | To remove a trailer from the vehicle in a manner that allows safe qdels |
Var Details
autogrant_actions_controller ![code/modules/vehicles/_vehicle.dm 40](git.png)
Assoc list "[bitflag]" = list(typepaths)
autogrant_actions_passenger ![code/modules/vehicles/_vehicle.dm 38](git.png)
Plain list of typepaths
canmove ![code/modules/vehicles/_vehicle.dm 30](git.png)
Whether the vehicle is currently able to move
default_driver_move ![code/modules/vehicles/_vehicle.dm 34](git.png)
Handle driver movement instead of letting something else do it like riding datums.
emulate_door_bumps ![code/modules/vehicles/_vehicle.dm 32](git.png)
When bumping a door try to make occupants bump them to open them.
enclosed ![code/modules/vehicles/_vehicle.dm 36](git.png)
Is the rider protected from bullets? assume no
inserted_key ![code/modules/vehicles/_vehicle.dm 26](git.png)
The inserted key, needed on some vehicles to start the engine
key_type ![code/modules/vehicles/_vehicle.dm 24](git.png)
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.
key_type_exact ![code/modules/vehicles/_vehicle.dm 28](git.png)
Can subtypes of this key work
max_drivers ![code/modules/vehicles/_vehicle.dm 16](git.png)
Maximum amount of drivers
mouse_pointer ![code/modules/vehicles/_vehicle.dm 48](git.png)
Do we have a special mouse
occupant_actions ![code/modules/vehicles/_vehicle.dm 42](git.png)
Assoc list mob = list(type = action datum assigned to mob)
occupants ![code/modules/vehicles/_vehicle.dm 13](git.png)
mob = bitflags of their control level.
trailer ![code/modules/vehicles/_vehicle.dm 44](git.png)
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
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.
remove_trailer
To remove a trailer from the vehicle in a manner that allows safe qdels