Loading

Paste #pgbzgzckr

  1.     // -- smoke etc -- //
  2.         switch (FEAT_TRAINS, SELF, suburban_switch_visual_effect_and_powered_by_variant_0, current_railtype) {
  3.             return visual_effect_and_powered(VISUAL_EFFECT_STEAM, -3, DISABLE_WAGON_POWER);
  4.         }
  5.         switch (FEAT_TRAINS, SELF, suburban_switch_visual_effect_and_powered_by_variant_flipped_0, current_railtype) {
  6.             return visual_effect_and_powered(VISUAL_EFFECT_STEAM, -3, DISABLE_WAGON_POWER);
  7.         }
  8.         switch (FEAT_TRAINS, SELF, suburban_switch_visual_effect_and_powered_calculate_offset_0, vehicle_is_flipped) {
  9.             1: return suburban_switch_visual_effect_and_powered_by_variant_flipped_0;
  10.             return suburban_switch_visual_effect_and_powered_by_variant_0;
  11.         }
  12.         switch (FEAT_TRAINS, SELF, suburban_switch_visual_effect_and_powered_by_variant_1, current_railtype) {
  13.             return visual_effect_and_powered(VISUAL_EFFECT_STEAM, 3, DISABLE_WAGON_POWER);
  14.         }
  15.         switch (FEAT_TRAINS, SELF, suburban_switch_visual_effect_and_powered_by_variant_flipped_1, current_railtype) {
  16.             return visual_effect_and_powered(VISUAL_EFFECT_STEAM, 3, DISABLE_WAGON_POWER);
  17.         }
  18.         switch (FEAT_TRAINS, SELF, suburban_switch_visual_effect_and_powered_calculate_offset_1, vehicle_is_flipped) {
  19.             1: return suburban_switch_visual_effect_and_powered_by_variant_flipped_1;
  20.             return suburban_switch_visual_effect_and_powered_by_variant_1;
  21.         }
  22.     random_switch (FEAT_TRAINS, FORWARD_SELF(0), suburban_switch_visual_effect_and_powered_variants) {
  23.         dependent: suburban_switch_graphics;
  24.             1: suburban_switch_visual_effect_and_powered_calculate_offset_0;
  25.             1: suburban_switch_visual_effect_and_powered_calculate_offset_1;
  26.     }

Comments