AddObjForCur()
Spirit_Particles()
flags.load_street = true;

SetActivLeaf("street");
--Block_Show_Cur(false);
To_Part={
0,0,
0,1,
1,1,
1,0
}


To_Mayor={
0,290,
98,290,
98,562,
0,562
}

To_Mooring={
652,372,
784,372,
784,517,
652,517
}

To_Police={
278,447,
337,447,
337,540,
278,540
}

Redaction={
887,373,
968,373,
968,523,
887,523
}
CreatePolygon(16,4,"To_Mayor")

CreatePolygon(17,4,"To_Mooring")
speciale_action(2,17)
CreatePolygon(12,4,"To_Police")

CreatePolygon(387,4,"To_Part")
CreatePolygon(3,4,"Redaction")


addstaticobjecttogame(30 ,"street", 316,463,"",873,610,12,74);
addstaticobjecttogame(32 ,"street", 316,463,"",873+24,610,12,74);
speciale_action(2,32)



addstaticobjecttogame(25 ,"street", 883,0,"",713,0,191,242); --распиленное дерево
SetHotPoint(25,190,121)
addstaticobjecttogame(26 ,"street", -50,45 ,"",511,0,202,303); --распиленное дерево
SetHotPoint(26,0,224)
addstaticobjecttogame(27 ,"street", -50,0  ,"",511,610,260,68); --распиленное дерево
SetHotPoint(27,17,67)

addstaticobjecttogame(6 ,"street" ,450,456,"",511,481,338,129); --распиленное дерево
speciale_action(2,6);
--addactivobjecttogame(23,"street" ,450,210,"","",0,0,0,0,285,337); --упавшее дерево
--speciale_action(2,23);
addactivobjecttogame(9 ,"street" ,450,419,"","",0,0,511,303,336,178); --упавшее дерево
-- speciale_action(2,9);
-- addstaticobjecttogame(10,"street",327,162,"",285,0,226,387); --стоячее дерево
-- SetHotPoint(10,135,385)
-- if not  flags.comics4 then
-- addstaticobjecttogame(80,"street",0 ,425  ,"",771,610,102,189);
-- end;

addstaticobjecttogame(20,"street3",0  ,0  ,""); --фон

addstaticobjecttogame(21 ,"clouds" ,0  ,0  ,"");
MoveTexture(21,-0.00002,0.0)
addstaticobjecttogame(15,"street4",0  ,0  ,""); --фон

addfade(501,0);

if flags.derevo then
  speciale_action(2,6);
  speciale_action(2,9);
  speciale_action(2,17)
end;

if flags.first == 1 and flags.medalyon and not flags.derevo then

  speciale_action(2,9);
  speciale_action(2,10);

else
    speciale_action(2,30,true,1.6)
    speciale_action(2,32,true,1.8)



    add_animation(121)
    add_animation_frame(121,"street21",5000,5000,0,0,34,47,0.1);
    add_animation_frame(121,"street21",5000,5000,34,0,34,47,0.1);
    add_animation_frame(121,"street21",5000,5000,68,0,34,47,0.1);
    add_animation_frame(121,"street21",5000,5000,0,0,34,47,0.1);
    StartAnimation(121)

    add_animation(122)
    add_animation_frame(122,"street22",5000,5000,0,0,25,35,0.1);
    add_animation_frame(122,"street22",5000,5000,25,0,25,35,0.1);
    add_animation_frame(122,"street22",5000,5000,50,0,25,35,0.1);
    add_animation_frame(122,"street22",5000,5000,0,0,25,35,0.1);
    StartAnimation(122)

    flyCrow = {"InstantiationOfLine", 2, -200, 25, 1024, 25, 10, false};
    flySmallCrow = {"InstantiationOfLine", 2, 1024, 45, -200, 45, 10, false};
    StartTravel(121,1,nil,nil,flyCrow);
    StartTimer(1211,25)

    StartTimer(1221,15)
end;


    