Prototype/RollingStock: Difference between revisions
(0.17.77 wheels are optional) |
(→Mandatory properties: max_speed capped to 7386.3km/h) |
||
Line 14: | Line 14: | ||
{{Prototype property|max_speed|[[Types/double|double]]}} | {{Prototype property|max_speed|[[Types/double|double]]}} | ||
Max train speed is silently capped to 7386.3km/h in-game. | |||
{{Prototype property|air_resistance|[[Types/double|double]]}} | {{Prototype property|air_resistance|[[Types/double|double]]}} |
Revision as of 16:02, 3 February 2021
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Vehicle » Prototype/RollingStock
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.
max_speed
Type: double
Max train speed is silently capped to 7386.3km/h in-game.
air_resistance
Type: double
joint_distance
Type: double
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.
connection_distance
Type: double
The distance between the joint of this rolling stock and its connected rolling stocks joint.
pictures
Type: RotatedSprite
vertical_selection_shift
Type: double
Optional properties
drive_over_tie_trigger
Type: TriggerEffect
Usually a sound to play when the rolling stock drives over a tie.
tie_distance
Type: double
Default: 10.0
back_light
Type: LightDefinition
stand_by_light
Type: LightDefinition
wheels
Type: RotatedSprite
horizontal_doors
Type: Animation
vertical_doors
Type: Animation
color
Type: Color
allow_manual_color
Type: bool
Default: true
allow_robot_dispatch_in_automatic_mode
Type: bool
Default: false