player2_dz

lootmechanismhelicrash

May 24th, 2014
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 7.63 KB | None | 0 0
  1.  
  2. _cfgClasses = configFile >> "CfgVehicles";
  3. _cfgBuildings = [];
  4. _counted = 0;
  5. _total = ((count _cfgClasses) - 1);
  6. displayMe = "";
  7. for "_i" from 0 to _total do
  8. {
  9.     _config = (_cfgClasses select _i);
  10.     if (isClass _config) then {
  11.         if (isClass (_config >> "spawns")) then {
  12.             _addMe = false;
  13.             _cfgSpawns = (_config >> "spawns");
  14.             _countSpawns = ((count _cfgSpawns) - 1);
  15.             for "_ii" from 0 to _countSpawns do
  16.             {
  17.                 _configSpawn = (_cfgSpawns select _ii);
  18.                 _locationCount = count(getArray(_configSpawn >> "locations"));
  19.                 if (_locationCount > 0) then {
  20.                     _addMe = true;
  21.                 };
  22.             };
  23.             if (_addMe) then {
  24.                 _name = configName _config;
  25.                 _cfgBuildings set [(count _cfgBuildings),_name];
  26.             };
  27.         };
  28.     };
  29.     if (!isDedicated) then {
  30.         progressLoadingScreen (_i/_total);
  31.     };
  32. };
  33. _cfgBuildings = _cfgBuildings - ["HouseBase"];
  34. _nearby = nearestObjects [DZ_SpawnCenter,_cfgBuildings,2000];
  35. _last = [];
  36. {
  37.     _x call building_spawnLoot;
  38. } forEach _nearby;
  39.  
  40.  
  41.  
  42. class Land_MH_60Wreck: HouseDefault
  43.     {
  44.         class Spawns: Spawns
  45.         {
  46.             class all_loot
  47.             {
  48.                 locations[]=
  49.                 {
  50.                    
  51.                     {
  52.                         "loot_p_Around",
  53.                         3
  54.                     }
  55.                 };
  56.                 items[]=
  57.                 {
  58.                    
  59.                     {
  60.                         "FNX45",
  61.                         0.035
  62.                     },
  63.                    
  64.                     {   "1911",
  65.                         0.035
  66.                     },
  67.  
  68.                     {
  69.                         "1911_Engraved",
  70.                         0.035
  71.                     },
  72.                    
  73.                     {
  74.                         "M4A1",
  75.                         0.035
  76.                     },
  77.                    
  78.                     {
  79.                         "M_CMAG_10Rnd",
  80.                         0.018999999
  81.                     },
  82.                    
  83.                     {
  84.                         "M_CMAG_10Rnd_Green",
  85.                         0.018999999
  86.                     },
  87.                    
  88.                     {
  89.                         "M_CMAG_20Rnd",
  90.                         0.018999999
  91.                     },
  92.                    
  93.                     {
  94.                         "M_CMAG_20Rnd_Green",
  95.                         0.018999999
  96.                     },
  97.                    
  98.                     {
  99.                         "M_STANAG_30Rnd",
  100.                         0.018999999
  101.                     },
  102.                    
  103.                     {
  104.                         "M_CMAG_30Rnd",
  105.                         0.018999999
  106.                     },
  107.                    
  108.                     {
  109.                         "M_CMAG_30Rnd_Green",
  110.                         0.018999999
  111.                     },
  112.                    
  113.                     {
  114.                         "M_CMAG_40Rnd",
  115.                         0.018999999
  116.                     },
  117.                    
  118.                     {
  119.                         "M_CMAG_40Rnd_Green",
  120.                         0.018999999
  121.                     },
  122.                    
  123.                     {
  124.                         "M_STANAG_30Rnd_Coupled",
  125.                         0.018999999
  126.                     },
  127.                    
  128.                     {
  129.                         "M_FNX45_15Rnd",
  130.                         0.018999999
  131.                     },
  132.                    
  133.                     {
  134.                         "Container_AmmoBox300Rnd",
  135.                         0.018999999
  136.                     },
  137.                    
  138.                     {
  139.                         "Ammo_45FMJ",
  140.                         0.018999999
  141.                     },
  142.                    
  143.                     {
  144.                         "Ammo_45acp_25rnd",
  145.                         0.018999999
  146.                     },
  147.                    
  148.                     {
  149.                         "Ammo_556",
  150.                         0.018999999
  151.                     },
  152.                    
  153.                     {
  154.                         "Ammo_556_20Rnd",
  155.                         0.018999999
  156.                     },
  157.                    
  158.                     {
  159.                         "Attachment_Buttstock_M4OE",
  160.                         0.018999999
  161.                     },
  162.                    
  163.                     {
  164.                         "Attachment_Buttstock_M4MP",
  165.                         0.018999999
  166.                     },
  167.                    
  168.                     {
  169.                         "Attachment_Buttstock_M4MP_Green",
  170.                         0.018999999
  171.                     },
  172.                    
  173.                     {
  174.                         "Attachment_Buttstock_M4CQB",
  175.                         0.018999999
  176.                     },
  177.                    
  178.                     {
  179.                         "Attachment_Buttstock_M4CQB",
  180.                         0.018999999
  181.                     },
  182.                    
  183.                     {
  184.                         "Attachment_Handguard_M4Plastic",
  185.                         0.018999999
  186.                     },
  187.                    
  188.                     {
  189.                         "Attachment_Handguard_M4RIS",
  190.                         0.018999999
  191.                     },
  192.                    
  193.                     {
  194.                         "Attachment_Handguard_M4MP",
  195.                         0.018999999
  196.                     },
  197.                    
  198.                     {
  199.                         "Attachment_Handguard_M4MP_Green",
  200.                         0.018999999
  201.                     },
  202.                    
  203.                     {
  204.                         "Attachment_Optic_M4CarryHandle",
  205.                         0.018999999
  206.                     },
  207.                    
  208.                     {
  209.                         "Attachment_Optic_M4T3NRDS",
  210.                         0.018999999
  211.                     },
  212.                    
  213.                     {
  214.                         "Attachment_Optic_BUIS",
  215.                         0.018999999
  216.                     },
  217.                    
  218.                     {
  219.                         "Attachment_Optic_ACOG",
  220.                         0.018999999
  221.                     },
  222.                    
  223.                     {
  224.                         "Attachment_Optic_M68",
  225.                         0.018999999
  226.                     },
  227.                    
  228.                     {
  229.                         "CombatKnife",
  230.                         0.018999999
  231.                     },
  232.                    
  233.                     {
  234.                         "Attachment_Suppressor_556",
  235.                         0.018999999
  236.                     },
  237.                    
  238.                     {
  239.                         "Tool_WeaponCleaningKit",
  240.                         0.018999999
  241.                     },
  242.                    
  243.                     {
  244.                         "GasMask",
  245.                         0.0088
  246.                     },
  247.                    
  248.                     {
  249.                         "RocketAviators",
  250.                         0.0088
  251.                     },
  252.                    
  253.                     {
  254.                         "Glasses_Designer",
  255.                         0.0088
  256.                     },
  257.                    
  258.                     {
  259.                         "BallisticHelmet_Green",
  260.                         0.0088
  261.                     },
  262.                    
  263.                     {
  264.                         "BallisticHelmet_Black",
  265.                         0.0088
  266.                     },
  267.                    
  268.                     {
  269.                         "BallisticHelmet_UN",
  270.                         0.0088
  271.                     },
  272.                    
  273.                     {
  274.                         "ChestHolster",
  275.                         0.0088
  276.                     },
  277.                    
  278.                     {
  279.                         "MilitaryBeret",
  280.                         0.0088
  281.                     },
  282.                    
  283.                     {
  284.                         "MilitaryBeretUN",
  285.                         0.0088
  286.                     }
  287.                 };
  288.             };
  289.             class along
  290.             {
  291.                 locations[]=
  292.                 {
  293.                    
  294.                     {
  295.                         "loot_p_along",
  296.                         3
  297.                     }
  298.                 };
  299.                 items[]=
  300.                 {
  301.                    
  302.                     {
  303.                         "FNX45",
  304.                         0.035
  305.                     },
  306.                     {"1911",0.035},
  307.                    
  308.                     {
  309.                         "1911_Engraved",
  310.                         0.035
  311.                     },
  312.                    
  313.                     {
  314.                         "M4A1",
  315.                         0.035
  316.                     },
  317.                    
  318.                     {
  319.                         "M_CMAG_10Rnd",
  320.                         0.018999999
  321.                     },
  322.                    
  323.                     {
  324.                         "M_CMAG_10Rnd_Green",
  325.                         0.018999999
  326.                     },
  327.                    
  328.                     {
  329.                         "M_CMAG_20Rnd",
  330.                         0.018999999
  331.                     },
  332.                    
  333.                     {
  334.                         "M_CMAG_20Rnd_Green",
  335.                         0.018999999
  336.                     },
  337.                    
  338.                     {
  339.                         "M_STANAG_30Rnd",
  340.                         0.018999999
  341.                     },
  342.                    
  343.                     {
  344.                         "M_CMAG_30Rnd",
  345.                         0.018999999
  346.                     },
  347.                    
  348.                     {
  349.                         "M_CMAG_30Rnd_Green",
  350.                         0.018999999
  351.                     },
  352.                    
  353.                     {
  354.                         "M_CMAG_40Rnd",
  355.                         0.018999999
  356.                     },
  357.                    
  358.                     {
  359.                         "M_CMAG_40Rnd_Green",
  360.                         0.018999999
  361.                     },
  362.                    
  363.                     {
  364.                         "M_STANAG_30Rnd_Coupled",
  365.                         0.018999999
  366.                     },
  367.                    
  368.                     {
  369.                         "M_FNX45_15Rnd",
  370.                         0.018999999
  371.                     },
  372.                    
  373.                     {
  374.                         "Container_AmmoBox300Rnd",
  375.                         0.018999999
  376.                     },
  377.                    
  378.                     {
  379.                         "Ammo_45FMJ",
  380.                         0.018999999
  381.                     },
  382.                    
  383.                     {
  384.                         "Ammo_45acp_25rnd",
  385.                         0.018999999
  386.                     },
  387.                    
  388.                     {
  389.                         "Ammo_556",
  390.                         0.018999999
  391.                     },
  392.                    
  393.                     {
  394.                         "Ammo_556_20Rnd",
  395.                         0.018999999
  396.                     },
  397.                    
  398.                     {
  399.                         "Attachment_Buttstock_M4OE",
  400.                         0.018999999
  401.                     },
  402.                    
  403.                     {
  404.                         "Attachment_Buttstock_M4MP",
  405.                         0.018999999
  406.                     },
  407.                    
  408.                     {
  409.                         "Attachment_Buttstock_M4MP_Green",
  410.                         0.018999999
  411.                     },
  412.                    
  413.                     {
  414.                         "Attachment_Buttstock_M4CQB",
  415.                         0.018999999
  416.                     },
  417.                    
  418.                     {
  419.                         "Attachment_Buttstock_M4CQB",
  420.                         0.018999999
  421.                     },
  422.                    
  423.                     {
  424.                         "Attachment_Handguard_M4Plastic",
  425.                         0.018999999
  426.                     },
  427.                    
  428.                     {
  429.                         "Attachment_Handguard_M4RIS",
  430.                         0.018999999
  431.                     },
  432.                    
  433.                     {
  434.                         "Attachment_Handguard_M4MP",
  435.                         0.018999999
  436.                     },
  437.                    
  438.                     {
  439.                         "Attachment_Handguard_M4MP_Green",
  440.                         0.018999999
  441.                     },
  442.                    
  443.                     {
  444.                         "Attachment_Optic_M4CarryHandle",
  445.                         0.018999999
  446.                     },
  447.                    
  448.                     {
  449.                         "Attachment_Optic_M4T3NRDS",
  450.                         0.018999999
  451.                     },
  452.                    
  453.                     {
  454.                         "Attachment_Optic_BUIS",
  455.                         0.018999999
  456.                     },
  457.                    
  458.                     {
  459.                         "Attachment_Optic_ACOG",
  460.                         0.018999999
  461.                     },
  462.                    
  463.                     {
  464.                         "Attachment_Optic_M68",
  465.                         0.018999999
  466.                     },
  467.                    
  468.                     {
  469.                         "CombatKnife",
  470.                         0.018999999
  471.                     },
  472.                    
  473.                     {
  474.                         "Attachment_Suppressor_556",
  475.                         0.018999999
  476.                     },
  477.                    
  478.                     {
  479.                         "Tool_WeaponCleaningKit",
  480.                         0.018999999
  481.                     },
  482.                    
  483.                     {
  484.                         "GasMask",
  485.                         0.0088
  486.                     },
  487.                    
  488.                     {
  489.                         "RocketAviators",
  490.                         0.0088
  491.                     },
  492.                    
  493.                     {
  494.                         "Glasses_Designer",
  495.                         0.0088
  496.                     },
  497.                    
  498.                     {
  499.                         "BallisticHelmet_Green",
  500.                         0.0088
  501.                     },
  502.                    
  503.                     {
  504.                         "BallisticHelmet_Black",
  505.                         0.0088
  506.                     },
  507.                    
  508.                     {
  509.                         "BallisticHelmet_UN",
  510.                         0.0088
  511.                     },
  512.                    
  513.                     {
  514.                         "ChestHolster",
  515.                         0.0088
  516.                     },
  517.                    
  518.                     {
  519.                         "MilitaryBeret",
  520.                         0.0088
  521.                     },
  522.                    
  523.                     {
  524.                         "MilitaryBeretUN",
  525.                         0.0088
  526.                     }
  527.                 };
  528.             };
  529.         };
  530.     };
  531. };
Advertisement
Add Comment
Please, Sign In to add comment