spriteset (spriteset_wagon_wheel, "../gfx/8bpp/hopper-test/x1/wagon-wheel-x1-8bpp.png" ) {template_vehicle8_x1_8bpp(0)} alternative_sprites (spriteset_wagon_wheel, ZOOM_LEVEL_IN_4X, BIT_DEPTH_8BPP ) {template_vehicle8_x4(0, "../gfx/8bpp/hopper-test/wagon-wheel-8bpp.png")} alternative_sprites (spriteset_wagon_wheel, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP ) {template_vehicle8_x1(0, "../gfx/32bpp/hopper-test/x1/wagon-wheel-x1.png")} alternative_sprites (spriteset_wagon_wheel, ZOOM_LEVEL_IN_4X, BIT_DEPTH_32BPP ) {template_vehicle8_x4(0, "../gfx/32bpp/hopper-test/wagon-wheel.png")} spriteset (spriteset_hopper_wagon_back, "../gfx/8bpp/hopper-test/x1/wagon-hopper-back-x1-8bpp.png" ) {template_vehicle8_x1_8bpp(0)} alternative_sprites (spriteset_hopper_wagon_back, ZOOM_LEVEL_IN_4X, BIT_DEPTH_8BPP ) {template_vehicle8_x4(0, "../gfx/8bpp/hopper-test/wagon-hopper-back-8bpp.png")} alternative_sprites (spriteset_hopper_wagon_back, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP ) {template_vehicle8_x1(0, "../gfx/32bpp/hopper-test/x1/wagon-hopper-back-x1.png")} alternative_sprites (spriteset_hopper_wagon_back, ZOOM_LEVEL_IN_4X, BIT_DEPTH_32BPP ) {template_vehicle8_x4(0, "../gfx/32bpp/hopper-test/wagon-hopper-back.png")} spriteset (spriteset_hopper_wagon_front, "../gfx/8bpp/hopper-test/x1/wagon-hopper-front-x1-8bpp.png" ) {template_vehicle8_x1_8bpp(0)} alternative_sprites (spriteset_hopper_wagon_front, ZOOM_LEVEL_IN_4X, BIT_DEPTH_8BPP ) {template_vehicle8_x4(0, "../gfx/8bpp/hopper-test/wagon-hopper-front-8bpp.png")} alternative_sprites (spriteset_hopper_wagon_front, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP ) {template_vehicle8_x1(0, "../gfx/32bpp/hopper-test/x1/wagon-hopper-front-x1.png")} alternative_sprites (spriteset_hopper_wagon_front, ZOOM_LEVEL_IN_4X, BIT_DEPTH_32BPP ) {template_vehicle8_x4(0, "../gfx/32bpp/hopper-test/wagon-hopper-front.png")} spriteset (spriteset_hopper_wagon_cargo, "../gfx/8bpp/hopper-test/x1/wagon-hopper-cargo-x1-8bpp.png" ) {template_vehicle8_x1_8bpp(0)} alternative_sprites (spriteset_hopper_wagon_cargo, ZOOM_LEVEL_IN_4X, BIT_DEPTH_8BPP ) {template_vehicle8_x4(0, "../gfx/8bpp/hopper-test/wagon-hopper-cargo-8bpp.png")} alternative_sprites (spriteset_hopper_wagon_cargo, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP ) {template_vehicle8_x1(0, "../gfx/32bpp/hopper-test/x1/wagon-hopper-cargo-x1.png")} alternative_sprites (spriteset_hopper_wagon_cargo, ZOOM_LEVEL_IN_4X, BIT_DEPTH_32BPP ) {template_vehicle8_x4(0, "../gfx/32bpp/hopper-test/wagon-hopper-cargo.png")} switch (FEAT_TRAINS,SELF, switch_hopper_wagon_layers, [ STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 4 ? CB_FLAG_MORE_SPRITES : 0) + PALETTE_USE_DEFAULT, 0x100), getbits(extra_callback_info1, 8, 8) ]){ 0: spriteset_wagon_wheel; 100: spriteset_hopper_wagon_back; 2: spriteset_hopper_wagon_cargo; 3: spriteset_hopper_wagon_front; return spriteset_hopper_wagon_back; } item(FEAT_TRAINS, hopper_wagon, 101){ property{ sprite_id: SPRITE_ID_NEW_TRAIN; name: string(STR_hopper_wagon_name); climates_available: ALL_CLIMATES; introduction_date: date(1900, 1,1,); model_life: VEHICLE_NEVER_EXPIRES; vehicle_life: 255; reliability_decay: 5; refittable_cargo_classes: ALL_CARGO_CLASSES; non_refittable_cargo_classes: bitmask(); cargo_capacity: 60; loading_speed: 20; //speed: 160 km/h; //power: 5000 hp; //tractive_effort_coefficient: 0.5; weight: 40 ton; air_drag_coefficient: 0; extra_power_per_wagon: 0; extra_weight_per_wagon: 0; track_type: RAIL; //engine_class: ENGINE_CLASS_STEAM; //running_cost_base: RUNNING_COST_STEAM; //visual_effect_and_powered: visual_effect_and_powered(1,2,DISABLE_WAGON_POWER); misc_flags: TRAIN_FLAG_SPRITE_STACK; length: 8; dual_headed: 0; cost_factor: 10; running_cost_base: RUNNING_COST_NONE; //running_cost_factor: 100; refit_cost: 0; bitmask_vehicle_info: 0; ai_engine_rank: 0; ai_special_flag: AI_FLAG_CARGO; } graphics{ default: switch_hopper_wagon_layers; //purchase: spriteset_purchase_engine01; additional_text: string(STR_hopper_wagon_purchase); //articulated_part: switch_engine01_articulated; //purchase_speed: 160; //purchase_power: 5000; //purchase_tractive_effort_coefficient: 128; purchase_weight: 40; //speed: switch_engine01_speed; //power: switch_engine01_power; //tractive_effort_coefficient: switch_engine01_TE; //weight: switch_engine01_weight; } }