Prototype/Vehicle: Difference between revisions
(→Optional properties: linked equipment grid, minimap representation descriptions) |
(energy_per_hit_point description) |
||
Line 26: | Line 26: | ||
{{Prototype property|energy_per_hit_point|[[Types/double|double]]}} | {{Prototype property|energy_per_hit_point|[[Types/double|double]]}} | ||
The (movement) energy used per hit point (1 hit point = 1 health damage) taken and dealt for this vehicle during collisions. The smaller the number, the more damage this vehicle and the rammed entity take during collisions: <code>damage = energy / energy_per_hit_point</code>. | |||
== Optional properties == | == Optional properties == |
Revision as of 11:56, 23 September 2019
Template:Prototype parent Abstract base of all vehicles.
Extensions
- Prototype/Car car
- Prototype/RollingStock <abstract>
- Prototype/ArtilleryWagon artillery-wagon
- Prototype/CargoWagon cargo-wagon
- Prototype/FluidWagon fluid-wagon
- Prototype/Locomotive locomotive
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
Template:Prototype property Must be positive. Weight of the entity used for physics calculation when car hits something.
Template:Prototype property Two different ways to set braking force. At least one must exist. Must be positive.
Template:Prototype property Two different ways to set friction force. At least one must exist. Must be positive.
Template:Prototype property
The (movement) energy used per hit point (1 hit point = 1 health damage) taken and dealt for this vehicle during collisions. The smaller the number, the more damage this vehicle and the rammed entity take during collisions: damage = energy / energy_per_hit_point
.
Optional properties
Template:Prototype property Must be in the [0, 1] interval.
Template:Prototype property Must be positive.
Template:Prototype property The name of the equipment grid this vehicle has.
Template:Prototype property The sprite that represents this vehicle on the map/minimap.
Template:Prototype property The sprite that represents this vehicle on the map/minimap when it is selected.