Loading

layered wagon

  1.  
  2. spriteset           (spriteset_wagon_wheel, "../gfx/8bpp/hopper-test/x1/wagon-wheel-x1-8bpp.png" )  {template_vehicle8_x1_8bpp(0)}
  3. alternative_sprites (spriteset_wagon_wheel, ZOOM_LEVEL_IN_4X,  BIT_DEPTH_8BPP         )     {template_vehicle8_x4(0, "../gfx/8bpp/hopper-test/wagon-wheel-8bpp.png")}
  4. alternative_sprites (spriteset_wagon_wheel, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP        )     {template_vehicle8_x1(0, "../gfx/32bpp/hopper-test/x1/wagon-wheel-x1.png")}
  5. alternative_sprites (spriteset_wagon_wheel, ZOOM_LEVEL_IN_4X,  BIT_DEPTH_32BPP        )   {template_vehicle8_x4(0, "../gfx/32bpp/hopper-test/wagon-wheel.png")}
  6.  
  7. spriteset           (spriteset_hopper_wagon_back, "../gfx/8bpp/hopper-test/x1/wagon-hopper-back-x1-8bpp.png" )  {template_vehicle8_x1_8bpp(0)}
  8. 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")}
  9. 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")}
  10. 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")}
  11.  
  12. spriteset           (spriteset_hopper_wagon_front, "../gfx/8bpp/hopper-test/x1/wagon-hopper-front-x1-8bpp.png" )  {template_vehicle8_x1_8bpp(0)}
  13. 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")}
  14. 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")}
  15. 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")}
  16.  
  17. spriteset           (spriteset_hopper_wagon_cargo, "../gfx/8bpp/hopper-test/x1/wagon-hopper-cargo-x1-8bpp.png" )  {template_vehicle8_x1_8bpp(0)}
  18. 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")}
  19. 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")}
  20. 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")}
  21.  
  22. switch (FEAT_TRAINS,SELF, switch_hopper_wagon_layers, [
  23.   STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 4 ? CB_FLAG_MORE_SPRITES  : 0) + PALETTE_USE_DEFAULT, 0x100),
  24.   getbits(extra_callback_info1, 8, 8)
  25.   ]){
  26.   0: spriteset_wagon_wheel;
  27.   100: spriteset_hopper_wagon_back;
  28.   2: spriteset_hopper_wagon_cargo;
  29.   3: spriteset_hopper_wagon_front;
  30.   return spriteset_hopper_wagon_back;
  31. }
  32.  
  33. item(FEAT_TRAINS, hopper_wagon, 101){
  34.   property{
  35.     sprite_id:            SPRITE_ID_NEW_TRAIN;
  36.     name:                 string(STR_hopper_wagon_name);
  37.     climates_available:   ALL_CLIMATES;
  38.     introduction_date:    date(1900, 1,1,);
  39.     model_life:           VEHICLE_NEVER_EXPIRES;
  40.     vehicle_life:         255;
  41.     reliability_decay:    5;
  42.    
  43.     refittable_cargo_classes:     ALL_CARGO_CLASSES;
  44.     non_refittable_cargo_classes: bitmask();
  45.     cargo_capacity:       60;
  46.     loading_speed:        20;
  47.    
  48.     //speed:                       160 km/h;
  49.     //power:                       5000 hp;
  50.     //tractive_effort_coefficient: 0.5;
  51.     weight:                      40 ton;
  52.    
  53.     air_drag_coefficient:        0;
  54.     extra_power_per_wagon:       0;
  55.     extra_weight_per_wagon:      0;
  56.  
  57.     track_type:           RAIL;
  58.     //engine_class:         ENGINE_CLASS_STEAM;
  59.     //running_cost_base:    RUNNING_COST_STEAM;
  60.     //visual_effect_and_powered: visual_effect_and_powered(1,2,DISABLE_WAGON_POWER);
  61.     misc_flags:           TRAIN_FLAG_SPRITE_STACK;
  62.  
  63.     length:               8;
  64.     dual_headed:          0;
  65.    
  66.     cost_factor:          10;
  67.     running_cost_base:    RUNNING_COST_NONE;
  68.     //running_cost_factor:  100;
  69.     refit_cost:           0;
  70.     bitmask_vehicle_info: 0;
  71.     ai_engine_rank:       0;
  72.     ai_special_flag:      AI_FLAG_CARGO;
  73.   }
  74.   graphics{
  75.     default:  switch_hopper_wagon_layers;
  76.     //purchase: spriteset_purchase_engine01;
  77.     additional_text: string(STR_hopper_wagon_purchase);
  78.  
  79.     //articulated_part: switch_engine01_articulated;
  80.  
  81.     //purchase_speed:                       160;
  82.     //purchase_power:                       5000;
  83.     //purchase_tractive_effort_coefficient: 128;
  84.     purchase_weight:                      40;
  85.  
  86.     //speed:                        switch_engine01_speed;
  87.     //power:                        switch_engine01_power;
  88.     //tractive_effort_coefficient:  switch_engine01_TE;
  89.     //weight:                       switch_engine01_weight;
  90.   }
  91. }

Comments