Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FFA_CLOSEHOUSE=["Land_HouseV_1I1","Land_HouseV_1I2","Land_HouseV_2L","Land_HouseV_3I3","Land_HouseV_3I1","Land_HouseV_3I4","Land_HouseV_3I2","Land_HouseV_1L1",
- "Land_houseV_2T1","Land_houseV_2T2","Land_HouseV_1T","Land_HouseV_2I","Land_HouseV_1I4","Land_HouseV_1I3","Land_HouseV_1L2","Land_HouseV2_03B","Land_HouseV2_03",
- "Land_HouseV2_01A","Land_HouseV2_01B","Land_HouseV2_02_Interier","Land_HouseV2_04_interier","Land_HouseV2_05","Land_SS_hangar","Land_A_Office02","Land_A_Hospital",
- "Land_Ind_Workshop01_03"/* ,"Land_Misc_Cargo1B","Land_Misc_Cargo1C","Land_Misc_Cargo1D","Land_Misc_Cargo1A" */
- ,/* "Land_Ind_TankBig", */"Land_Ind_Pec_03b","Land_Ind_Pec_03a","Land_Ind_Pec_02"/*,"Land_Misc_PowerStation" ,"Land_Church_02","Land_Church_02a","Land_Church_01" */,"Land_Ind_SawMill"/* ,"Land_Mil_Barracks","Land_Mil_Barracks_L",
- "Land_Mil_House","Land_Mil_Guardhouse","Land_Misc_deerstand" */];
- /* fnc_bridgeA2 = {
- private ["_start","_obj"];
- _start = createVehicle [_this select 2,_this select 0,[],0,"CAN_COLLIDE"];
- _start setVectorUp [0,0,1];
- _start setDir (_this select 1);
- _start setPosATL (_this select 0);
- for "_i" from 1 to (_this select 3) do {
- _obj = createVehicle [_this select 2,_this select 0,[],0,"CAN_COLLIDE"];
- _obj attachTo [_start, [_i*(_this select 4),_i*(_this select 5),_i*(_this select 6)]];
- }; */
- };
- if (isServer) then
- {
- if (worldName == "chernarus") then
- {
- _box1=[["Land_HouseV_1I1","Land_HouseV_1I2"],["Land_smd_budova3_open"]];
- _box2=[["Land_HouseV_3I3","Land_HouseV_3I1","Land_HouseV_3I4","Land_HouseV_3I2","Land_HouseV_1L1"],["Land_cihlovej_dum_in","Land_bouda2_vnitrek" ,"Land_hruzdum","Land_smd_cihlovej_dum_mini"]];
- _box3=[["Land_houseV_2T1","Land_houseV_2T2"],["land_mbg_brickhouse_01","land_mbg_brickhouse_03","Land_sara_domek_zluty"]];
- _box4=[["Land_HouseV_1T"],["Land_smd_hospoda_mesto"]];
- _box5=[["Land_HouseV_2I","Land_HouseV_1I4","Land_HouseV_1I3","Land_HouseV_1I4","Land_HouseV_2L","Land_HouseV_1L2"],["Land_dum_mesto2"]];
- _box6=[["Land_HouseV2_03B","Land_HouseV2_01A","Land_HouseV2_01B"],["Land_dum_mesto_in","Land_MBG_GER_PUB_2","Land_MBG_GER_PUB_1","MAP_AFbarabizna"]];
- _box7=[["Land_HouseV2_03"],["Land_MBG_ATC_Base"]];
- _box8=[["Land_HouseV2_02_Interier","Land_HouseV2_04_interier","Land_HouseV2_05"],["Land_MBG_GER_HUS_1","Land_MBG_GER_HUS_2","Land_MBG_GER_HUS_3","Land_MBG_GER_HUS_4"]];
- _box9=[["Land_A_Hospital","Land_A_Office02"/* ,"Land_Ind_Pec_03b" */],["Land_mbg_companybuilding_1"]];
- _box10=[["Land_SS_hangar"],["Land_smd_ss_hangar_withdoor"]];
- //_box11=[["Land_Shed_W4"],["MAP_Ind_Workshop01_01"]];
- _box14=[["Land_Ind_Workshop01_03"],["Land_Ind_Workshop01_04"]];
- //_box15=[["Land_Misc_Cargo1B","Land_Misc_Cargo1C","Land_Misc_Cargo1D","Land_Misc_Cargo1A"],["Land_Misc_Cargo1Bo","Land_Misc_Cargo1Ao"]];
- _box16=[[ "Land_Ind_Pec_03b","Land_Ind_Pec_02","Land_Ind_Pec_03a"],["Land_mbg_companybuilding_1"]];
- //_box17=[["Land_Ind_TankBig"],["dum_zboreny"]];
- //_box18=[["Land_Misc_PowerStation"],["Land_MBG_GER_RHUS_2","Land_MBG_GER_RHUS_5"]];
- //_box19=[["Land_Church_02","Land_Church_02a","Land_Church_01"],["Land_Church_03"]];
- _box20=[["Land_Ind_SawMill"],["Land_tovarna1"]];
- //_box21=[["Land_Mil_Barracks","Land_Mil_Barracks_L"],["Land_Mil_Barracks_i"]];
- //_box22=[["Land_Mil_Guardhouse","Land_Misc_deerstand"],["Land_mbg_observation_tower"]];
- //_box23=[["Land_Mil_House"],["Land_smd_garaz_bez_tanku"]];
- _FFA_LHOUSEV=[];
- _FFA_HOUSES=[];
- _FFA_LHOUSEV=nearestObjects [getArray(configFile >> "CfgWorlds" >> worldName >> "centerPosition"),["house"],15000];
- for "_i" from 0 to (count _FFA_LHOUSEV)-1 do
- {
- _housev=_FFA_LHOUSEV select _i;
- if ((typeof _housev) in FFA_CLOSEHOUSE) then
- {
- _FFA_HOUSES set [count _FFA_HOUSES,_housev];
- };
- };
- for "_i" from 0 to (count _FFA_HOUSES)-1 do
- {
- _nBuilding =_FFA_HOUSES select _i;
- _dirVector = vectorDir _nBuilding;
- _objVector = vectorUp _nBuilding;
- _pos = ASLtoATL getPosASL _nBuilding;
- call {
- if ((typeof _nBuilding) =="Land_Ind_Pec_03a") exitwith { _pos set [0,(_pos select 0)-2]; _pos set [1,(_pos select 1)-4];};
- if ((typeof _nBuilding) =="Land_Ind_Pec_02") exitwith { _pos set [0,(_pos select 0)-7];};
- //if ((typeof _nBuilding) =="Land_Church_02") exitwith { _pos set [0,(_pos select 0)+5];};
- //if ((typeof _nBuilding) =="Land_Church_01") exitwith { _pos set [0,(_pos select 0)+5]; _pos set [1,(_pos select 1)+2]; };
- };
- _pos set [2,0];
- _nBuilding hideObject true;
- _type="";
- call{
- if ((typeof _nBuilding) in (_box1 select 0)) exitwith {_type=(_box1 select 1) select (floor random (count (_box1 select 1)));};
- if ((typeof _nBuilding) in (_box2 select 0)) exitwith {_type=(_box2 select 1) select (floor random (count (_box2 select 1)));};
- if ((typeof _nBuilding) in (_box3 select 0)) exitwith {_type=(_box3 select 1) select (floor random (count (_box3 select 1)));};
- if ((typeof _nBuilding) in (_box4 select 0)) exitwith {_type=(_box4 select 1) select (floor random (count (_box4 select 1)));};
- if ((typeof _nBuilding) in (_box5 select 0)) exitwith {_type=(_box5 select 1) select (floor random (count (_box5 select 1)));};
- if ((typeof _nBuilding) in (_box6 select 0)) exitwith {_type=(_box6 select 1) select (floor random (count (_box6 select 1)));};
- if ((typeof _nBuilding) in (_box7 select 0)) exitwith {_type=(_box7 select 1) select (floor random (count (_box7 select 1)));};
- if ((typeof _nBuilding) in (_box8 select 0)) exitwith {_type=(_box8 select 1) select (floor random (count (_box8 select 1)));};
- if ((typeof _nBuilding) in (_box9 select 0)) exitwith {_type=(_box9 select 1) select (floor random (count (_box9 select 1)));};
- if ((typeof _nBuilding) in (_box10 select 0)) exitwith {_type=(_box10 select 1) select (floor random (count (_box10 select 1)));};
- //if ((typeof _nBuilding) in (_box11 select 0)) exitwith {_type=(_box11 select 1) select (floor random (count (_box11 select 1)));};
- if ((typeof _nBuilding) in (_box14 select 0)) exitwith {_type=(_box14 select 1) select (floor random (count (_box14 select 1)));};
- //if ((typeof _nBuilding) in (_box15 select 0)) exitwith {_type=(_box15 select 1) select (floor random (count (_box15 select 1)));};
- if ((typeof _nBuilding) in (_box16 select 0)) exitwith {_type=(_box16 select 1) select (floor random (count (_box16 select 1)));};
- //if ((typeof _nBuilding) in (_box17 select 0)) exitwith {_type=(_box17 select 1) select (floor random (count (_box17 select 1)));};
- //if ((typeof _nBuilding) in (_box18 select 0)) exitwith {_type=(_box18 select 1) select (floor random (count (_box18 select 1)));};
- //if ((typeof _nBuilding) in (_box19 select 0)) exitwith {_type=(_box19 select 1) select (floor random (count (_box19 select 1)));};
- if ((typeof _nBuilding) in (_box20 select 0)) exitwith {_type=(_box20 select 1) select (floor random (count (_box20 select 1)));};
- //if ((typeof _nBuilding) in (_box21 select 0)) exitwith {_type=(_box21 select 1) select (floor random (count (_box21 select 1)));};
- //if ((typeof _nBuilding) in (_box22 select 0)) exitwith {_type=(_box22 select 1) select (floor random (count (_box22 select 1)));};
- //if ((typeof _nBuilding) in (_box23 select 0)) exitwith {_type=(_box23 select 1) select (floor random (count (_box23 select 1)));};
- };
- _house = createVehicle [_type, _pos, [], 0, "CAN_COLLIDE"];
- _house setdir (getdir _nBuilding);
- call {
- if ( (((typeof _house) in (_box9 select 1)) && ((typeof _nBuilding) in (_box9 select 0)))) exitwith {_house setdir ((getdir _nBuilding)+90);};
- //if ((typeof _house) in (_box22 select 1)) exitwith {_house setdir ((getdir _nBuilding)-90);};
- };
- };
- /* [[13640.5,3862.64,-1], 105,"Land_nav_pier_m_2",17,40,0,0] call fnc_bridgeA2;
- [[4638.26,2564.16,0.00143909],120,"MAP_runway_main_40",17,0,40,0] call fnc_bridgeA2;
- [[4649.19,2515.24,0.00143909],120,"MAP_runway_poj_draha",16,0,40,0] call fnc_bridgeA2;
- [[11812.4,12838.6,0.00143433],110,"MAP_runway_main_40",18,0,40,0] call fnc_bridgeA2;
- [[11814.2,12799.4,0.00143433],110,"MAP_runway_poj_draha",17,0,40,0] call fnc_bridgeA2; */
- //[[12938.8,3690.2,0.00156188],120,"Land_Ind_Expedice_2",16,3.5,30.65,0] call fnc_bridgeA2;
- };
- };
- if(!isServer || local player)then
- {
- waitUntil{(player==player)};
- waitUntil{alive player};
- waitUntil{local player};
- if (worldName == "chernarus") then
- {
- _FFA_CHOUSEV=[];
- _FFA_CHOUSEV=nearestObjects [getArray(configFile >> "CfgWorlds" >> worldName >> "centerPosition"),["house"],15000];
- for "_i" from 0 to (count _FFA_CHOUSEV)-1 do
- {
- _housev=_FFA_CHOUSEV select _i;
- if ((typeof _housev) in FFA_CLOSEHOUSE) then
- {
- _housev hideObject true;
- };
- };
- /* [[13640.5,3862.64,-1], 105,"Land_nav_pier_m_2",17,40,0,0] call fnc_bridgeA2;
- [[4638.26,2564.16,0.00143909],120,"MAP_runway_main_40",17,0,40,0] call fnc_bridgeA2;
- [[4649.19,2515.24,0.00143909],120,"MAP_runway_poj_draha",16,0,40,0] call fnc_bridgeA2;
- [[11812.4,12838.6,0.00143433],110,"MAP_runway_main_40",18,0,40,0] call fnc_bridgeA2;
- [[11814.2,12799.4,0.00143433],110,"MAP_runway_poj_draha",17,0,40,0] call fnc_bridgeA2; */
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement