[logic]
active = ph_idle@boom

[ph_idle@boom]
on_info = {+a10_dolg_mironyk_death +a8_mironyk_stay_dinamite_out_angar -actor_stuped_fall_dolg_mission} ph_idle@time
on_info2 = {=sv_a8_freedom_in_bomb_has} %=destroy_object +destroy_freedom_ammo_box_ph% ph_idle@nil
on_info3 = {+actor_stuped_fall_dolg_mission} ph_idle@nil
on_info4 = {=sv_a8_freedom_bomb_has +freedom_angar_death} ph_idle@time
on_info5 = {+a8_actor_looser_go_out_angar} ph_idle@nil
on_info6 = {+a10_grif_break_dialog_4} ph_idle@start

[ph_idle@time]
on_game_timer = 100 | %=barrel_explode(pri_a25_antenna_grenade) =destroy_object +destroy_freedom_ammo_box_ph% ph_idle@nil

[ph_idle@start]
tips = sv_a8_box_dinamite_placed
on_use = {=actor_has_item(pri_a25_explosive_charge_item)} ph_idle@spawn_explosive_grenade %=remove_item(pri_a25_explosive_charge_item) =spawn_object(pri_a25_explosive_charge:sv_a8_mironyk_dinamite_box_spawn) =play_sound(pri_a25_blow_up_door_peep) =spawn_object(pri_a25_antenna_grenade:sv_a8_mironyk_dinamite_box_spawn)%

[ph_idle@spawn_explosive_grenade]
on_game_timer = 50 | ph_idle@explosion %=barrel_explode(pri_a25_antenna_grenade)%

[ph_idle@explosion]
on_info = ph_idle@nil %=stop_sound(pri_a25_blow_up_door_peep) =destroy_object(story:pri_a25_explosive_charge_id) =destroy_object +destroy_freedom_ammo_box_ph%

[ph_idle@nil]