//-------------------------------------------------------------------------------------------- //----- Articulation switch (FEAT_TRAINS, SELF, switch_railstrong3_articulated, extra_callback_info1){ 1: item_railstrong3; 1: item_railstrong3; 1: item_railstrong3; 1: item_railstrong3; CB_RESULT_NO_MORE_ARTICULATED_PARTS; } switch (FEAT_TRAINS, SELF, switch_railstrong3_length, position_in_vehid_chain % 5){ 0: 1; 1: 2; 2: 2; 3: 2; 4: 1; 8; } switch (FEAT_TRAINS, SELF, switch_railstrong3_attach, vehicle_type_id){ item_railstrong3: CB_RESULT_ATTACH_ALLOW; item_CABOOSE_1: CB_RESULT_ATTACH_ALLOW; item_CABOOSE_2: CB_RESULT_ATTACH_ALLOW; item_railpax: CB_RESULT_ATTACH_ALLOW; item_railflatbed1: CB_RESULT_ATTACH_ALLOW; item_railflatbed2: CB_RESULT_ATTACH_ALLOW; item_railflatbed3: CB_RESULT_ATTACH_ALLOW; item_railhopper1: CB_RESULT_ATTACH_ALLOW; item_railhopper2: CB_RESULT_ATTACH_ALLOW; item_railhopper3: CB_RESULT_ATTACH_ALLOW; item_railtanker1: CB_RESULT_ATTACH_ALLOW; item_railtanker2: CB_RESULT_ATTACH_ALLOW; item_railtanker3: CB_RESULT_ATTACH_ALLOW; item_railuniversal1: CB_RESULT_ATTACH_ALLOW; item_railuniversal2: CB_RESULT_ATTACH_ALLOW; item_railuniversal3: CB_RESULT_ATTACH_ALLOW; return string(error_attach_rail_freight); } item(FEAT_TRAINS, item_railstrong3, 15) { //ID15 property { name: string(STR_NAME_RS3); climates_available: ALL_CLIMATES; introduction_date: date(1940, 1, 1); model_life: 15; vehicle_life: 255; reliability_decay: 5; //Just an engine, no refit refittable_cargo_classes: bitmask(NO_CARGO_CLASS); non_refittable_cargo_classes: bitmask(); loading_speed: 5; cost_factor: 10; running_cost_factor: 100; sprite_id: SPRITE_ID_NEW_TRAIN; speed: 110 km/h; // actually 140, but there are rounding errors misc_flags: bitmask(TRAIN_FLAG_FLIP, TRAIN_FLAG_2CC); refit_cost: 0; track_type: RAIL; ai_special_flag: AI_FLAG_CARGO; power: 2000 hp; running_cost_base: RUNNING_COST_STEAM; dual_headed: 0; cargo_capacity: 0; weight: 150 ton; ai_engine_rank: 0; engine_class: ENGINE_CLASS_STEAM; extra_power_per_wagon: 0 kW; tractive_effort_coefficient: 1; air_drag_coefficient: 0; length: 8; visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DEFAULT, -2, DISABLE_WAGON_POWER); extra_weight_per_wagon: 0 ton; bitmask_vehicle_info: 0; } graphics { articulated_part: switch_railstrong3_articulated; length: switch_railstrong3_length; default: spriteset_train_railstrong3; purchase: spriteset_purchaseMenu_railstrong3; can_attach_wagon: switch_railstrong3_attach; additional_text: string(info_rail_strong_3); speed: 100; power: 2000; weight: 80; tractive_effort_coefficient: 168; cost_factor: 10 running_cost_factor: 100; } }