[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info = {+laba_x5_a6_kiborg_dead} sr_idle@quest_control_1 %=create_squad(x5_a5_kiborg_squad:x5_a5) =set_counter(laba_kiborg_counter:0)%

[sr_idle@quest_control_1]
on_info = {+laba_x5_a6_kiborg_dead} %=inc_counter(laba_kiborg_counter:1) -laba_x5_a6_kiborg_dead =create_squad_member(laba_kiborg_stalker_3:x5_a6_kiborg_squad:x5_a6_kiborg_spawn)%
on_info2 = {=counter_greater(laba_kiborg_counter:10)} sr_idle@quest_control_2 %-laba_x5_a6_kiborg_dead%

[sr_idle@quest_control_2]
on_info = {+x5_a6_kiborg_squad_dead +x5_a5_kiborg_squad_dead} sr_idle@quest_control_3 %=remove_counter(laba_kiborg_counter) =spawn_ids_objects(lab_kontra_case)%

[sr_idle@quest_control_3]
on_game_timer = 30 | sr_idle@quest_control_4 %+laba_start_patrol_dead =create_squad(x5_a4_kiborg_squad:x5_a4)%

[sr_idle@quest_control_4]
on_game_timer = 10 | sr_idle@quest_control_5 %=create_squad(x5_a4_kiborg_1_squad:x5_a4) =create_squad(x5_a2_kiborg_squad:x5_a2)%

[sr_idle@quest_control_5]
on_game_timer = 10 | sr_idle@quest_control_6 %=create_squad(x5_a3_kiborg_squad:x5_a3)%

[sr_idle@quest_control_6]
on_info = {=actor_in_zone(sr_lab_kontra_case)} sr_idle@quest_control_7 %=remove_squads(x5_a5_degtyrev_squad)%

[sr_idle@quest_control_7]
on_info = {=actor_has_item(lab_kontra_case)} sr_idle@quest_control_8 %=create_squad(x5_a2_degtyrev_squad:x5_a2)%

[sr_idle@quest_control_8]
on_game_timer = 30 | sr_idle@quest_control_9 %+actor_has_lab_kontra_case%

[sr_idle@quest_control_9]
on_info  = {+lab_lena_selection_var_one_dialog_end} sr_idle@quest_control_10 %=disable_ui%
on_info2 = {+lab_lena_selection_var_two_dialog_end} sr_idle@quest_control_10 %=disable_ui =actor_is_thinking_only(thoughts_in_my_head_21)%

[sr_idle@quest_control_10]
on_info = {=npc_is_moving(laba_smuggler_lena)} sr_idle@quest_control_11 %=actor_look(actor_pos_laba)%

[sr_idle@quest_control_11]
on_info  = {+laba_point_1_lena +lab_lena_selection_var_two_dialog_end} sr_idle@quest_control_12 %=run_postprocess(black:3009:true) =remove_squad(x5_a2_lena_squad) =remove_squad(x5_a2_degtyrev_squad)%
on_info2 = {+laba_point_1_lena +lab_lena_selection_var_one_dialog_end} sr_idle@quest_control_12 %=run_postprocess(black:3009:true)%

[sr_idle@quest_control_12]
on_game_timer = 20 | sr_idle@quest_control_13 %=stop_postprocess(3009) =enable_ui%

[sr_idle@quest_control_13]
on_info  = {+laba_baza_key_done} sr_idle@quest_control_14 %=disable_ui =run_postprocess(black:3009:true)%
on_info2 = {+lab_lena_selection_var_two_dialog_end} sr_idle@quest_control_22

[sr_idle@quest_control_14]
on_game_timer = 10 | sr_idle@quest_control_15 %=teleport_actor(actor_laba_code_lock_walk:actor_laba_code_lock_look) =create_squad(x5_a3_actor_squad:x5_a3)%

[sr_idle@quest_control_15]
on_game_timer = 20 | sr_idle@quest_control_16 %=enab_actor_torch =stop_postprocess(3009) +actor_laba_see_visual_actor%

[sr_idle@quest_control_16]
on_info = {+actor_laba_visual_stalker_run} sr_idle@quest_control_17 %=remove_squad(x5_a2_lena_squad) =remove_squad(x5_a2_degtyrev_squad)% 

[sr_idle@quest_control_17]
on_game_timer = 30 | {=npc_is_moving(laba_actor_visual_stalker)} sr_idle@quest_control_18 %=actor_look(actor_pos_laba) =forward_game_time(23)%

[sr_idle@quest_control_18]
on_info = {+lab_point_actor} sr_idle@quest_control_19 %=run_postprocess(fade_to_black_9_sec) =remove_squad(x5_a3_actor_squad)%

[sr_idle@quest_control_19]
on_game_timer = 72 | sr_idle@quest_control_20 %=run_postprocess(black:3009:true) =cleaner_weapons =forward_game_time(23) =add_cs_text(st_some_time)%

[sr_idle@quest_control_20]
on_game_timer = 30 | sr_idle@quest_control_21 %=del_cs_text%

[sr_idle@quest_control_21]
on_game_timer = 10 | sr_idle@end %-actor_arrived =teleport_actor(actor_laba_bar_walk:actor_laba_bar_redlim_look)%

[sr_idle@quest_control_22]
on_info  = {+sr_laba_code_tutor_done} sr_idle@quest_control_23 %=disable_ui =run_postprocess(black:3009:true) =restore_actor_health%

[sr_idle@quest_control_23]
on_game_timer = 10 | sr_idle@quest_control_24 %=teleport_actor(actor_laba_explode_walk:actor_laba_explode_look) =create_squad(x5_a3_actor_squad:x5_a3)%

[sr_idle@quest_control_24]
on_game_timer = 40 | sr_particle@teleport %=enab_actor_torch =stop_postprocess(3009) =forward_game_time(23) =spawn_laba_modules%

[sr_particle@teleport]
name = anomaly2\anomaly_teleport
path = maria_arrived_to_laba
mode = 2
looped = true
on_game_timer = 20 | {-maria_arrived_to_laba} %+maria_arrived_to_laba =create_squad_member(laba_amazon_maria:x5_a3_actor_squad:maria_arrived_to_laba)%
on_info  = {+end_laba_anim_maria} sr_idle@quest_control_25 %=explode_laba_modules%
on_info2  = %=restore_actor_health%

[sr_idle@quest_control_25]
on_game_timer = 10 | sr_idle@quest_control_26 %=run_postprocess(black:3009:true) =restore_actor_health =cleaner_weapons%

[sr_idle@quest_control_26]
on_game_timer = 10 | sr_idle@end %-actor_arrived =teleport_actor(actor_laba_redlim_walk:actor_laba_bar_redlim_look)%

[sr_idle@end]
