added document to zombies and random open chance

This commit is contained in:
[VB]AWOL
2013-10-07 13:34:07 -05:00
parent dad0bc69bb
commit f38b436cbe
3 changed files with 53 additions and 16 deletions

View File

@@ -155,6 +155,20 @@ class CfgMagazines {
picture = "\z\addons\dayz_epoch\pictures\equip_doc_generic_ca.paa";
descriptionShort = "Unknown document";
weight = 0.1;
class ItemActions
{
class Crafting
{
text = "Open Document";
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {};
randomOutput = 1;
output[] = {{"ItemLetter",1},{"ItemDocumentRamp",1}};
input[] = {{"ItemDocument",1}};
};
};
};
class ItemLetter: CA_Magazine
{

View File

@@ -35,13 +35,14 @@ class CfgLoot {
"ItemBandage",
"ItemPainkiller",
"FoodBioMeat",
"8Rnd_9x18_MakarovSD"
"8Rnd_9x18_MakarovSD",
"ItemDocument"
},
{
0.07,
0.09,
0.09,
0.1,
0.09,
0.09,
0.05,
0.05,
@@ -54,6 +55,7 @@ class CfgLoot {
0.06,
0.06,
0.01,
0.01,
0.01
}
};
@@ -76,11 +78,12 @@ class CfgLoot {
"ItemPainkiller",
"FoodBioMeat",
"8Rnd_9x18_MakarovSD",
"ItemBriefcaseEmpty"
"ItemBriefcaseEmpty",
"ItemDocument"
},
{
0.07,
0.09,
0.08,
0.09,
0.09,
0.09,
@@ -96,6 +99,7 @@ class CfgLoot {
0.06,
0.01,
0.01,
0.01,
0.01
}
};
@@ -162,7 +166,8 @@ class CfgLoot {
"HandChemBlue",
"HandChemRed",
"ItemHeatPack",
"ItemLockbox"
"ItemLockbox",
"ItemDocument"
},
{
0.06,
@@ -183,7 +188,7 @@ class CfgLoot {
0.04,
0.05,
0.05,
0.09,
0.08,
0.02,
0.04,
0.07,
@@ -192,7 +197,8 @@ class CfgLoot {
0.03,
0.03,
0.03,
0.04
0.04,
0.01
}
};
generic[] = {
@@ -391,19 +397,21 @@ class CfgLoot {
"ItemComboLock",
"SmokeShell",
"FoodMRE",
"ItemHotwireKit"
"ItemHotwireKit",
"ItemDocument"
},
{
0.3,
0.08,
0.08,
0.14,
0.17,
0.16,
0.08,
0.01,
0.05,
0.04,
0.04,
0.01,
0.01
}
};
@@ -417,18 +425,20 @@ class CfgLoot {
"WoodenArrow",
"ItemHeatPack",
"FoodMRE",
"FoodNutmix"
"FoodNutmix",
"ItemDocument"
},
{
0.4,
0.17,
0.16,
0.03,
0.1,
0.05,
0.2,
0.02,
0.01,
0.02
0.02,
0.01
}
};
@@ -448,13 +458,14 @@ class CfgLoot {
"ItemWire",
"ItemTankTrap",
"ItemComboLock",
"ItemSledgeHead"
"ItemSledgeHead",
"ItemDocument"
},
{
0.09,
0.10,
0.10,
0.11,
0.10,
0.10,
0.06,
0.06,
@@ -465,7 +476,8 @@ class CfgLoot {
0.01,
0.03,
0.04,
0.02
0.02,
0.01
}
};