[logic]
active = sr_idle@dialog_zone

[sr_idle@dialog_zone]
on_info = {=actor_in_zone(sv_a30_kramer_home_sr) +sv_a22_army_secret_cais} %=teleport_actor(a30_sv_terrain_home_start_dialog_actor_to_kramer:a30_sv_terrain_home_start_dialog_kramer_to_actor) =create_squad(kramer_boss_killer_squad:a30_sv_terrain) =run_postprocess(black:3009:true) =disable_ui% sr_idle@stop_process

[sr_idle@stop_process]
on_game_timer = 20 | %=stop_postprocess(3009) =enable_ui =zero_hud_effect% sr_idle@effect

[sr_idle@effect]
on_info = {+a1_kramer_break_dialog_2} %=comeback_hud_effect =run_postprocess(black:3010:true) =remove_squad(kramer_boss_killer_squad)% sr_idle@go

[sr_idle@go]
on_game_timer = 20 | %=stop_postprocess(3010)% sr_idle@perehod

[sr_idle@perehod]
on_info = {+messeg_kramer_2} %=create_squad(kramer_boss_killer_squad:a30_sv_terrain)% sr_idle@hit_info

[sr_idle@hit_info]
on_info = {+a1_kramer_break_dialog_3} %=disable_ui% sr_idle@hit_black
on_info2 = {+a1_kramer_break_dialog_4} %=disable_ui% sr_idle@hit_black

[sr_idle@hit_black]
on_game_timer = 50 | %=run_postprocess(black:3011:true) +a30_sv_terrain_kramer_night_mission_teleport =create_squad(a30_killer_home_enemy_squad:a30_sv_terrain) =teleport_actor(a30_sv_terrain_before_punch_actor_look_killer:a30_sv_terrain_before_punch_killer_look_actor) =set_game_time(21:30) =relocate_actor_inventory_to_box(sv_a30_secret_box)% sr_idle@hit_stop

[sr_idle@hit_stop]
on_game_timer = 30 | %=stop_postprocess(3011) =enable_ui =zero_hud_effect =remove_item(device_torch) =spawn_object_in(device_torch:sv_a30_secret_box)% sr_cutscene@stop_effects

[sr_cutscene@stop_effects]
point = a30_sv_terrain_before_punch_actor_look_killer
look = a30_sv_terrain_before_punch_killer_look_actor
cam_effector = scenario_cam\Jupiter\jup_b15_wake_up
global_cameffect = false
on_signal = cameff_end | %+a30_start_dialog_before_punch_info% sr_idle@hit_effect

[sr_idle@hit_effect]
on_info = {+a1_killer_break_dialog_1} %=comeback_hud_effect =disable_ui% sr_idle@hit_knife

[sr_idle@hit_knife]
on_info = {+before_dialog_killer_go_guard_walk} %=play_sound(a30_actor_save_myself_knife) =enable_ui =activate_weapon_slot(1)% sr_idle@hit

[sr_idle@hit]
on_info = {+actor_enemy_killer_hit_by_actor} %=set_squad_enemy_to_actor(a30_killer_home_enemy_squad) +a30_actor_stuped_start_fight_with_knife% sr_idle@hit_enemy
on_info2 = {+a1_kramer_break_dialog_5} %=set_squad_enemy_to_actor(a30_killer_home_enemy_squad)% sr_idle@hit_enemy

[sr_idle@hit_enemy]
on_info = %=set_squad_neutral_to_actor(kramer_boss_killer_squad) =set_squads_enemies(kramer_boss_killer_squad:a30_killer_home_enemy_squad) =set_squads_enemies(a30_killer_home_enemy_squad:kramer_boss_killer_squad)%
on_info2 = {=actor_has_item(sv_a30_killer_pda)} %+sv_a30_killer_pda_info%
on_info3 = {+a1_kramer_break_dialog_6} %=remove_npc(a30_killer_home_1_enemy) =remove_npc(a30_killer_home_2_enemy) =remove_npc(a30_killer_home_3_enemy) =spawn_corpse(a30_killer_home_2_enemy:a30_sv_spawn_corpse_killer_1_way) =spawn_corpse(a30_killer_home_3_enemy:a30_sv_spawn_corpse_killer_2_way) =spawn_corpse(a30_killer_home_2_enemy:a30_sv_spawn_corpse_killer_3_way)% sr_idle@hit_teleport

[sr_idle@hit_teleport]
on_info = {+a1_kramer_break_dialog_6} %=run_postprocess(black:3012:true) =teleport_actor(a30_sv_terrain_actor_stay_noweap_see_walk:a30_sv_terrain_secret_man_stay_noweap_way) =disable_ui =create_squad(a30_killer_secret_man_squad:a30_sv_terrain) =set_game_time(07:27)% sr_idle@hit_stop_process

[sr_idle@hit_stop_process]
on_info = {+a30_kramer_zasada_secret_man} %=stop_postprocess(3012) =enable_ui =zero_hud_effect% sr_idle@hit_secret_man

[sr_idle@hit_secret_man]
on_info = {+a1_killer_break_dialog_2} %=disable_ui% sr_idle@hit_dead

[sr_idle@hit_dead]
on_info = {+a30_killer_secret_man_kill} %=enable_ui =spawn_object_in(wpn_sig550_luckygun:a30_killer_secret_man)% sr_idle@die_effect

[sr_idle@die_effect]
on_info = {+a1_kramer_break_dialog_7} %=comeback_hud_effect =run_postprocess(black:3013:true) =remove_squad(kramer_boss_killer_squad)% sr_idle@die_go

[sr_idle@die_go]
on_game_timer = 20 | %=stop_postprocess(3013) =create_squad(b100_stalker_otshelnik_squad:b100_sv_terrain) =remove_squad(stalker_rip_greh_squad) =remove_squad(stalker_rip_istorik_squad) =spawn_object(sv_object_part_artefact_lamp:spawn_object_part_artefact_1_way) =spawn_object(sv_object_part_artefact_teapot:spawn_object_part_artefact_2_way)% sr_idle@nil

[sr_idle@nil]