This is the code:
Code: Select all
switch (FEAT_TRAINS, SELF, SudEstHead_articulated_parts, current_callback) {
1..3: return 01;
CB_FAILED;
}
switch (FEAT_TRAINS, SELF, SudEstHead_callbacks, extra_callback_info1) {
VEH_CB_ARTICULATED_PARTS: SudEstHead_articulated_parts;
SEFRONT_group;
}
item (FEAT_TRAINS, SudEstHead) {
property {
sprite_id: SPRITE_ID_NEW_TRAIN;
misc_flags: bitmask(TRAIN_FLAG_2CC);
track_type: ELRL;
name: string(STR_NAME_SUD_EST);
climates_available: ALL_CLIMATES;
introduction_date: date(1981,1,1);
speed: 168 mph;
tractive_effort_coefficient: 0.5;
air_drag_coefficient: 0;
power: 9245 hp;
dual_headed: 0;
engine_class: ENGINE_CLASS_ELECTRIC;
cargo_capacity: 0;
weight: 179; // half offical weight, only one end
reliability_decay: 12;
model_life: 32;
vehicle_life: 45;
cost_factor: 50;
running_cost_factor: 50;
callback_flags: bitmask(VEH_CBF_ARTICULATED_PARTS);
}
graphics
{ // graphics for engine
SudEstHead_callbacks;
}
}
item (FEAT_TRAINS, SudEstFirst, 01) {
property {
sprite_id: SPRITE_ID_NEW_TRAIN;
misc_flags: bitmask(TRAIN_FLAG_2CC);
track_type: ELRL;
name: string(STR_NAME_SUD_EST);
climates_available: NO_CLIMATE;
introduction_date: date(1920,1,1);
speed: 168 mph;
tractive_effort_coefficient: 0.5;
air_drag_coefficient: 0;
power: 0;
dual_headed: 0;
engine_class: ENGINE_CLASS_ELECTRIC;
cargo_capacity: 0;
refittable_cargo_types: bitmask(PASS, TOUR);
weight: 13;
loading_speed: 20;
cost_factor: 50;
}
graphics
{ // graphics for engine
SEFIRST_group;
}
}
Thanks for any help you can provide,
Lawton27