Home

RollingStockPrototype

The abstract base of all rolling stock.

Parent

Properties

max_speed

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.

air_resistance

joint_distance

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. This means that the collision_box must be at least {{-0,-0.2},{0,0.2}}.

connection_distance

The distance between the joint of this rolling stock and its connected rolling stocks joint.

Maximum connection distance is 15.

pictures

wheels

vertical_selection_shift

drive_over_tie_trigger

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.

drive_over_tie_trigger_minimal_speed

tie_distance

In tiles. Used to determine how often drive_over_tie_trigger is triggered.

back_light

stand_by_light

horizontal_doors

vertical_doors

color

allow_manual_color

allow_robot_dispatch_in_automatic_mode

default_copy_color_from_train_stop

transition_collision_mask

Defaults to the mask from UtilityConstants::default_collision_masks when indexed by type .. "/transition".

elevated_collision_mask

Defaults to the mask from UtilityConstants::default_collision_masks when indexed by type .. "/elevated".

elevated_selection_priority

elevated_rail_sound

drive_over_elevated_tie_trigger

door_opening_sound

Cannot use fade_ticks.

door_closing_sound

Cannot use fade_ticks.