mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
moved backpacks to own loot table some balanceing
This commit is contained in:
@@ -575,4 +575,38 @@ class CfgLoot {
|
|||||||
0.33,
|
0.33,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
backpacks[] = {
|
||||||
|
{
|
||||||
|
"DZ_Assault_Pack_EP1", // 1-12
|
||||||
|
"DZ_Czech_Vest_Puch", // 1-12
|
||||||
|
"DZ_TerminalPack_EP1", // 1-15
|
||||||
|
"DZ_ALICE_Pack_EP1", // 2-20
|
||||||
|
"DZ_TK_Assault_Pack_EP1", // 2-22
|
||||||
|
"DZ_CompactPack_EP1", // 2-25
|
||||||
|
},
|
||||||
|
{
|
||||||
|
0.22,
|
||||||
|
0.20,
|
||||||
|
0.18,
|
||||||
|
0.16,
|
||||||
|
0.13,
|
||||||
|
0.11,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
militarybackpacks[] = {
|
||||||
|
{
|
||||||
|
"DZ_British_ACU", // 3-30
|
||||||
|
"DZ_GunBag_EP1", // 3-35
|
||||||
|
"DZ_CivilBackpack_EP1", //4-40
|
||||||
|
"DZ_Backpack_EP1", //5-50
|
||||||
|
"DZ_LargeGunBag_EP1" // 6-60
|
||||||
|
},
|
||||||
|
{
|
||||||
|
0.30,
|
||||||
|
0.25,
|
||||||
|
0.20,
|
||||||
|
0.15,
|
||||||
|
0.10,
|
||||||
|
}
|
||||||
|
};
|
||||||
};
|
};
|
||||||
@@ -49,6 +49,19 @@ switch (_iClass) do
|
|||||||
_canType = _itemTypes select _index;
|
_canType = _itemTypes select _index;
|
||||||
_item addMagazineCargoGlobal [_canType,1];
|
_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":
|
case "weapon":
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,9 +26,11 @@ switch (_iClass) do
|
|||||||
};
|
};
|
||||||
case "weapon":
|
case "weapon":
|
||||||
{
|
{
|
||||||
//Item is a weapon, and spawns no mags
|
//do nothing for now
|
||||||
|
/*
|
||||||
_item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
|
_item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
|
||||||
_item addWeaponCargoGlobal [_iItem,1];
|
_item addWeaponCargoGlobal [_iItem,1];
|
||||||
|
*/
|
||||||
};
|
};
|
||||||
case "magazine":
|
case "magazine":
|
||||||
{
|
{
|
||||||
@@ -36,6 +38,15 @@ switch (_iClass) do
|
|||||||
_item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
|
_item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
|
||||||
_item addMagazineCargoGlobal [_iItem,1];
|
_item addMagazineCargoGlobal [_iItem,1];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
case "weaponnomags":
|
||||||
|
{
|
||||||
|
//do nothing for now
|
||||||
|
};
|
||||||
|
case "backpack":
|
||||||
|
{
|
||||||
|
//do nothing for now
|
||||||
|
};
|
||||||
case "object":
|
case "object":
|
||||||
{
|
{
|
||||||
//do nothing for now
|
//do nothing for now
|
||||||
|
|||||||
@@ -534,11 +534,7 @@ class CfgBuildingLoot {
|
|||||||
{ "","generic" },
|
{ "","generic" },
|
||||||
{ "LeeEnfield","weapon" },
|
{ "LeeEnfield","weapon" },
|
||||||
{ "revolver_EP1","weapon" },
|
{ "revolver_EP1","weapon" },
|
||||||
{"DZ_Assault_Pack_EP1","object"}, // 12
|
{ "backpacks","backpack" },
|
||||||
{"DZ_Czech_Vest_Puch","object"}, // 12-0
|
|
||||||
{"DZ_ALICE_Pack_EP1","object"}, // 16
|
|
||||||
{"DZ_TK_Assault_Pack_EP1","object"}, // 16
|
|
||||||
{"DZ_British_ACU","object"}, // 18
|
|
||||||
{ "Winchester1866","weapon" },
|
{ "Winchester1866","weapon" },
|
||||||
{ "tents","single" },
|
{ "tents","single" },
|
||||||
{ "","military" },
|
{ "","military" },
|
||||||
@@ -564,14 +560,10 @@ class CfgBuildingLoot {
|
|||||||
0.01,
|
0.01,
|
||||||
0.04,
|
0.04,
|
||||||
0.01,
|
0.01,
|
||||||
0.32,
|
0.36,
|
||||||
0.03,
|
0.03,
|
||||||
0.02,
|
0.02,
|
||||||
0.02,
|
0.04,
|
||||||
0.02,
|
|
||||||
0.02,
|
|
||||||
0.01,
|
|
||||||
0.01,
|
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.02,
|
0.02,
|
||||||
@@ -607,11 +599,7 @@ class CfgBuildingLoot {
|
|||||||
{ "","generic" },
|
{ "","generic" },
|
||||||
{ "LeeEnfield","weapon" },
|
{ "LeeEnfield","weapon" },
|
||||||
{ "revolver_EP1","weapon" },
|
{ "revolver_EP1","weapon" },
|
||||||
{"DZ_Assault_Pack_EP1","object"}, // 12
|
{ "backpacks","backpack" },
|
||||||
{"DZ_Czech_Vest_Puch","object"}, // 12-0
|
|
||||||
{"DZ_ALICE_Pack_EP1","object"}, // 16
|
|
||||||
{"DZ_TK_Assault_Pack_EP1","object"}, // 16
|
|
||||||
{"DZ_British_ACU","object"}, // 18
|
|
||||||
{ "Winchester1866","weapon" },
|
{ "Winchester1866","weapon" },
|
||||||
{ "tents","single" },
|
{ "tents","single" },
|
||||||
{ "","military" },
|
{ "","military" },
|
||||||
@@ -640,15 +628,11 @@ class CfgBuildingLoot {
|
|||||||
0.31,
|
0.31,
|
||||||
0.03,
|
0.03,
|
||||||
0.02,
|
0.02,
|
||||||
0.02,
|
0.04,
|
||||||
0.02,
|
|
||||||
0.02,
|
|
||||||
0.01,
|
|
||||||
0.01,
|
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.02,
|
0.02,
|
||||||
0.14,
|
0.18,
|
||||||
0.01,
|
0.01,
|
||||||
0.02,
|
0.02,
|
||||||
0.02,
|
0.02,
|
||||||
@@ -780,7 +764,6 @@ class CfgBuildingLoot {
|
|||||||
{ "ItemFishingPole","weapon" },
|
{ "ItemFishingPole","weapon" },
|
||||||
{ "ItemLightBulb","magazine"},
|
{ "ItemLightBulb","magazine"},
|
||||||
{ "ItemSledgeHandle","magazine"}
|
{ "ItemSledgeHandle","magazine"}
|
||||||
|
|
||||||
};
|
};
|
||||||
itemChance[] = {
|
itemChance[] = {
|
||||||
0.05,
|
0.05,
|
||||||
@@ -821,20 +804,14 @@ class CfgBuildingLoot {
|
|||||||
{ "","generic" },
|
{ "","generic" },
|
||||||
{ "LeeEnfield","weapon" },
|
{ "LeeEnfield","weapon" },
|
||||||
{ "revolver_EP1","weapon" },
|
{ "revolver_EP1","weapon" },
|
||||||
{"DZ_Assault_Pack_EP1","object"}, // 12
|
{ "backpacks","backpack" },
|
||||||
{"DZ_Czech_Vest_Puch","object"}, // 12-0
|
|
||||||
{"DZ_ALICE_Pack_EP1","object"}, // 16
|
|
||||||
{"DZ_TK_Assault_Pack_EP1","object"}, // 16
|
|
||||||
{"DZ_British_ACU","object"}, // 18
|
|
||||||
{"DZ_CompactPack_EP1","object"}, //
|
|
||||||
{"DZ_TerminalPack_EP1","object"}, //
|
|
||||||
{ "Winchester1866","weapon" },
|
{ "Winchester1866","weapon" },
|
||||||
{ "tents","single" },
|
{ "tents","single" },
|
||||||
{ "","food" },
|
{ "","food" },
|
||||||
{ "","trash" },
|
{ "","trash" },
|
||||||
{"Crossbow_DZ","weapon"},
|
{"Crossbow_DZ","weapon"},
|
||||||
{ "Binocular","weapon" },
|
{ "Binocular","weapon" },
|
||||||
{ "PartWoodPile","magazine" },
|
{ "PartPlywoodPack","magazine" },
|
||||||
{"MR43","weapon"}
|
{"MR43","weapon"}
|
||||||
};
|
};
|
||||||
itemChance[] = {
|
itemChance[] = {
|
||||||
@@ -852,17 +829,11 @@ class CfgBuildingLoot {
|
|||||||
0.04,
|
0.04,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.04,
|
0.07,
|
||||||
0.03,
|
|
||||||
0.02,
|
|
||||||
0.02,
|
|
||||||
0.01,
|
|
||||||
0.01,
|
|
||||||
0.01,
|
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.30,
|
0.30,
|
||||||
0.13,
|
0.20,
|
||||||
0.01,
|
0.01,
|
||||||
0.05,
|
0.05,
|
||||||
0.02,
|
0.02,
|
||||||
@@ -1027,15 +998,7 @@ class HeliCrash_No50s: Default {
|
|||||||
{ "ItemKnife","military" },
|
{ "ItemKnife","military" },
|
||||||
{ "ItemGPS","weapon" },
|
{ "ItemGPS","weapon" },
|
||||||
{ "ItemMap","military" },
|
{ "ItemMap","military" },
|
||||||
|
{ "militarybackpacks","backpack" },
|
||||||
{"DZ_ALICE_Pack_EP1","object"}, // 16
|
|
||||||
{"DZ_TK_Assault_Pack_EP1","object"}, // 16
|
|
||||||
{"DZ_British_ACU","object"}, // 18
|
|
||||||
{"DZ_CivilBackpack_EP1","object"}, // 24
|
|
||||||
{"DZ_Backpack_EP1","object"}, // 24
|
|
||||||
{"DZ_GunBag_EP1","object"}, // 8-6
|
|
||||||
|
|
||||||
//Normal
|
|
||||||
{ "","medical" },
|
{ "","medical" },
|
||||||
{ "","generic" },
|
{ "","generic" },
|
||||||
{ "","military" },
|
{ "","military" },
|
||||||
@@ -1073,20 +1036,15 @@ class HeliCrash_No50s: Default {
|
|||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.02,
|
0.02,
|
||||||
0.04,
|
0.05,
|
||||||
0.04,
|
|
||||||
0.03,
|
0.03,
|
||||||
0.02,
|
0.1,
|
||||||
|
0.35,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.02,
|
0.02,
|
||||||
0.07,
|
|
||||||
0.3,
|
|
||||||
0.01,
|
|
||||||
0.01,
|
|
||||||
0.02,
|
0.02,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
|
||||||
0.02,
|
0.02,
|
||||||
0.01
|
0.01
|
||||||
};
|
};
|
||||||
@@ -1123,15 +1081,7 @@ class HeliCrash_No50s: Default {
|
|||||||
{ "ItemKnife","military" },
|
{ "ItemKnife","military" },
|
||||||
{ "ItemGPS","weapon" },
|
{ "ItemGPS","weapon" },
|
||||||
{ "PartVRotor","magazine" },
|
{ "PartVRotor","magazine" },
|
||||||
|
{ "militarybackpacks","backpack" },
|
||||||
{"DZ_ALICE_Pack_EP1","object"}, // 16
|
|
||||||
{"DZ_TK_Assault_Pack_EP1","object"}, // 16
|
|
||||||
{"DZ_British_ACU","object"}, // 18
|
|
||||||
{"DZ_CivilBackpack_EP1","object"}, // 24
|
|
||||||
{"DZ_Backpack_EP1","object"}, // 24
|
|
||||||
{"DZ_GunBag_EP1","object"}, // 8-6
|
|
||||||
|
|
||||||
//Normal
|
|
||||||
{ "","medical" },
|
{ "","medical" },
|
||||||
{ "","generic" },
|
{ "","generic" },
|
||||||
{ "","military" },
|
{ "","military" },
|
||||||
@@ -1171,26 +1121,20 @@ class HeliCrash_No50s: Default {
|
|||||||
0.04,
|
0.04,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.02,
|
|
||||||
0.04,
|
|
||||||
0.04,
|
|
||||||
0.03,
|
0.03,
|
||||||
0.01,
|
0.05,
|
||||||
0.01,
|
0.03,
|
||||||
0.01,
|
0.06,
|
||||||
0.02,
|
|
||||||
0.01,
|
|
||||||
0.35,
|
0.35,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.02,
|
0.02,
|
||||||
0.01,
|
0.03,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.01
|
0.01
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
class MilitarySpecial: Default {
|
class MilitarySpecial: Default {
|
||||||
@@ -1227,29 +1171,18 @@ class HeliCrash_No50s: Default {
|
|||||||
{ "M4A1_HWS_GL_camo","weapon" },
|
{ "M4A1_HWS_GL_camo","weapon" },
|
||||||
{ "Mk_48_DZ","weapon" },
|
{ "Mk_48_DZ","weapon" },
|
||||||
{ "M4A3_CCO_EP1","weapon" },
|
{ "M4A3_CCO_EP1","weapon" },
|
||||||
//Ammo
|
|
||||||
{ "AmmoBoxSmall_556","object" },
|
{ "AmmoBoxSmall_556","object" },
|
||||||
{ "AmmoBoxSmall_762","object" },
|
{ "AmmoBoxSmall_762","object" },
|
||||||
|
|
||||||
//{"NVGoggles","weapon"},
|
|
||||||
{ "Binocular","weapon" },
|
{ "Binocular","weapon" },
|
||||||
{ "ItemFlashlightRed","military" },
|
{ "ItemFlashlightRed","military" },
|
||||||
{ "ItemKnife","military" },
|
{ "ItemKnife","military" },
|
||||||
{ "ItemGPS","weapon" },
|
{ "ItemGPS","weapon" },
|
||||||
{ "ItemMap","military" },
|
{ "ItemMap","military" },
|
||||||
{ "Binocular_Vector","military" },
|
{ "Binocular_Vector","military" },
|
||||||
|
{ "militarybackpacks","backpack" },
|
||||||
{"DZ_ALICE_Pack_EP1","object"}, // 16
|
|
||||||
{"DZ_TK_Assault_Pack_EP1","object"}, // 16
|
|
||||||
{"DZ_British_ACU","object"}, // 18
|
|
||||||
{"DZ_CivilBackpack_EP1","object"}, // 24
|
|
||||||
{"DZ_Backpack_EP1","object"}, // 30
|
|
||||||
{"DZ_LargeGunBag_EP1","object"}, // 45
|
|
||||||
|
|
||||||
{ "","medical" },
|
{ "","medical" },
|
||||||
{ "","generic" },
|
{ "","generic" },
|
||||||
{ "","military" },
|
{ "","military" },
|
||||||
//{"Body","object"},
|
|
||||||
{"PipeBomb","magazine"},
|
{"PipeBomb","magazine"},
|
||||||
{"Sa58V_RCO_EP1","weapon"},
|
{"Sa58V_RCO_EP1","weapon"},
|
||||||
{"Sa58V_CCO_EP1","weapon"},
|
{"Sa58V_CCO_EP1","weapon"},
|
||||||
@@ -1257,8 +1190,16 @@ class HeliCrash_No50s: Default {
|
|||||||
{"M40A3","weapon"},
|
{"M40A3","weapon"},
|
||||||
{"100Rnd_762x54_PK","magazine"},
|
{"100Rnd_762x54_PK","magazine"},
|
||||||
{ "militaryclothes","single" },
|
{ "militaryclothes","single" },
|
||||||
|
{"NVGoggles","weapon"},
|
||||||
};
|
};
|
||||||
itemChance[] = {
|
itemChance[] = {
|
||||||
|
0.01,
|
||||||
|
0.01,
|
||||||
|
0.01,
|
||||||
|
0.02,
|
||||||
|
0.01,
|
||||||
|
0.01,
|
||||||
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
@@ -1286,15 +1227,11 @@ class HeliCrash_No50s: Default {
|
|||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.02,
|
0.05,
|
||||||
0.02,
|
|
||||||
0.02,
|
|
||||||
0.01,
|
|
||||||
0.01,
|
|
||||||
0.01,
|
|
||||||
0.03,
|
0.03,
|
||||||
0.08,
|
0.08,
|
||||||
0.31,
|
0.34,
|
||||||
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
0.01,
|
0.01,
|
||||||
|
|||||||
Reference in New Issue
Block a user