[logic]
active = sr_idle@spawn

[sr_idle@spawn]
on_info = {+a40_ghost_break_dialog_1 -stalker_rip_greh_death} %=create_squad(stalker_rip_greh_squad:a50_sv_terrain)% sr_idle@info
on_info2 = {+a40_ghost_break_dialog_1 +stalker_rip_greh_death} sr_idle@zone

[sr_idle@info]
on_info = {+stalker_rip_greh_death} sr_idle@zone
on_info2 = {+a50_all_break_dialog_1} sr_idle@spawn_zmey

[sr_idle@zone]
on_info = {=actor_in_zone(sv_a50_rip_black_man_sr)} sr_idle@tutorial %=run_tutorial(sv_rip_black_stalker_craft)%
on_info2 = %=play_sound(signal_part_black_soul)%
on_info3 = {+sv_rip_black_stalker_craft} %=spawn_object_in(black_soul_nechto:actor)% sr_idle@spawn_zmey

[sr_idle@tutorial]
on_info = {!actor_in_zone(sv_a50_rip_black_man_sr)} sr_idle@zone %=stop_tutorial%
on_info2 = {+sv_rip_black_stalker_craft} %=spawn_object_in(black_soul_nechto:actor) =stop_tutorial% sr_idle@spawn_zmey

[sr_idle@spawn_zmey]
on_info = %=create_squad(stalker_neutral_zmey_squad:a50_sv_terrain)% sr_idle@spawn_kramer

[sr_idle@spawn_kramer]
on_info = {+a50_all_break_dialog_2} %=create_squad(kramer_boss_killer_squad:a50_sv_terrain)% sr_idle@black

[sr_idle@black]
on_info = {+a50_all_break_dialog_3} %=disable_ui =remove_squad(stalker_rip_greh_squad) =remove_squad(stalker_neutral_zmey_squad) =remove_squad(kramer_boss_killer_squad) =run_postprocess(black:3009:true) =play_sound(fire_for_black_soul)% sr_idle@time

[sr_idle@time]
on_signal = sound_end | %=stop_postprocess(3009) =spawn_corpse(stalker_neutral_zmey:a50_sv_spawn_zmey_corpse_way) =spawn_corpse(sim_digger_5:a50_sv_spawn_guard_zmey_solder_1_way) =spawn_corpse(sim_digger_6:a50_sv_spawn_guard_zmey_solder_2_way) =teleport_actor(a50_sv_teleport_actor_after_fight_walk:a50_sv_teleport_actor_after_fight_look) =enable_ui% sr_idle@corpse_greh

[sr_idle@corpse_greh]
on_info = {+a50_all_break_dialog_1} %=spawn_corpse(stalker_rip_greh:a50_sv_spawn_greh_corpse_way) +info_greh_have_black_soul =spawn_object_in(black_soul_nechto:stalker_rip_greh)% sr_idle@nil
on_info2 = {-a50_all_break_dialog_1} %+info_greh_not_have_black_soul% sr_idle@nil

[sr_idle@nil]