Prototype/RollingStock: Difference between revisions
(→Mandatory properties: max_speed capped to 7386.3km/h) |
(max_speed for trains, max_speed, tie_distance unit, tie explanation) |
||
Line 14: | Line 14: | ||
{{Prototype property|max_speed|[[Types/double|double]]}} | {{Prototype property|max_speed|[[Types/double|double]]}} | ||
Maximum speed of the rolling stock in tiles/tick. | |||
In-game, the max speed of a train is <code>min(all_rolling_stock_max_speeds) × average(all_fuel_modifiers_in_all_locomotives)</code>. | |||
This calculated train speed is then silently capped to 7386.3km/h. | |||
{{Prototype property|air_resistance|[[Types/double|double]]}} | {{Prototype property|air_resistance|[[Types/double|double]]}} | ||
Line 35: | Line 38: | ||
{{Prototype property|drive_over_tie_trigger|[[Types/TriggerEffect|TriggerEffect]]|optional=true}} | {{Prototype property|drive_over_tie_trigger|[[Types/TriggerEffect|TriggerEffect]]|optional=true}} | ||
Usually a sound to play when the rolling stock drives over a tie. | Usually a sound to play when the rolling stock drives over a tie. The rolling stock is considered to be driving over a tie every <code>tie_distance</code> tiles. | ||
{{Prototype property|tie_distance|[[Types/double|double]]|10.0|optional=true}} | {{Prototype property|tie_distance|[[Types/double|double]]|10.0|optional=true}} | ||
In tiles. Used to determine how often <code>drive_over_tie_trigger</code> is triggered. | |||
{{Prototype property|back_light|[[Types/LightDefinition|LightDefinition]]|optional=true}} | {{Prototype property|back_light|[[Types/LightDefinition|LightDefinition]]|optional=true}} |
Revision as of 08:48, 21 May 2021
Template:Prototype parent The abstract base of all rolling stock.
Extensions
- 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/Vehicle.
Template:Prototype property Maximum speed of the rolling stock in tiles/tick.
In-game, the max speed of a train is min(all_rolling_stock_max_speeds) × average(all_fuel_modifiers_in_all_locomotives)
.
This calculated train speed is then silently capped to 7386.3km/h.
Template:Prototype property The length between this rolling stocks front and rear joints. Joints are the point where connection_distance is measured from when rolling stock are connected to one another. Wheels sprite are placed based on the joint position.
Maximum joint distance is 15.
Note: There needs to be border at least 0.2 between the bounding box edge and joint.
Template:Prototype property The distance between the joint of this rolling stock and its connected rolling stocks joint.
Optional properties
Template:Prototype property
Usually a sound to play when the rolling stock drives over a tie. The rolling stock is considered to be driving over a tie every tie_distance
tiles.
Template:Prototype property
In tiles. Used to determine how often drive_over_tie_trigger
is triggered.