moved backpacks to own loot table some balanceing

This commit is contained in:
[VB]AWOL
2013-09-13 17:13:21 -05:00
parent 3f96b47949
commit 91e39194c2
4 changed files with 90 additions and 95 deletions

View File

@@ -49,6 +49,19 @@ switch (_iClass) do
_canType = _itemTypes select _index;
_item addMagazineCargoGlobal [_canType,1];
};
case "backpack":
{
//Item is single backpack
_itemTypes = [] + ((getArray (configFile >> "cfgLoot" >> _iItem)) select 0);
_index = dayz_CLBase find _iItem;
_weights = dayz_CLChances select _index;
_cntWeights = count _weights;
_index = floor(random _cntWeights);
_index = _weights select _index;
_iItem = _itemTypes select _index;
_item = createVehicle [_iItem, _iPos, [], _radius, "CAN_COLLIDE"];
};
case "weapon":
{