mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-19 06:32:57 +03:00
moved backpacks to own loot table some balanceing
This commit is contained in:
@@ -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":
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user