- // -- smoke etc -- //
- switch (FEAT_TRAINS, SELF, suburban_switch_visual_effect_and_powered_by_variant_0, current_railtype) {
- return visual_effect_and_powered(VISUAL_EFFECT_STEAM, -3, DISABLE_WAGON_POWER);
- }
- switch (FEAT_TRAINS, SELF, suburban_switch_visual_effect_and_powered_by_variant_flipped_0, current_railtype) {
- return visual_effect_and_powered(VISUAL_EFFECT_STEAM, -3, DISABLE_WAGON_POWER);
- }
- switch (FEAT_TRAINS, SELF, suburban_switch_visual_effect_and_powered_calculate_offset_0, vehicle_is_flipped) {
- 1: return suburban_switch_visual_effect_and_powered_by_variant_flipped_0;
- return suburban_switch_visual_effect_and_powered_by_variant_0;
- }
- switch (FEAT_TRAINS, SELF, suburban_switch_visual_effect_and_powered_by_variant_1, current_railtype) {
- return visual_effect_and_powered(VISUAL_EFFECT_STEAM, 3, DISABLE_WAGON_POWER);
- }
- switch (FEAT_TRAINS, SELF, suburban_switch_visual_effect_and_powered_by_variant_flipped_1, current_railtype) {
- return visual_effect_and_powered(VISUAL_EFFECT_STEAM, 3, DISABLE_WAGON_POWER);
- }
- switch (FEAT_TRAINS, SELF, suburban_switch_visual_effect_and_powered_calculate_offset_1, vehicle_is_flipped) {
- 1: return suburban_switch_visual_effect_and_powered_by_variant_flipped_1;
- return suburban_switch_visual_effect_and_powered_by_variant_1;
- }
- random_switch (FEAT_TRAINS, FORWARD_SELF(0), suburban_switch_visual_effect_and_powered_variants) {
- dependent: suburban_switch_graphics;
- 1: suburban_switch_visual_effect_and_powered_calculate_offset_0;
- 1: suburban_switch_visual_effect_and_powered_calculate_offset_1;
- }