// define the newgrf grf { grfid: "MI\02\02"; name: string(STR_GRF_NAME); desc: string(STR_GRF_DESC); version: 1; min_compatible_version: 1; } template template_PLACEHOLDER () { [0, 0, 64, 64, -32, -32] [0, 0, 64, 64, -32, -32] [0, 0, 64, 64, -32, -32] [0, 0, 64, 64, -32, -32] [0, 0, 64, 64, -32, -32] [0, 0, 64, 64, -32, -32] [0, 0, 64, 64, -32, -32] [0, 0, 64, 64, -32, -32] } template template_tram_T3() { //[left_x, upper_y, width, height, offset_x, offset_y] [0, 0, 57, 114, -46, -49] [70, 0, 140, 100, -90, -45] [220, 0, 180, 65, -84, -43] [405, 0, 139, 90, -65, -36] [550, 0, 56, 111, -36, -49] [625, 0, 139, 90, -92, -35] [770, 0, 179, 64, -84, -37] [960, 0, 140, 99, -67, -45] } //Invisible_1 spriteset(spriteset_invisible_1, "gfx/PLACEHOLDER.png") { template_PLACEHOLDER() } item (FEAT_ROADVEHS, item_invisible_1) { property { name: string(STR_NAME_INVISIBLE_1); //název z .lng introduction_date: date(1700,1,1); model_life: VEHICLE_NEVER_EXPIRES; retire_early: 0; vehicle_life: 100; loading_speed: 100; cost_factor: 0; running_cost_factor: 112; speed: 300 km/h; power: 966 hp; weight: 0 ton; length: 3; cargo_capacity: 0; tractive_effort_coefficient: 0.5; air_drag_coefficient: 0; //sound_effect: no sound //visual_effect: use default (none) //callback_flags: no need to set this reliability_decay: 20; climates_available: ALL_CLIMATES; refittable_cargo_classes: bitmask(CC_PASSENGERS); sprite_id: SPRITE_ID_NEW_ROADVEH; //use custom sprites misc_flags: bitmask(ROADVEH_FLAG_TRAM); //make this a tram refit_cost: 0; //refits are free running_cost_base: RUNNING_COST_ROADVEH; } graphics { default: spriteset_invisible_1; // default graphic } } //TATRA T3 Single spriteset(spriteset_tatra_t3_default, "gfx/PLACEHOLDER.png") { template_PLACEHOLDER() } alternative_sprites(spriteset_tatra_t3_default, ZOOM_LEVEL_IN_4X, BIT_DEPTH_32BPP, "gfx/tramset.png") { template_tram_T3() } item (FEAT_ROADVEHS, item_tram_tatra_t3) { property { name: string(STR_NAME_TATRA_T3); //název z .lng introduction_date: date(1962,1,1); model_life: VEHICLE_NEVER_EXPIRES; retire_early: 0; vehicle_life: 25; loading_speed: 25; cost_factor: 224; running_cost_factor: 112; speed: 65 km/h; power: 966 hp; weight: 16 ton; length: 8; cargo_capacity: 60; tractive_effort_coefficient: 0.5; air_drag_coefficient: 0; //sound_effect: no sound //visual_effect: use default (none) //callback_flags: no need to set this reliability_decay: 20; climates_available: ALL_CLIMATES; refittable_cargo_classes: bitmask(CC_PASSENGERS); sprite_id: SPRITE_ID_NEW_ROADVEH; //use custom sprites misc_flags: bitmask(ROADVEH_FLAG_TRAM); //make this a tram refit_cost: 0; //refits are free running_cost_base: RUNNING_COST_ROADVEH; } graphics { default: spriteset_tatra_t3_default; // default graphic } } //TATRA T3 Double //set number of articulated parts switch (FEAT_ROADVEHS, SELF, switch_articulated_t3, extra_callback_info1) { 0: return item_invisible_1; 1: return item_tram_tatra_t3; 2: return item_invisible_1; 3: return item_invisible_1; 4: return item_tram_tatra_t3; 5: return item_invisible_1; return CB_RESULT_NO_MORE_ARTICULATED_PARTS; //stop adding vehicle parts } //set capacity of each part switch (FEAT_ROADVEHS, SELF, switch_capacity_t3, position_in_consist ) { 0: return 0; 2: return 0; 3: return 0; 5: return 0; return 60; //default } item (FEAT_ROADVEHS, item_tram_tatra_t3_double) { property { name: string(STR_NAME_TATRA_T3_DOUBLE); //název z .lng introduction_date: date(1962,1,1); model_life: VEHICLE_NEVER_EXPIRES; retire_early: 0; vehicle_life: 25; loading_speed: 25; cost_factor: 224; running_cost_factor: 112; speed: 65 km/h; power: 966 hp; weight: 16 ton; length: 8; cargo_capacity: 120; tractive_effort_coefficient: 0.5; air_drag_coefficient: 0; //sound_effect: no sound //visual_effect: use default (none) //callback_flags: no need to set this reliability_decay: 20; climates_available: ALL_CLIMATES; refittable_cargo_classes: bitmask(CC_PASSENGERS); sprite_id: SPRITE_ID_NEW_ROADVEH; //use custom sprites misc_flags: bitmask(ROADVEH_FLAG_TRAM); //make this a tram refit_cost: 0; //refits are free running_cost_base: RUNNING_COST_ROADVEH; } graphics { articulated_part: switch_articulated_t3; cargo_capacity: switch_capacity_t3; } }