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":
{

View File

@@ -26,9 +26,11 @@ switch (_iClass) do
};
case "weapon":
{
//Item is a weapon, and spawns no mags
//do nothing for now
/*
_item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
_item addWeaponCargoGlobal [_iItem,1];
*/
};
case "magazine":
{
@@ -36,6 +38,15 @@ switch (_iClass) do
_item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
_item addMagazineCargoGlobal [_iItem,1];
};
case "weaponnomags":
{
//do nothing for now
};
case "backpack":
{
//do nothing for now
};
case "object":
{
//do nothing for now