Loading

Paste #ptrutsndc

  1. switch (FEAT_TRAINS, SELF, capacity, position_in_vehid_chain % 3) {
  2.     1: 33;
  3.     return 0; }
  4.  
  5. switch (FEAT_TRAINS, SELF, arti_88, extra_callback_info1) {
  6.     1..2: item_test_88;
  7.     CB_RESULT_NO_MORE_ARTICULATED_PARTS; }
  8.  
  9. item (FEAT_TRAINS, item_test_88) {
  10.     property {
  11.         sprite_id: SPRITE_ID_NEW_TRAIN;
  12.         misc_flags: bitmask(TRAIN_FLAG_FLIP);
  13.         name: string(TEST_88);
  14.         climates_available: ALL_CLIMATES;
  15.         introduction_date: date(0, 1, 1);
  16.         speed: 100km/h;
  17.         power: 1000 hpM;
  18.         weight: 50 ton;
  19.         tractive_effort_coefficient: 0.3;
  20.         length: 8;
  21.         refittable_cargo_classes: bitmask(CC_PASSENGERS);
  22.         cargo_capacity: 1;
  23.     }
  24.     graphics {
  25.         articulated_part: arti_88;
  26.         default: spr_8_def;
  27.         cargo_capacity: capacity;
  28.     }
  29. }
  30.  
  31. switch (FEAT_TRAINS, SELF, arti_99, extra_callback_info1) {
  32.     1..2: item_test_99;
  33.     CB_RESULT_NO_MORE_ARTICULATED_PARTS; }
  34.  
  35. item (FEAT_TRAINS, item_test_99) {
  36.     property {
  37.         sprite_id: SPRITE_ID_NEW_TRAIN;
  38.         misc_flags: bitmask(TRAIN_FLAG_FLIP);
  39.         name: string(TEST_88);
  40.         climates_available: ALL_CLIMATES;
  41.         introduction_date: date(0, 1, 1);
  42.         speed: 100km/h;
  43.         power: 1000 hpM;
  44.         weight: 50 ton;
  45.         tractive_effort_coefficient: 0.3;
  46.         length: 8;
  47.         refittable_cargo_classes: bitmask(CC_PASSENGERS);
  48.         cargo_capacity: 1;
  49.     }
  50.     graphics {
  51.         articulated_part: arti_99;
  52.         default: spr_8_def;
  53.         cargo_capacity: capacity;
  54.         purchase_cargo_capacity: 33;
  55.     }
  56. }

Comments