[logic]
active = sr_idle@zone

[sr_idle@zone]
on_info = {=actor_in_zone(sv_a40_ghost_tonnel_fire_door_1_sr) =zat_b7_is_night +a1_kramer_break_dialog_7} sr_idle@time

[sr_idle@time]
on_game_timer = 45 | {!actor_in_zone(sv_a40_ghost_tonnel_mason_sr) =dist_to_actor_le(30)} %=start_secret_zone =create_squad(a40_ghost_mason_squad:a40_sv_terrain)% sr_idle@time2

[sr_idle@time2]
on_game_timer = 5 | %=stop_secret_zone% sr_idle@back

[sr_idle@back]
on_info = {!zat_b7_is_night =dist_to_actor_le(30)} %=clear_smart_terrain(a40_sv_terrain) =start_secret_zone% sr_idle@time3
on_info2 = {!zat_b7_is_night =dist_to_actor_ge(30)} %=clear_smart_terrain(a40_sv_terrain)% sr_idle@zone
on_info3 = {+a40_start_ghost_dialog -a50_all_break_dialog_3} sr_idle@dialog
on_info4 = {+a40_start_ghost_dialog_end} sr_idle@dialog_end

[sr_idle@dialog_end]
on_info = {+a40_ghost_break_dialog_2} %=clear_smart_terrain(a40_sv_terrain) =clear_smart_terrain(a10_sv_terrain) =start_secret_zone =disable_ui =teleport_actor(a10_sv_terrain_teleport_actor_after_dialog_ghost_walk:a10_sv_terrain_teleport_actor_after_dialog_ghost_look)% sr_idle@time8

[sr_idle@time8]
on_game_timer = 5 | %=stop_secret_zone =create_squad(stalker_grif_dikobraz_squad:a10_sv_terrain)% sr_idle@enable

[sr_idle@enable]
on_info = {+grif_enable_dialog_info} %=enable_ui =zero_hud_effect% sr_idle@comeback

[sr_idle@comeback]
on_info = {+a10_grif_break_dialog_14} %=comeback_hud_effect% sr_idle@nil

[sr_idle@time3]
on_game_timer = 5 | %=stop_secret_zone% sr_idle@zone

[sr_idle@dialog]
on_info = {+a40_ghost_break_dialog_1} %=clear_smart_terrain(a40_sv_terrain) =start_secret_zone =disable_ui% sr_idle@time4

[sr_idle@time4]
on_game_timer = 10 | %=stop_secret_zone =run_postprocess(black:3009:true) =set_game_time(08:00) =teleport_actor(a40_sv_actor_see_way_soul_walk:a40_sv_actor_see_way_soul_look) =disable_ui =play_sound(see_future_soul_way)% sr_idle@time5

[sr_idle@time5]
on_game_timer = 30 | %=stop_postprocess(3009) =set_weather(map:true) =narkoman_start_one_ppe_effector% sr_idle@time6

[sr_idle@time6]
on_game_timer = 20 | %=run_postprocess(black:3010:true) =set_weather(default_clear:true)% sr_idle@time7

[sr_idle@time7]
on_game_timer = 30 | %=teleport_actor(a40_sv_terrain_ghost_tonnel_walk:a40_sv_terrain_ghost_tonnel_look) =stop_postprocess(3010) =narkoman_stop_one_ppe_effector% sr_cutscene@wake_up

[sr_cutscene@wake_up]
point = a40_sv_terrain_ghost_tonnel_walk
look = a40_sv_terrain_ghost_tonnel_look
cam_effector = scenario_cam\Jupiter\jup_b15_wake_up
global_cameffect = false
on_signal = cameff_end | %=enable_ui =remove_squad(b100_stalker_otshelnik_squad) =give_task(ghost_search_black_soul_tm)% sr_idle@info

[sr_idle@info]
on_info = {+a50_all_break_dialog_3 =actor_has_item(black_soul_nechto)} sr_idle@zone

[sr_idle@nil]