[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info = {=actor_on_level(l10_radar) !black_screen +laba_treasure_done} sr_idle@quest_control_1 %+actor_first_arrived_radar +stop_radar_teleport%

[sr_idle@quest_control_1]
on_game_timer = 20 | sr_idle@quest_control_2 %=give_task( radar_enot_qwest ) =create_squad(radar_a6_kiborg_squad:radar_a6) =create_squad(radar_a7_kiborg_squad:radar_a7)%

[sr_idle@quest_control_2]
on_info  = {+radar_assault_dialog_yes} sr_idle@quest_control_3 %=disable_ui%
on_info2 = {+radar_assault_dialog_no}  sr_idle@quest_control_12 %+talk_with_night_stalker%

[sr_idle@quest_control_3]
on_game_timer = 20 | sr_idle@quest_control_4 %=run_postprocess(black:3009:true) =teleport_actor(radar_a7_actor_1_walk:radar_a7_actor_1_look)%

[sr_idle@quest_control_4]
on_game_timer = 20 | sr_idle@quest_control_5 %=stop_postprocess(3009) +start_degtyr_radar_assault%

[sr_idle@quest_control_5]
on_info = {+radar_assault_point_one} sr_idle@quest_control_6 %=run_postprocess(blink) =teleport_actor(radar_a7_actor_2_walk:radar_a7_actor_2_look)%

[sr_idle@quest_control_6]
on_info = {+radar_assault_point_two} sr_idle@quest_control_7

[sr_idle@quest_control_7]
on_game_timer = 30 | sr_idle@quest_control_8 %=run_postprocess(blink) =teleport_actor(radar_a7_actor_1_walk:radar_a7_actor_1_look)%

[sr_idle@quest_control_8]
on_game_timer = 20 | sr_idle@quest_control_9 %=enable_ui +radar_psy_antenna_off%

[sr_idle@quest_control_9]
on_game_timer = 20 | sr_idle@quest_control_10 %=remove_squad(radar_a5_degtyrev_squad)%

[sr_idle@quest_control_10]
on_info = {+radar_a7_kiborg_squad_dead +radar_a6_kiborg_squad_dead} sr_idle@quest_control_11 %+radar_territory_clear -level_surge_stop%

[sr_idle@quest_control_11]
on_info  = {+enot_flash_limansk_1_dialog_end} sr_idle@quest_control_14 %=create_squad(radar_a7_degtyrev_squad:radar_a7)%
on_info2 = {+radar_assault_bad_complite} sr_idle@quest_control_12 %+talk_with_night_stalker%

[sr_idle@quest_control_12]
on_info  = {+oss_flash_limansk_dialog_yes} sr_idle@quest_control_13 %=create_squad(radar_a4_contr_squad:radar_a4) =create_squad(radar_a4_squad_psy_dog:radar_a4)%
on_info2 = {+enot_flash_limansk_1_dialog_end} sr_idle@quest_control_14 %=create_squad(radar_a7_degtyrev_squad:radar_a7) +radar_assault_dialog_yes +radar_psy_antenna_off%

[sr_idle@quest_control_13]
on_info = {+radar_a4_contr_squad_dead +radar_a4_squad_psy_dog_dead} sr_idle@quest_control_14 %+radar_a4_monsters_clear%

[sr_idle@quest_control_14]
on_info  = {+bar_forest_road_to_abyss_dialog_no} sr_idle@nil
on_info2 = {+rad_mod_1_has_been_opened -rad_module_1_boom} sr_bomb_timer@one
on_info3 = {+rad_mod_2_has_been_opened -rad_module_2_boom} sr_bomb_timer@two
on_info4 = {+rad_mod_3_has_been_opened -rad_module_3_boom} sr_bomb_timer@three
on_info5 = {+rad_module_1_boom +rad_module_2_boom +rad_module_3_boom} sr_idle@quest_control_18

[sr_bomb_timer@one]
type = dec
string = "До взрыва осталось"
start_value = 20000
on_value = 0 | sr_idle@quest_control_15
on_info  = {-play_sound_in_my_head_26} %+play_sound_in_my_head_26 =actor_is_thinking_only(thoughts_in_my_head_26)%

[sr_bomb_timer@two]
type = dec
string = "До взрыва осталось"
start_value = 20000
on_value = 0 | sr_idle@quest_control_16
on_info  = {-play_sound_in_my_head_26} %+play_sound_in_my_head_26 =actor_is_thinking_only(thoughts_in_my_head_26)%

[sr_bomb_timer@three]
type = dec
string = "До взрыва осталось"
start_value = 20000
on_value = 0 | sr_idle@quest_control_17
on_info  = {-play_sound_in_my_head_26} %+play_sound_in_my_head_26 =actor_is_thinking_only(thoughts_in_my_head_26)%

[sr_idle@quest_control_15]
on_info  = {=actor_has_bomb(1)} sr_idle@actor_has_bomb
on_info2 = {+actor_has_not_bomb} sr_idle@quest_control_14 %-actor_has_not_bomb +rad_module_1_boom =bomb_explode(expl_module_1) =remove_npc(radar_module_1)%

[sr_idle@quest_control_16]
on_info  = {=actor_has_bomb(2)} sr_idle@actor_has_bomb
on_info2 = {+actor_has_not_bomb} sr_idle@quest_control_14 %-actor_has_not_bomb +rad_module_2_boom =bomb_explode(expl_module_2) =remove_npc(radar_module_2)%

[sr_idle@quest_control_17]
on_info  = {=actor_has_bomb(3)} sr_idle@actor_has_bomb
on_info2 = {+actor_has_not_bomb} sr_idle@quest_control_14 %-actor_has_not_bomb +rad_module_3_boom =bomb_explode(expl_module_3) =remove_npc(radar_module_3)%

[sr_idle@actor_has_bomb]
on_game_timer = 20 | sr_idle@spawn_bomb %=disable_ui_only =add_cs_text(actor_has_bomb) =spawn_actor_rukzak_bomb%

[sr_idle@spawn_bomb]
on_game_timer = 40 | sr_idle@nil %=enable_ui =del_cs_text =bomb_explode(actor_rukzak_bomb) =kill_actor%

[sr_idle@quest_control_18]
on_info  = {=actor_has_items(block_tracking_abt7:plata_nvs2:ibp_05k:plata_krgm:program_block_pb44:gpsf_block:control_block_cb55)} sr_idle@quest_control_20 %+all_fores_tools_done +all_achievement_fores_tools%
on_info2 = {!actor_has_items(block_tracking_abt7:plata_nvs2:ibp_05k:plata_krgm:program_block_pb44:gpsf_block:control_block_cb55)} sr_idle@quest_control_19 %=create_squad(jup_a14_lena_squad:jup_a14)%

[sr_idle@quest_control_19]
on_info = {=squad_exist(jup_a14_lena_squad)} sr_idle@quest_control_20 %+radar_actor_must_go_lena%

[sr_idle@quest_control_20]
on_info  = {=actor_has_another_components} sr_idle@nil %=give_task( tim_componenet_task ) +actor_has_tim_components%
on_info2 = {!actor_has_another_components} sr_idle@nil

[sr_idle@nil]
