SetActivLeaf("prichal_turmy");
Spirit_Particles()
Back={
0,538,
1024,538,
1024,768,
0,768
}

Gulf={
508,412,
1021,412,
1021,608,
508,608
}

To_Gate={
214,70,
370,70,
370,165,
214,165
}

Path={
601,203,
922,103,
922,300,
601,300
}

Branch={
451,45,
671,45,
671,165,
451,165
}

Med_pol={
268,452,
348,452,
348,500,
268,500
}

AddObjForCur()
addstaticobjecttogame(112,"prichal_turmy_ef",0,0,"",0,864,1024,158);
MoveTexture(112,0.00009,0.0)
speciale_action(10,112)
addstaticobjecttogame(111,"tuman",0,434,"");
MoveTexture(111,0.0001,0.0)
speciale_action(10,111)


CreatePolygon(8,4,"To_Gate")


addactivobjecttogame(320,"prichal_turmy_ef",0,474,"","",0,0,0,0,1011,294);
addstaticobjecttogame(321,"prichal_turmy_ef",0,200,"",0,294,1024,568)
speciale_action(2,320)
speciale_action(2,321)

addactivobjecttogame(1,"prichal_turmy_all",574,104,"","",0,0,549,0,59,50); --провод

addstaticobjecttogame(2,"prichal_turmy_all",450,313,"",93,0,193,128); --ветка на земле
speciale_action(2,2);
addactivobjecttogame(3,"prichal_turmy_all",567,93 ,"","",0,0,367,0,182,98); --ветка на дереве
CreatePolygon(3,4,"Branch")


addactivobjecttogame(4,"prichal_turmy_all",87 ,298,"","",0,0,0,0,93,120); --оконная рама
set_pixel_check(4,false);


addstaticobjecttogame(6,"prichal_turmy_all",99 ,295,"",286,0,81,64); --пила

CreatePolygon(9,4,"Path")


CreatePolygon(10,4,"Gulf")

addstaticobjecttogame(7,"prichal_turmy6",0  ,0  ,""); --бг

    

    
Block_Show_Cur(false);

addfade(501,0);


if flags.is_spirit and not flags.first_duh_entert then
    speciale_action(2,321)
    speciale_action(2,320)
    SetAlfa(321,1,0.6,2)
    alfa320="down"
end;



if flags.derevo2 then
  speciale_action(2,1);
  speciale_action(2,2);
  speciale_action(2,3);
end;



if flags.krugka_water then
  StopEmiter("water_kкugka");
  speciale_action(2,10);      
end;



if flags.rama_steklo then
 ActivateObject(4,false)
  speciale_action(2,6);
  StopEmiter("rama");
end;

if flags.is_spirit then
  flags.is_spirit_main = true;
end;