From 3c5a1b5087b9a301d95046a68d105b8ad2e4df08 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Fri, 22 Nov 2013 09:51:20 -0600 Subject: [PATCH] reindex loot tables for weapons --- .../CfgBuildingLoot/CfgBuildingLoot.hpp | 561 +++++------------- .../Configs/CfgBuildingLoot/cfgLoot.hpp | 279 +++++++++ 2 files changed, 422 insertions(+), 418 deletions(-) diff --git a/SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp b/SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp index bb0809cd8..00135679c 100644 --- a/SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp +++ b/SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp @@ -17,14 +17,6 @@ class CfgBuildingLoot { hangPos[] = {}; vehPos[] = {}; }; - class Master { - weapons[] = { - "SMAW", - "Javelin", - "G36C", - "Stinger" - }; - }; class Residential: Default { zombieChance = 0.3; maxRoaming = 2; @@ -32,56 +24,44 @@ class CfgBuildingLoot { lootChance = 0.4; lootPos[] = {}; itemType[] = { - { "ItemWatch","generic" }, - { "ItemCompass","generic" }, - { "ItemMap","weapon" }, - { "Makarov","weapon" }, - { "MakarovSD","weapon" }, - { "Colt1911","weapon" }, - { "ItemFlashlight","generic" }, - { "ItemKnife","generic" }, - { "ItemMatchbox_DZE","generic" }, - { "","generic" }, - { "LeeEnfield","weapon" }, - { "revolver_EP1","weapon" }, - { "backpacks","backpack" }, - { "Winchester1866","weapon" }, - { "tents","single" }, - { "","military" }, - { "","trash" }, - { "Crossbow_DZ","weapon" }, - { "Binocular","weapon" }, - { "PartPlywoodPack","magazine" }, - { "clothes","single" }, - { "specialclothes","single" }, - { "WeaponHolder_MeleeCrowbar","object" }, - {"MR43","weapon"} + { "ItemWatch","generic" }, + { "ItemCompass","generic" }, + { "ItemMap","weapon" }, + { "pistols","cfglootweapon" }, + { "ItemFlashlight","generic" }, + { "ItemKnife","generic" }, + { "ItemMatchbox_DZE","generic" }, + { "","generic" }, + { "backpacks","backpack" }, + { "tents","single" }, + { "","military" }, + { "","trash" }, + { "Binocular","weapon" }, + { "PartPlywoodPack","magazine" }, + { "clothes","single" }, + { "specialclothes","single" }, + { "WeaponHolder_MeleeCrowbar","object" }, + { "shotgunsingleshot","cfglootweapon" } }; itemChance[] = { 0.04, 0.03, 0.02, - 0.05, - 0.01, - 0.02, + 0.1, 0.01, 0.04, 0.01, 0.36, - 0.03, - 0.02, 0.04, 0.01, - 0.01, 0.02, 0.17, - 0.01, 0.02, 0.02, 0.01, 0.01, 0.03, - 0.01 + 0.06 }; itemTypeSmall[] = { { "ItemSodaMdew","magazine" }, @@ -90,14 +70,11 @@ class CfgBuildingLoot { { "ItemWatch","weapon" }, { "ItemCompass","weapon" }, { "ItemMap","weapon" }, - { "Makarov","weapon" }, - { "MakarovSD","weapon" }, - { "Colt1911","weapon" }, + { "pistols","cfglootweapon" }, { "ItemFlashlight","weapon" }, { "ItemKnife","weapon" }, { "ItemMatchbox_DZE","weapon" }, { "","generic" }, - { "revolver_EP1","weapon" }, { "","military" }, { "","trash" }, { "Binocular","weapon" }, @@ -111,14 +88,11 @@ class CfgBuildingLoot { 0.05, 0.04, 0.03, - 0.05, - 0.02, - 0.03, + 0.12, 0.02, 0.04, 0.03, 0.38, - 0.02, 0.04, 0.17, 0.02, @@ -136,47 +110,37 @@ class CfgBuildingLoot { { "ItemWatch","generic" }, { "ItemCompass","generic" }, { "ItemMap","weapon" }, - { "Makarov","weapon" }, - { "MakarovSD","weapon" }, - { "Colt1911","weapon" }, + { "pistols","cfglootweapon" }, { "ItemFlashlight","generic" }, { "ItemKnife","generic" }, { "ItemMatchbox_DZE","generic" }, { "","generic" }, - { "LeeEnfield","weapon" }, - { "revolver_EP1","weapon" }, + { "shotgunsingleshot","cfglootweapon" }, { "backpacks","backpack" }, - { "Winchester1866","weapon" }, { "tents","single" }, { "","military" }, { "","trash" }, - {"Crossbow_DZ","weapon"}, { "Binocular","weapon" }, { "PartPlywoodPack","magazine" }, { "clothes","single" }, { "specialclothes","single" }, { "WeaponHolder_MeleeCrowbar","object" }, - { "ItemBriefcaseEmpty","magazine" } + { "ItemBriefcaseEmpty","magazine" } }; itemChance[] = { 0.04, 0.03, 0.02, - 0.06, - 0.01, - 0.02, + 0.11, 0.01, 0.04, 0.01, 0.31, - 0.03, - 0.02, + 0.05, 0.04, 0.01, - 0.01, 0.02, 0.21, - 0.01, 0.02, 0.02, 0.01, @@ -191,14 +155,11 @@ class CfgBuildingLoot { { "ItemWatch","weapon" }, { "ItemCompass","weapon" }, { "ItemMap","weapon" }, - { "Makarov","weapon" }, - { "MakarovSD","weapon" }, - { "Colt1911","weapon" }, + { "pistols","cfglootweapon" }, { "ItemFlashlight","weapon" }, { "ItemKnife","weapon" }, { "ItemMatchbox_DZE","weapon" }, - { "","generic" }, - { "revolver_EP1","weapon" }, + { "","generic" }, { "","military" }, { "","trash" }, { "Binocular","weapon" }, @@ -213,14 +174,11 @@ class CfgBuildingLoot { 0.05, 0.04, 0.03, - 0.07, - 0.02, - 0.03, + 0.15, 0.02, 0.05, 0.03, 0.31, - 0.03, 0.04, 0.03, 0.02, @@ -237,7 +195,7 @@ class CfgBuildingLoot { lootPos[] = {}; itemType[] = { { "ItemGenerator","magazine" }, - {"ItemFuelBarrel","magazine"}, + { "ItemFuelBarrel","magazine"}, { "","generic" }, { "","trash" }, { "","military" }, @@ -252,10 +210,10 @@ class CfgBuildingLoot { { "ItemKnife","military" }, { "ItemToolbox","weapon" }, { "ItemWire","magazine" }, - {"ItemTankTrap","magazine"}, - {"ItemKeyKit","weapon"}, - {"CinderBlocks","magazine"}, - {"MortarBucket","magazine"} + { "ItemTankTrap","magazine" }, + { "ItemKeyKit","weapon" }, + { "CinderBlocks","magazine" }, + { "MortarBucket","magazine" } }; itemChance[] = { 0.01, @@ -284,7 +242,7 @@ class CfgBuildingLoot { { "","trash" }, { "","military" }, { "ItemKnife","weapon" }, - {"ItemKeyKit","weapon"} + { "ItemKeyKit","weapon" } }; itemChanceSmall[] = { 0.5, @@ -345,7 +303,7 @@ class CfgBuildingLoot { { "","trash" }, { "","military" }, { "ItemKnife","weapon" }, - {"ItemKeyKit","weapon"} + { "ItemKeyKit","weapon" } }; itemChanceSmall[] = { 0.5, @@ -364,14 +322,10 @@ class CfgBuildingLoot { itemType[] = { { "ItemJerrycan","magazine" }, { "","generic" }, - { "huntingrifle","weapon" }, - { "LeeEnfield","weapon" }, - { "Winchester1866","weapon" }, - { "","trash" }, - { "Crossbow_DZ","weapon"}, + { "farmweapons","cfglootweapon" }, + { "","trash" }, { "PartPlankPack","magazine" }, { "WeaponHolder_ItemHatchet_DZE","object" }, - { "MR43","weapon" }, { "ItemFuelBarrel","magazine"}, { "WeaponHolder_ItemMachete", "object"}, { "ItemFishingPole","weapon" }, @@ -381,14 +335,10 @@ class CfgBuildingLoot { itemChance[] = { 0.05, 0.3, - 0.02, - 0.04, - 0.03, + 0.18, 0.26, - 0.03, 0.08, 0.05, - 0.06, 0.01, 0.03, 0.01, @@ -420,45 +370,35 @@ class CfgBuildingLoot { { "ItemWatch","generic" }, { "ItemCompass","generic" }, { "ItemMap","weapon" }, - { "Makarov","weapon" }, - { "Colt1911","weapon" }, + { "pistols","cfglootweapon" }, { "ItemFlashlight","generic" }, { "ItemKnife","generic" }, { "ItemMatchbox_DZE","generic" }, { "","generic" }, - { "LeeEnfield","weapon" }, - { "revolver_EP1","weapon" }, + { "shotgunsingleshot","cfglootweapon" }, { "backpacks","backpack" }, - { "Winchester1866","weapon" }, { "tents","single" }, { "","food" }, { "","trash" }, - {"Crossbow_DZ","weapon"}, { "Binocular","weapon" }, - { "PartPlywoodPack","magazine" }, - {"MR43","weapon"} + { "PartPlywoodPack","magazine" } }; itemChance[] = { 0.07, 0.02, 0.04, - 0.02, - 0.01, + 0.04, 0.01, 0.02, 0.04, 0.04, - 0.01, - 0.01, + 0.04, 0.07, 0.01, - 0.01, 0.30, 0.23, - 0.01, 0.05, - 0.02, - 0.01 + 0.02 }; itemTypeSmall[] = { { "ItemSodaMdew","magazine" }, @@ -467,13 +407,11 @@ class CfgBuildingLoot { { "ItemWatch","weapon" }, { "ItemCompass","weapon" }, { "ItemMap","weapon" }, - { "Makarov","weapon" }, - { "Colt1911","weapon" }, + { "pistols","cfglootweapon" }, { "ItemFlashlight","weapon" }, { "ItemKnife","weapon" }, { "ItemMatchbox_DZE","weapon" }, { "","generic" }, - { "revolver_EP1","weapon" }, { "","food" }, { "","trash" }, { "Binocular","weapon" } @@ -485,13 +423,11 @@ class CfgBuildingLoot { 0.07, 0.03, 0.05, - 0.04, - 0.02, + 0.08, 0.01, 0.02, 0.04, 0.21, - 0.02, 0.24, 0.18, 0.02 @@ -504,16 +440,10 @@ class CfgBuildingLoot { lootChance = 0.5; lootPos[] = {}; itemType[] = { - { "FN_FAL","weapon" }, - { "bizon_silenced","weapon" }, - { "M14_EP1","weapon" }, - { "FN_FAL_ANPVS4","weapon" }, - { "BAF_LRR_scoped","weapon" }, - { "AK_107_PSO","weapon" }, - { "Mk_48_DZ","weapon" }, - { "M249_DZ","weapon" }, - {"BAF_L85A2_RIS_SUSAT","weapon"}, - { "M4SPR","weapon" }, + { "assaultrifles","cfglootweapon" }, + { "submachinegun","cfglootweapon" }, + { "sniperrifles","cfglootweapon" }, + { "machineguns","cfglootweapon" }, { "","military" }, { "","medical" }, { "MedBox0","object" }, @@ -521,28 +451,13 @@ class CfgBuildingLoot { { "AmmoBoxSmall_556","object" }, { "AmmoBoxSmall_762","object" }, { "militaryclothes","single" }, - {"G36C","weapon"}, - {"G36_C_SD_camo","weapon"}, - {"G36A_camo","weapon"}, - { "Pecheneg_DZ","weapon"}, - {"100Rnd_762x54_PK","magazine"}, - {"2000Rnd_762x51_M134","magazine"}, - {"29Rnd_30mm_AGS30","magazine"}, - {"50Rnd_127x107_DSHKM","magazine"}, - {"48Rnd_40mm_MK19","magazine"}, - {"100Rnd_127x99_M2","magazine"} + { "militaryammo","single" } }; itemChance[] = { - 0.02, + 0.1, 0.03, - 0.02, - 0.01, - 0.01, - 0.02, - 0.02, - 0.02, - 0.01, - 0.02, + 0.05, + 0.05, 0.35, 0.19, 0.05, @@ -550,16 +465,7 @@ class CfgBuildingLoot { 0.03, 0.03, 0.05, - 0.02, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01 + 0.06 }; }; class HeliCrash_No50s: Default { @@ -568,61 +474,33 @@ class CfgBuildingLoot { zombieClass[] = {"z_soldier_pilot"}; lootChance = 0.5; lootPos[] = {}; - itemType[] = { - {"FN_FAL","weapon"}, - {"bizon_silenced","weapon"}, - {"M14_EP1","weapon"}, - {"FN_FAL_ANPVS4","weapon"}, - {"Mk_48_DZ","weapon"}, - {"M249_DZ","weapon"}, - {"BAF_L85A2_RIS_SUSAT","weapon"}, - {"M4SPR","weapon"}, - {"","military"}, - {"","medical"}, - {"MedBox0","object"}, - {"NVGoggles","weapon"}, - {"AmmoBoxSmall_556","object"}, - {"AmmoBoxSmall_762","object"}, + itemType[] = { + { "assaultrifles","cfglootweapon" }, + { "submachinegun","cfglootweapon" }, + { "sniperrifles","cfglootweapon" }, + { "machineguns","cfglootweapon" }, + { "","military" }, + { "","medical" }, + { "MedBox0","object" }, + { "NVGoggles","weapon" }, + { "AmmoBoxSmall_556","object" }, + { "AmmoBoxSmall_762","object" }, { "militaryclothes","single" }, - {"G36C","weapon"}, - {"G36C_camo","weapon"}, - //{"G36_C_SD_camo","weapon"}, - {"G36A_camo","weapon"}, - {"G36K_camo","weapon"}, - {"100Rnd_762x54_PK","magazine"}, - {"2000Rnd_762x51_M134","magazine"}, - {"29Rnd_30mm_AGS30","magazine"}, - {"50Rnd_127x107_DSHKM","magazine"}, - {"48Rnd_40mm_MK19","magazine"}, - {"100Rnd_127x99_M2","magazine"} + { "militaryammo","single" } }; itemChance[] = { - 0.01, - 0.02, - 0.02, - 0.01, - 0.01, - 0.02, - 0.01, - 0.02, - 0.43, - 0.23, - 0.04, - 0.01, - 0.04, - 0.04, + 0.1, 0.03, + 0.05, + 0.05, + 0.35, + 0.19, + 0.05, 0.01, - 0.01, - //0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01 + 0.03, + 0.03, + 0.05, + 0.06 }; }; class Hospital: Default { @@ -658,26 +536,11 @@ class CfgBuildingLoot { lootChance = 0.4; lootPos[] = {}; itemType[] = { - { "M9","weapon" }, - { "M16A2","weapon" }, - { "M16A2GL","weapon" }, - { "M9SD","weapon" }, - { "AK_74","weapon" }, - { "M4A1_Aim","weapon" }, - { "AKS_74_kobra","weapon" }, - { "AKS_74_U","weapon" }, - { "AK_47_M","weapon" }, - { "M24","weapon" }, - { "M1014","weapon" }, - { "M4SPR","weapon" }, - { "M4A1","weapon" }, - { "M14_EP1","weapon" }, - { "UZI_EP1","weapon" }, - { "Remington870_lamp","weapon" }, - { "glock17_EP1","weapon" }, - { "MP5A5","weapon" }, - { "MP5SD","weapon" }, - { "M4A3_CCO_EP1","weapon" }, + { "pistols","cfglootweapon" }, + { "assaultrifles","cfglootweapon" }, + { "sniperrifles","cfglootweapon" }, + { "shotgunsingleshot","cfglootweapon" }, + { "submachinegun","cfglootweapon" }, { "Binocular","weapon" }, { "ItemFlashlightRed","military" }, { "ItemKnife","military" }, @@ -687,40 +550,16 @@ class CfgBuildingLoot { { "","medical" }, { "","generic" }, { "","military" }, - { "Sa61_EP1","weapon"}, - { "UZI_SD_EP1","weapon"}, { "ItemEtool","weapon" }, - {"ItemSandbag","magazine"}, - {"Sa58P_EP1","weapon"}, - {"Sa58V_EP1","weapon"}, - {"BAF_L85A2_RIS_Holo","weapon"}, - {"Saiga12K","weapon" }, - {"Bizon","weapon" }, - {"M8_SAW","weapon" }, - {"MG36","weapon" }, - {"RPK_74","weapon" }, + { "ItemSandbag","magazine" }, + { "machineguns","cfglootweapon" } }; itemChance[] = { - 0.01, - 0.01, - 0.01, - 0.01, - 0.02, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.02, - 0.01, - 0.01, - 0.01, - 0.02, - 0.02, - 0.02, - 0.02, - 0.01, - 0.01, + 0.04, + 0.13, + 0.04, + 0.06, + 0.07, 0.03, 0.04, 0.01, @@ -729,24 +568,13 @@ class CfgBuildingLoot { 0.05, 0.03, 0.1, - 0.35, - 0.01, - 0.01, + 0.3, 0.02, 0.02, - 0.01, - 0.02, - 0.01, - 0.02, //saiga - 0.02, //bizon - 0.01, //m8_saw - 0.01, //mg36 - 0.01 //rpk_74 + 0.03 }; itemTypeSmall[] = { - { "M9","weapon" }, - { "M9SD","weapon" }, - { "glock17_EP1","weapon" }, + { "pistols","cfglootweapon" }, { "Binocular","weapon" }, { "ItemFlashlightRed","weapon" }, { "ItemKnife","weapon" }, @@ -755,13 +583,11 @@ class CfgBuildingLoot { { "","medical" }, { "","generic" }, { "","military" }, - { "UZI_SD_EP1","weapon"}, + { "submachinegun","cfglootweapon" }, { "ItemEtool","weapon" } }; itemChanceSmall[] = { - 0.05, - 0.05, - 0.05, + 0.15, 0.02, 0.03, 0.04, @@ -781,26 +607,14 @@ class CfgBuildingLoot { lootChance = 0.4; lootPos[] = {}; itemType[] = { - { "M9","weapon" }, - { "M16A2","weapon" }, - { "M16A2GL","weapon" }, - { "M9SD","weapon" }, + { "pistols","cfglootweapon" }, + { "assaultrifles","cfglootweapon" }, { "PartGeneric","magazine" }, - { "M4A1_Aim","weapon" }, - { "AKS_74_kobra","weapon" }, - { "AKS_74_U","weapon" }, - { "AK_47_M","weapon" }, - { "M24","weapon" }, - { "M1014","weapon" }, + { "sniperrifles","cfglootweapon" }, + { "shotgunsingleshot","cfglootweapon" }, { "ItemGenerator","magazine" }, - { "M4A1","weapon" }, - { "M14_EP1","weapon" }, - { "UZI_EP1","weapon" }, - { "Remington870_lamp","weapon" }, - { "glock17_EP1","weapon" }, + { "submachinegun","cfglootweapon" }, { "PartWheel","magazine" }, - { "MP5SD","weapon" }, - { "M4A3_CCO_EP1","weapon" }, { "Binocular","weapon" }, { "ItemFlashlightRed","military" }, { "ItemKnife","military" }, @@ -810,38 +624,21 @@ class CfgBuildingLoot { { "","medical" }, { "","generic" }, { "","military" }, - { "Sa61_EP1","weapon"}, - { "UZI_SD_EP1","weapon"}, { "ItemEtool","weapon" }, - {"ItemSandbag","magazine"}, - {"Sa58P_EP1","weapon"}, - {"Sa58V_EP1","weapon"}, - {"BAF_L85A2_RIS_Holo","weapon"}, - {"ItemFuelBarrel","magazine"}, - {"ItemFuelPump","magazine"}, - {"RPK_74","weapon"}, - {"Saiga12K","weapon"} + { "ItemSandbag","magazine" }, + { "ItemFuelBarrel","magazine" }, + { "ItemFuelPump","magazine" }, + { "machineguns","cfglootweapon" } }; itemChance[] = { - 0.01, - 0.01, - 0.01, - 0.01, + 0.02, + 0.1, 0.03, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, 0.02, + 0.05, 0.01, - 0.01, - 0.01, + 0.05, 0.02, - 0.02, - 0.02, - 0.02, - 0.01, 0.01, 0.03, 0.04, @@ -849,26 +646,16 @@ class CfgBuildingLoot { 0.01, 0.03, 0.05, - 0.03, - 0.06, 0.35, - 0.01, - 0.01, + 0.07, + 0.03, 0.02, 0.03, 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, 0.01 }; itemTypeSmall[] = { - { "M9","weapon" }, - { "M9SD","weapon" }, - { "UZI_EP1","weapon" }, - { "glock17_EP1","weapon" }, + { "pistols","cfglootweapon" }, { "Binocular","weapon" }, { "ItemFlashlightRed","weapon" }, { "ItemKnife","weapon" }, @@ -876,14 +663,12 @@ class CfgBuildingLoot { { "","medical" }, { "","generic" }, { "","military" }, - { "UZI_SD_EP1","weapon"}, + { "submachinegun","cfglootweapon" }, { "ItemEtool","weapon" } }; itemChanceSmall[] = { + 0.12, 0.05, - 0.05, - 0.05, - 0.02, 0.03, 0.04, 0.02, @@ -891,8 +676,7 @@ class CfgBuildingLoot { 0.09, 0.34, 0.26, - 0.02, - 0.01 + 0.03 }; }; class MilitarySpecial: Default { @@ -903,32 +687,12 @@ class CfgBuildingLoot { lootChance = 0.4; lootPos[] = {}; itemType[] = { - { "M16A2","weapon" }, - { "M16A2GL","weapon" }, - { "M249_DZ","weapon" }, - { "M9SD","weapon" }, - { "Pecheneg_DZ","weapon"}, - { "AK_74","weapon" }, - { "M4A1_Aim","weapon" }, - { "AKS_74_kobra","weapon" }, - { "AKS_74_U","weapon" }, - { "AK_47_M","weapon" }, - { "M24","weapon" }, - { "SVD_CAMO","weapon" }, - { "M1014","weapon" }, - { "BAF_LRR_scoped","weapon" }, - { "M4SPR","weapon" }, - { "M4A1","weapon" }, - { "M14_EP1","weapon" }, - { "UZI_EP1","weapon" }, - { "Remington870_lamp","weapon" }, - { "glock17_EP1","weapon" }, - { "M240_DZ","weapon" }, - { "M4A1_AIM_SD_camo","weapon" }, - { "M16A4_ACG","weapon" }, - { "M4A1_HWS_GL_camo","weapon" }, - { "Mk_48_DZ","weapon" }, - { "M4A3_CCO_EP1","weapon" }, + { "assaultrifles","cfglootweapon" }, + { "machineguns","cfglootweapon" }, + { "pistols","cfglootweapon" }, + { "sniperrifles","cfglootweapon" }, + { "shotgunsingleshot","cfglootweapon" }, + { "submachinegun","cfglootweapon" }, { "AmmoBoxSmall_556","object" }, { "AmmoBoxSmall_762","object" }, { "Binocular","weapon" }, @@ -941,47 +705,18 @@ class CfgBuildingLoot { { "","medical" }, { "","generic" }, { "","military" }, - {"Sa58V_RCO_EP1","weapon"}, - {"Sa58V_CCO_EP1","weapon"}, - {"G36_C_SD_camo","weapon"}, - {"M40A3","weapon"}, - {"100Rnd_762x54_PK","magazine"}, + { "machinegunammo","single" }, { "militaryclothes","single" }, - {"NVGoggles","weapon"}, - { "militaryammo","single" }, - {"M60A4_EP1_DZE","weapon" }, - {"m240_scoped_EP1_DZE","weapon" }, - {"M249_m145_EP1_DZE","weapon" }, - {"MG36_camo","weapon" }, + { "NVGoggles","weapon" }, + { "militaryammo","single" } }; itemChance[] = { - 0.01, - 0.01, - 0.01, + 0.1, + 0.04, + 0.08, 0.02, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.02, - 0.01, - 0.01, - 0.01, - 0.01, - 0.02, - 0.02, - 0.03, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, + 0.05, + 0.06, 0.01, 0.02, 0.01, @@ -997,18 +732,11 @@ class CfgBuildingLoot { 0.01, 0.01, 0.01, - 0.02, - 0.01, - 0.01, - 0.03, - 0.01, //m60 - 0.01, //m240_scoped - 0.01, //m249 scoped - 0.01 //mg36 camo + 0.05 + }; itemTypeSmall[] = { - { "M9SD","weapon" }, - { "glock17_EP1","weapon" }, + { "pistols","cfglootweapon" }, { "AmmoBoxSmall_556","object" }, { "AmmoBoxSmall_762","object" }, { "Binocular","weapon" }, @@ -1020,18 +748,17 @@ class CfgBuildingLoot { { "","medical" }, { "","generic" }, { "","military" }, - {"100Rnd_762x54_PK","magazine"}, + { "machinegunammo","single" }, { "militaryclothes","single" }, - {"NVGoggles","weapon"}, - {"29Rnd_30mm_AGS30","magazine"}, - {"50Rnd_127x107_DSHKM","magazine"}, - {"48Rnd_40mm_MK19","magazine"}, - {"100Rnd_127x99_M2","magazine"}, - {"100Rnd_556x45_BetaCMag","magazine" } + { "NVGoggles","weapon" }, + { "29Rnd_30mm_AGS30","magazine" }, + { "50Rnd_127x107_DSHKM","magazine" }, + { "48Rnd_40mm_MK19","magazine" }, + { "100Rnd_127x99_M2","magazine" }, + { "machinegunammo","single" } }; itemChanceSmall[] = { - 0.04, - 0.04, + 0.08, 0.02, 0.02, 0.02, @@ -1042,7 +769,7 @@ class CfgBuildingLoot { 0.03, 0.06, 0.13, - 0.32, + 0.3, 0.05, 0.03, 0.03, @@ -1065,10 +792,9 @@ class CfgBuildingLoot { {"ItemFlashlight","generic"}, {"ItemKnife","generic"}, {"ItemMatchbox_DZE","generic"}, - {"Crossbow_DZ","weapon"}, + {"farmweapons","cfglootweapon"}, {"","military"}, {"WeaponHolder_ItemMachete", "object"}, - {"huntingrifle","weapon"}, {"","hunter"} }; itemChance[] = { @@ -1076,10 +802,9 @@ class CfgBuildingLoot { 0.01, 0.01, 0.03, - 0.01, + 0.03, 0.38, 0.02, - 0.02, 0.5 }; itemTypeSmall[] = { diff --git a/SQF/dayz_code/Configs/CfgBuildingLoot/cfgLoot.hpp b/SQF/dayz_code/Configs/CfgBuildingLoot/cfgLoot.hpp index fd9b23412..7210294c0 100644 --- a/SQF/dayz_code/Configs/CfgBuildingLoot/cfgLoot.hpp +++ b/SQF/dayz_code/Configs/CfgBuildingLoot/cfgLoot.hpp @@ -749,4 +749,283 @@ class CfgLoot { 0.30 } }; + + pistols[] = { + { + "Makarov", + "Colt1911", + "revolver_EP1", + "glock17_EP1", + "MakarovSD", + "M9", + "M9SD", + "revolver_gold_EP1" + }, + { + 0.25, + 0.23, + 0.20, + 0.10, + 0.10, + 0.07, + 0.04, + 0.01 + } + }; + + shotgunsingleshot[] = { + { + "Winchester1866", + "LeeEnfield", + "MR43", + "Saiga12K", + "Remington870_lamp", + "Crossbow_DZ", + "M1014", + }, + { + 0.25, + 0.20, + 0.20, + 0.13, + 0.10, + 0.07, + 0.05 + } + }; + + farmweapons[] = { + { + "Winchester1866", + "LeeEnfield", + "MR43", + "Saiga12K", + "Remington870_lamp", + "Crossbow_DZ", + "huntingrifle", + }, + { + 0.25, + 0.20, + 0.20, + 0.13, + 0.10, + 0.07, + 0.05 + } + }; + + sniperrifles[] = { + { + "AK_107_PSO", + "M4SPR", + "M40A3", + "SVD_CAMO", + "SVD_des_EP1", + "SVD", + "huntingrifle", + "M24_des_EP1", + "M24", + "BAF_LRR_scoped", + "KSVK", + "VSS_vintorez", + "SCAR_H_LNG_Sniper_SD", + "M14_EP1", + "DMR", + }, + { + 0.1, + 0.09, + 0.09, + 0.09, + 0.09, + 0.09, + 0.09, + 0.08, + 0.07, + 0.06, + 0.05, + 0.04, + 0.03, + 0.02, + 0.01 + } + }; + sniperriflesammo[] = { + { + "30Rnd_545x39_AKSD", + "5Rnd_127x108_KSVK", + "5Rnd_86x70_L115A1", + "10Rnd_762x54_SVD", + "20Rnd_762x51_DMR", + "5Rnd_762x51_M24", + "5x_22_LR_17_HMR", + "20Rnd_762x51_SB_SCAR", + "20Rnd_9x39_SP5_VSS" + }, + { + 0.25, + 0.20, + 0.20, + 0.13, + 0.10, + 0.07, + 0.05 + } + }; + submachinegun[] = { + { + "UZI_EP1", + "bizon", + "Sa61_EP1", + "MP5A5", + "bizon_silenced", + "UZI_SD_EP1", + "MP5SD", + }, + { + 0.25, + 0.20, + 0.20, + 0.13, + 0.10, + 0.07, + 0.05 + } + }; + + assaultrifles[] = { + { + "AKS_74_kobra", + "AKS_74_U", + "AKS_GOLD", + "AK_47_M", + "AK_74", + "FN_FAL", + "FN_FAL_ANPVS4", + "G36A_camo", + "G36C", + "G36C_camo", + "G36K_camo", + "G36_C_SD_camo", + "M16A2", + "M16A2GL", + "M16A4_ACG", + "M4A1", + "M4A1_Aim", + "M4A1_AIM_SD_camo", + "M4A1_HWS_GL_camo", + "M4A3_CCO_EP1", + "Sa58P_EP1", + "Sa58V_CCO_EP1", + "Sa58V_EP1", + "Sa58V_RCO_EP1", + "m8_compact", + "m8_sharpshooter", + "m8_holo_sd", + "m8_carbine", + "BAF_L85A2_RIS_SUSAT", + "BAF_L85A2_RIS_Holo" + }, + { + 0.05, + 0.05, + 0.01, + 0.05, + 0.05, + 0.03, + 0.01, + 0.05, + 0.05, + 0.05, + 0.05, + 0.03, + 0.05, + 0.02, + 0.01, + 0.05, + 0.04, + 0.01, + 0.01, + 0.04, + 0.02, + 0.04, + 0.02, + 0.04, + 0.03, + 0.04, + 0.02, + 0.05, + 0.02, + 0.01 + } + }; + + assaultrifleammo[] = { + { + "30Rnd_762x39_SA58", + "30Rnd_762x39_AK47", + "30Rnd_556x45_Stanag", + "30Rnd_545x39_AK", + "30Rnd_556x45_StanagSD", + "20Rnd_762x51_FNFAL", + }, + { + 0.25, + 0.20, + 0.20, + 0.11, + 0.12, + 0.07, + 0.05, + } + }; + + + machineguns[] = { + { + "RPK_74", + "M8_SAW", + "Pecheneg_DZ", + "MG36_camo", + "M60A4_EP1_DZE", + "MG36", + "M249_m145_EP1", + "m240_scoped_EP1_DZE", + "M240_DZ", + "M249_DZ", + "Mk_48_DZ" + }, + { + 0.11, + 0.11, + 0.1, + 0.1, + 0.1, + 0.1, + 0.1, + 0.1, + 0.08, + 0.05, + 0.05, + } + }; + machinegunammo[] = { + { + "100Rnd_556x45_BetaCMag", + "75Rnd_545x39_RPK", + "100Rnd_556x45", + "100Rnd_762x51_M240", + "100Rnd_762x54_PK", + "200Rnd_556x45_M249" + }, + { + 0.20, + 0.20, + 0.15, + 0.15, + 0.15, + 0.15, + } + }; };