Prototype/Car: Difference between revisions
(→working_sound: inherited from entity) |
(0.16) |
||
Line 1: | Line 1: | ||
==Basics== | == Basics == | ||
Entity with specialized properties for acceleration, braking, and turning. | Entity with specialized properties for acceleration, braking, and turning. Extends [[Prototype/Vehicle]]. | ||
Extends | |||
== Usage in base== | == Usage in base == | ||
*[[Car]] | *[[Car]] | ||
*[[Tank]] | *[[Tank]] | ||
== | |||
== Mandatory properties == | |||
This prototype inherits all the properties from [[Prototype/Vehicle]]. | |||
=== animation === | === animation === | ||
'''Type''': [[Types/RotatedAnimation]] | '''Type''': [[Types/RotatedAnimation]] | ||
Animation speed 1 means 1 frame per tile. | |||
=== effectivity === | === effectivity === | ||
'''Type''': [[Types/double]] | '''Type''': [[Types/double]] | ||
Modifies the efficiency of energy transfer from burner output to wheels. | Modifies the efficiency of energy transfer from burner output to wheels. | ||
=== consumption === | === consumption === | ||
'''Type''': [[Types/ | '''Type''': [[Types/Energy]] | ||
=== rotation_speed === | === rotation_speed === | ||
'''Type''': [[Types/double]] | '''Type''': [[Types/double]] | ||
=== | === burner === | ||
'''Type''': [[Types/ | '''Type''': [[Types/EnergySource]] | ||
Must be a burner energy source. | |||
''' | === inventory_size === | ||
'''Type''': [[Types/ItemStackIndex]] | |||
Size of the car inventory. | |||
== Optional properties == | |||
''' | === turret_animation === | ||
'''Type''': [[Types/RotatedAnimation]] | |||
Animation speed 1 means 1 frame per tile. | |||
=== | === render_layer === | ||
'''Type''': [[Types/ | '''Type''': [[Types/RenderLayer]] | ||
'''Default''': "object" | |||
''' | |||
=== tank_driving === | === tank_driving === | ||
'''Type''': [[Types/bool]] | '''Type''': [[Types/bool]] | ||
'''Default''': false | |||
If this car prototype uses tank controls to drive. | If this car prototype uses tank controls to drive. | ||
=== | === has_belt_immunity === | ||
'''Type''': | '''Type''': [[Types/bool]] | ||
'''Default''': false | |||
If this car is immune to movement by belts. | |||
=== | === immune_to_tree_impacts === | ||
'''Type''': [[Types/ | '''Type''': [[Types/bool]] | ||
'''Default''': false | |||
''' | |||
If this car gets damaged by drving over/against trees. | |||
=== | === turret_rotation_speed === | ||
'''Type''': | '''Type''': [[Types/double]] | ||
'''Default''': 0.01 | |||
=== | === turret_return_timeout === | ||
'''Type''': [[Types/ | '''Type''': [[Types/uint32]] | ||
'''Default''': 60 | |||
''' | |||
Timeout in ticks specifying how long the turret must be inactive to return to the default position. | |||
== | === light === | ||
'''Type''': [[Types/LightDefinition]] | |||
=== | === sound_no_fuel === | ||
'''Type''': [[Types/ | '''Type''': [[Types/Sound]] | ||
''' | === guns === | ||
'''Type''': [[Types/table]] of [[Types/string]]s of prototype names | |||
The guns this car prototype uses. | |||
Revision as of 08:08, 23 May 2018
Basics
Entity with specialized properties for acceleration, braking, and turning. Extends Prototype/Vehicle.
Usage in base
Mandatory properties
This prototype inherits all the properties from Prototype/Vehicle.
animation
Type: Types/RotatedAnimation
Animation speed 1 means 1 frame per tile.
effectivity
Type: Types/double
Modifies the efficiency of energy transfer from burner output to wheels.
consumption
Type: Types/Energy
rotation_speed
Type: Types/double
burner
Type: Types/EnergySource
Must be a burner energy source.
inventory_size
Type: Types/ItemStackIndex
Size of the car inventory.
Optional properties
turret_animation
Type: Types/RotatedAnimation
Animation speed 1 means 1 frame per tile.
render_layer
Type: Types/RenderLayer
Default: "object"
tank_driving
Type: Types/bool
Default: false
If this car prototype uses tank controls to drive.
has_belt_immunity
Type: Types/bool
Default: false
If this car is immune to movement by belts.
immune_to_tree_impacts
Type: Types/bool
Default: false
If this car gets damaged by drving over/against trees.
turret_rotation_speed
Type: Types/double
Default: 0.01
turret_return_timeout
Type: Types/uint32
Default: 60
Timeout in ticks specifying how long the turret must be inactive to return to the default position.
light
Type: Types/LightDefinition
sound_no_fuel
Type: Types/Sound
guns
Type: Types/table of Types/strings of prototype names
The guns this car prototype uses.