[logic]
active = sr_idle@task

[sr_idle@task]
on_info  = {+actor_has_labx9_tonnel_code_flash} sr_idle@spawn %=create_squad(labx9_a2_burer_1_squad:labx9_a2) =create_squad(labx9_a2_burer_2_squad:labx9_a2)%

[sr_idle@spawn]
on_game_timer = 30 | sr_idle@next_spawn %=create_squad(labx9_a2_burer_3_squad:labx9_a2) =create_squad(labx9_a2_burer_4_squad:labx9_a2)%

[sr_idle@next_spawn]
on_game_timer = 30 | sr_idle@wait_spawn %=create_squad(labx9_a2_burer_5_squad:labx9_a2) =create_squad(labx9_a2_burer_6_squad:labx9_a2)%

[sr_idle@wait_spawn]
on_info  = {+laba_x9_a2_sr_attack} sr_idle@spawn_again %=create_squad(labx9_a2_tushkano_1_squad:labx9_a2)%

[sr_idle@spawn_again]
on_game_timer = 20 | sr_idle@spawn_polter %=create_squad(labx9_a2_tushkano_2_squad:labx9_a2)%

[sr_idle@spawn_polter]
on_info = {!actor_in_zone(laba_x9_a2_sr_attack)} sr_idle@spawn_flame %=create_squad(labx9_a3_snork_squad:labx9_a3)%

[sr_idle@spawn_flame]
on_info = {=actor_pos_z_ge( 18 )} sr_idle@spawn_tonnel %=create_squad(labx9_a3_control_3_squad:labx9_a3) =create_squad(labx9_a2_polter_flame_squad:labx9_a2) =play_sound_actor(horor_3)%

[sr_idle@spawn_tonnel]
on_info = {=actor_pos_y_le( 30:negative )} sr_idle@next_spawn_tonnel %+labx9_a3_snork_attack =create_squad(labx9_a3_control_1_squad:labx9_a3)%

[sr_idle@next_spawn_tonnel]
on_info = {=actor_pos_y_le( 37:negative )} sr_idle@spawn_contr %=create_squad(labx9_a3_control_4_squad:labx9_a3) =create_squad(labx9_a3_control_2_squad:labx9_a3) +labx9_a3_contr_attack%

[sr_idle@spawn_contr]
on_game_timer = 20 | sr_idle@next_spawn_contr %=create_squad(labx9_a3_control_5_squad:labx9_a3) =create_squad(labx9_a3_control_6_squad:labx9_a3)%

[sr_idle@next_spawn_contr]
on_game_timer = 20 | sr_idle@spawn_tush_1 %=create_squad(labx9_a3_control_7_squad:labx9_a3) =create_squad(labx9_a3_control_8_squad:labx9_a3)%

[sr_idle@spawn_tush_1]
on_game_timer = 20 | sr_idle@spawn_tush_2 %=create_squad(labx9_a3_tushkano_1_squad:labx9_a3) =create_squad(labx9_a4_build_1_squad:labx9_a4)%

[sr_idle@spawn_tush_2]
on_game_timer = 30 | sr_idle@wait_add_spawn %=create_squad(labx9_a3_tushkano_2_squad:labx9_a3) =create_squad(labx9_a4_build_2_squad:labx9_a4)%

[sr_idle@wait_add_spawn]
on_game_timer = 10 | sr_idle@nil %=create_squad(labx9_a4_build_3_squad:labx9_a4) =create_squad(labx9_a4_build_4_squad:labx9_a4)%

[sr_idle@nil]
