Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _cfgClasses = configFile >> "CfgVehicles";
- _cfgBuildings = [];
- _counted = 0;
- _total = ((count _cfgClasses) - 1);
- displayMe = "";
- for "_i" from 0 to _total do
- {
- _config = (_cfgClasses select _i);
- if (isClass _config) then {
- if (isClass (_config >> "spawns")) then {
- _addMe = false;
- _cfgSpawns = (_config >> "spawns");
- _countSpawns = ((count _cfgSpawns) - 1);
- for "_ii" from 0 to _countSpawns do
- {
- _configSpawn = (_cfgSpawns select _ii);
- _locationCount = count(getArray(_configSpawn >> "locations"));
- if (_locationCount > 0) then {
- _addMe = true;
- };
- };
- if (_addMe) then {
- _name = configName _config;
- _cfgBuildings set [(count _cfgBuildings),_name];
- };
- };
- };
- if (!isDedicated) then {
- progressLoadingScreen (_i/_total);
- };
- };
- _cfgBuildings = _cfgBuildings - ["HouseBase"];
- _nearby = nearestObjects [DZ_SpawnCenter,_cfgBuildings,2000];
- _last = [];
- {
- _x call building_spawnLoot;
- } forEach _nearby;
- class Land_MH_60Wreck: HouseDefault
- {
- class Spawns: Spawns
- {
- class all_loot
- {
- locations[]=
- {
- {
- "loot_p_Around",
- 3
- }
- };
- items[]=
- {
- {
- "FNX45",
- 0.035
- },
- { "1911",
- 0.035
- },
- {
- "1911_Engraved",
- 0.035
- },
- {
- "M4A1",
- 0.035
- },
- {
- "M_CMAG_10Rnd",
- 0.018999999
- },
- {
- "M_CMAG_10Rnd_Green",
- 0.018999999
- },
- {
- "M_CMAG_20Rnd",
- 0.018999999
- },
- {
- "M_CMAG_20Rnd_Green",
- 0.018999999
- },
- {
- "M_STANAG_30Rnd",
- 0.018999999
- },
- {
- "M_CMAG_30Rnd",
- 0.018999999
- },
- {
- "M_CMAG_30Rnd_Green",
- 0.018999999
- },
- {
- "M_CMAG_40Rnd",
- 0.018999999
- },
- {
- "M_CMAG_40Rnd_Green",
- 0.018999999
- },
- {
- "M_STANAG_30Rnd_Coupled",
- 0.018999999
- },
- {
- "M_FNX45_15Rnd",
- 0.018999999
- },
- {
- "Container_AmmoBox300Rnd",
- 0.018999999
- },
- {
- "Ammo_45FMJ",
- 0.018999999
- },
- {
- "Ammo_45acp_25rnd",
- 0.018999999
- },
- {
- "Ammo_556",
- 0.018999999
- },
- {
- "Ammo_556_20Rnd",
- 0.018999999
- },
- {
- "Attachment_Buttstock_M4OE",
- 0.018999999
- },
- {
- "Attachment_Buttstock_M4MP",
- 0.018999999
- },
- {
- "Attachment_Buttstock_M4MP_Green",
- 0.018999999
- },
- {
- "Attachment_Buttstock_M4CQB",
- 0.018999999
- },
- {
- "Attachment_Buttstock_M4CQB",
- 0.018999999
- },
- {
- "Attachment_Handguard_M4Plastic",
- 0.018999999
- },
- {
- "Attachment_Handguard_M4RIS",
- 0.018999999
- },
- {
- "Attachment_Handguard_M4MP",
- 0.018999999
- },
- {
- "Attachment_Handguard_M4MP_Green",
- 0.018999999
- },
- {
- "Attachment_Optic_M4CarryHandle",
- 0.018999999
- },
- {
- "Attachment_Optic_M4T3NRDS",
- 0.018999999
- },
- {
- "Attachment_Optic_BUIS",
- 0.018999999
- },
- {
- "Attachment_Optic_ACOG",
- 0.018999999
- },
- {
- "Attachment_Optic_M68",
- 0.018999999
- },
- {
- "CombatKnife",
- 0.018999999
- },
- {
- "Attachment_Suppressor_556",
- 0.018999999
- },
- {
- "Tool_WeaponCleaningKit",
- 0.018999999
- },
- {
- "GasMask",
- 0.0088
- },
- {
- "RocketAviators",
- 0.0088
- },
- {
- "Glasses_Designer",
- 0.0088
- },
- {
- "BallisticHelmet_Green",
- 0.0088
- },
- {
- "BallisticHelmet_Black",
- 0.0088
- },
- {
- "BallisticHelmet_UN",
- 0.0088
- },
- {
- "ChestHolster",
- 0.0088
- },
- {
- "MilitaryBeret",
- 0.0088
- },
- {
- "MilitaryBeretUN",
- 0.0088
- }
- };
- };
- class along
- {
- locations[]=
- {
- {
- "loot_p_along",
- 3
- }
- };
- items[]=
- {
- {
- "FNX45",
- 0.035
- },
- {"1911",0.035},
- {
- "1911_Engraved",
- 0.035
- },
- {
- "M4A1",
- 0.035
- },
- {
- "M_CMAG_10Rnd",
- 0.018999999
- },
- {
- "M_CMAG_10Rnd_Green",
- 0.018999999
- },
- {
- "M_CMAG_20Rnd",
- 0.018999999
- },
- {
- "M_CMAG_20Rnd_Green",
- 0.018999999
- },
- {
- "M_STANAG_30Rnd",
- 0.018999999
- },
- {
- "M_CMAG_30Rnd",
- 0.018999999
- },
- {
- "M_CMAG_30Rnd_Green",
- 0.018999999
- },
- {
- "M_CMAG_40Rnd",
- 0.018999999
- },
- {
- "M_CMAG_40Rnd_Green",
- 0.018999999
- },
- {
- "M_STANAG_30Rnd_Coupled",
- 0.018999999
- },
- {
- "M_FNX45_15Rnd",
- 0.018999999
- },
- {
- "Container_AmmoBox300Rnd",
- 0.018999999
- },
- {
- "Ammo_45FMJ",
- 0.018999999
- },
- {
- "Ammo_45acp_25rnd",
- 0.018999999
- },
- {
- "Ammo_556",
- 0.018999999
- },
- {
- "Ammo_556_20Rnd",
- 0.018999999
- },
- {
- "Attachment_Buttstock_M4OE",
- 0.018999999
- },
- {
- "Attachment_Buttstock_M4MP",
- 0.018999999
- },
- {
- "Attachment_Buttstock_M4MP_Green",
- 0.018999999
- },
- {
- "Attachment_Buttstock_M4CQB",
- 0.018999999
- },
- {
- "Attachment_Buttstock_M4CQB",
- 0.018999999
- },
- {
- "Attachment_Handguard_M4Plastic",
- 0.018999999
- },
- {
- "Attachment_Handguard_M4RIS",
- 0.018999999
- },
- {
- "Attachment_Handguard_M4MP",
- 0.018999999
- },
- {
- "Attachment_Handguard_M4MP_Green",
- 0.018999999
- },
- {
- "Attachment_Optic_M4CarryHandle",
- 0.018999999
- },
- {
- "Attachment_Optic_M4T3NRDS",
- 0.018999999
- },
- {
- "Attachment_Optic_BUIS",
- 0.018999999
- },
- {
- "Attachment_Optic_ACOG",
- 0.018999999
- },
- {
- "Attachment_Optic_M68",
- 0.018999999
- },
- {
- "CombatKnife",
- 0.018999999
- },
- {
- "Attachment_Suppressor_556",
- 0.018999999
- },
- {
- "Tool_WeaponCleaningKit",
- 0.018999999
- },
- {
- "GasMask",
- 0.0088
- },
- {
- "RocketAviators",
- 0.0088
- },
- {
- "Glasses_Designer",
- 0.0088
- },
- {
- "BallisticHelmet_Green",
- 0.0088
- },
- {
- "BallisticHelmet_Black",
- 0.0088
- },
- {
- "BallisticHelmet_UN",
- 0.0088
- },
- {
- "ChestHolster",
- 0.0088
- },
- {
- "MilitaryBeret",
- 0.0088
- },
- {
- "MilitaryBeretUN",
- 0.0088
- }
- };
- };
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment