
flags.load_police = true;

SetActivLeaf("police");
Spirit_Particles()
AddObjForCur()
exit_police={
0,628,
1024,628,
1024,768,
0,768
}

hidden={
223,377,
670,394,
670,470,
217,489
}

cabinet={
543,173,
650,173,
650,295,
538,295
}

flower_pot={
386,280,
453,280,
453,344,
386,344
}

vent={
676,87,
773,87,
773,136,
676,136
}
statue={
0,0,
1,0,
0,1,
0,1
}

grating={
817,410,
1022,410,
1022,656,
817,656
}

--NewObj("kislot","police55",5000,5000,"19");


---------нужен полигон------
--addactivobjecttogame(54,"police54",212,544,"",""); --выход

CreatePolygon(54,4,"exit_police");


CreatePolygon(106,4,"statue");
addstaticobjecttogame(7 ,"police_big",2,498,"",0,0,198,134); --открытый кейс
speciale_action(2,7);
addactivobjecttogame(8 ,"police_big",0  ,500,"","",0,0,198,0,200,181); --кейс

addstaticobjecttogame(9 ,"police_big",62 ,318,"",877,139,100,50); --колба1
speciale_action(2,9);
addactivobjecttogame(10,"police_big",10 ,227,"","",0,0,877,0,70,139); --колба2----------------------------------------------------------------
set_pixel_check(10,false);
addstaticobjecttogame(12,"police_big",0  ,245,"",743,0,69,133); --статуй2
addstaticobjecttogame(14,"police_big",0  ,361,"",977,0,30,108); --провода
addstaticobjecttogame(15,"police_big",0  ,361,"",947,0,30,110); --провода перерез
speciale_action(2,15);
addstaticobjecttogame(18,"police_big",685,25 ,"",398,0,177,597); --прут1
speciale_action(2,18);
addstaticobjecttogame(20,"police_big",852,25 ,"",867,0,10,597); --прут
addstaticobjecttogame(26,"police_big",940,471,"",659,0,84,138); --канистра с бензином 2-----------------------------------------------------------------

rewetka=false
if flags.hidden_rubka then
    
    if not flags.vaza then
      CreatePolygon(23,4,"flower_pot");
    end;        

    if not flags.kanistra and flags.ugon_auto then
      CreatePolygon(26,4,"grating");
      ActivateObject(26,true)
    end;

    if flags.kanistra then
    if not rewetka then
        rewetka=true
        WriteToConsole("pomenyali 1 \n")
      speciale_action(2,18);
      speciale_action(2,20);
    end;  
      speciale_action(2,26);

    end;    
end;
------нужен полигон------
CreatePolygon(36,4,"hidden");
-----------------

addstaticobjecttogame(42,"police_big",694,129,"",977,139,18,5); --пластик карточка1

----нужен полигон------
CreatePolygon(44,4,"vent");
-------------------

addstaticobjecttogame(51,"police_big",541,171,"",812,0,55,123); --открытый шкаф
speciale_action(2,51);

---------нужен полигон--------
CreatePolygon(52,4,"cabinet");

---------------
addstaticobjecttogame(53,"police15",0  ,0  ,""); --фон

Block_Show_Cur(false);

addfade(501,0);

colba=false

wkaf=false
keisik=false


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

if flags.colba_openM then
  colba=true;
  speciale_action(2,9);
  speciale_action(2,10);    
  ActivateObject(12,true);
end;

if flags.rew_raspilM then
if not rewetka then
    rewetka=true;
    WriteToConsole("pomenyali 2 \n")
    speciale_action(2,18);
    speciale_action(2,20);      
end;    
end;

if flags.shkaf_pol_openM then
  wkaf=true;
    flags.shkaf_pol_openM=true
    speciale_action(2,51);    
    speciale_action(10,51);      
end;

if flags.case_police then 
  keisik=true;
  speciale_action(2,6);
  speciale_action(2,7);
  speciale_action(2,8);
end;

if flags.game_sud_complM then
  if not keisik then
      keisik=true;
      speciale_action(2,6);
      speciale_action(2,7);
      speciale_action(2,8);
      ActivateObject(7,true);
  end;
end;

if flags.shkaf_police then
if not wkaf then
  wkaf=true;
  speciale_action(2,51);
  speciale_action(10,51);    
end;  
  ActivateObject(52,false);
end;

if flags.ventil then
  flags.help_plastik = true;
  speciale_action(2,42);
  ActivateObject(44,false);

end;

if flags.kolba then
    if not colba then
      speciale_action(2,9);
      speciale_action(2,10);
    end;  
  speciale_action(2,11);
  speciale_action(2,12);
  speciale_action(2,13);
  speciale_action(2,14);
  speciale_action(2,15);

end;


if flags.hidden_stol_police_two then
  ActivateObject(36,false);

end;