diff --git a/SQF/dayz_code/compile/spawn_loot.sqf b/SQF/dayz_code/compile/spawn_loot.sqf index c298d9953..94b168c0e 100644 --- a/SQF/dayz_code/compile/spawn_loot.sqf +++ b/SQF/dayz_code/compile/spawn_loot.sqf @@ -1,4 +1,3 @@ - private ["_iItem","_iClass","_iPos","_radius","_item","_itemTypes","_index","_weights","_cntWeights","_qty","_max","_tQty","_canType","_mags","_dateNow"]; _iItem = _this select 0; @@ -64,9 +63,6 @@ switch (_iClass) do }; case "cfglootweapon": { - //Item is sigle, add 1 item from cfgloot - _item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"]; - _itemTypes = [] + ((getArray (configFile >> "cfgLoot" >> _iItem)) select 0); _index = dayz_CLBase find _iItem; _weights = dayz_CLChances select _index; @@ -131,4 +127,4 @@ _item setVariable ["looted",_dateNow,true]; if ((count _iPos) > 2) then { _item setPosATL _iPos; -}; \ No newline at end of file +};