diff --git a/SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp b/SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp index 70fd55c77..9e2dc4dc8 100644 --- a/SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp +++ b/SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp @@ -1,5 +1,4 @@ #include "cfgLoot.hpp" - class CfgBuildingLoot { class Default { zombieChance = 0.2; @@ -23,81 +22,43 @@ class CfgBuildingLoot { zombieClass[] = {"zZombie_Base","z_hunter","z_teacher","z_villager1","z_villager2","z_villager3"}; lootChance = 0.4; lootPos[] = {}; - itemType[] = { - { "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[] = { + {"ItemWatch","generic",0.04} + ,{"ItemCompass","generic",0.03} + ,{"ItemMap","weapon",0.02} + ,{"pistols","cfglootweapon",0.1} + ,{"ItemFlashlight","generic",0.01} + ,{"ItemKnife","generic",0.04} + ,{"ItemMatchbox_DZE","generic",0.01} + ,{"","generic",0.36} + ,{"backpacks","backpack",0.04} + ,{"tents","single",0.01} + ,{"","military",0.02} + ,{"","trash",0.17} + ,{"Binocular","weapon",0.02} + ,{"PartPlywoodPack","magazine",0.02} + ,{"clothes","single",0.01} + ,{"specialclothes","single",0.01} + ,{"WeaponHolder_MeleeCrowbar","object",0.03} + ,{"shotgunsingleshot","cfglootweapon",0.06} }; - itemChance[] = { - 0.04, - 0.03, - 0.02, - 0.1, - 0.01, - 0.04, - 0.01, - 0.36, - 0.04, - 0.01, - 0.02, - 0.17, - 0.02, - 0.02, - 0.01, - 0.01, - 0.03, - 0.06 - }; - itemTypeSmall[] = { - { "ItemSodaMdew","magazine" }, - { "ItemSodaRbull","magazine" }, - { "ItemSodaOrangeSherbet","magazine" }, - { "ItemWatch","weapon" }, - { "ItemCompass","weapon" }, - { "ItemMap","weapon" }, - { "pistols","cfglootweapon" }, - { "ItemFlashlight","weapon" }, - { "ItemKnife","weapon" }, - { "ItemMatchbox_DZE","weapon" }, - { "","generic" }, - { "","military" }, - { "","trash" }, - { "Binocular","weapon" }, - { "clothes","single" }, - { "specialclothes","single" } - }; - itemChanceSmall[] = { - 0.01, - 0.01, - 0.02, - 0.05, - 0.04, - 0.03, - 0.12, - 0.02, - 0.04, - 0.03, - 0.38, - 0.04, - 0.17, - 0.02, - 0.01, - 0.01 + itemChanceSmall[] = { + {"ItemSodaMdew","magazine",0.01} + ,{"ItemSodaRbull","magazine",0.01} + ,{"ItemSodaOrangeSherbet","magazine",0.02} + ,{"ItemWatch","weapon",0.05} + ,{"ItemCompass","weapon",0.04} + ,{"ItemMap","weapon",0.03} + ,{"pistols","cfglootweapon",0.12} + ,{"ItemFlashlight","weapon",0.02} + ,{"ItemKnife","weapon",0.04} + ,{"ItemMatchbox_DZE","weapon",0.03} + ,{"","generic",0.38} + ,{"","military",0.04} + ,{"","trash",0.17} + ,{"Binocular","weapon",0.02} + ,{"clothes","single",0.01} + ,{"specialclothes","single",0.01} }; }; class Office: Default { @@ -106,85 +67,45 @@ class CfgBuildingLoot { zombieChance = 0.3; lootChance = 0.4; lootPos[] = {}; - itemType[] = { - { "ItemWatch","generic" }, - { "ItemCompass","generic" }, - { "ItemMap","weapon" }, - { "pistols","cfglootweapon" }, - { "ItemFlashlight","generic" }, - { "ItemKnife","generic" }, - { "ItemMatchbox_DZE","generic" }, - { "","generic" }, - { "shotgunsingleshot","cfglootweapon" }, - { "backpacks","backpack" }, - { "tents","single" }, - { "","military" }, - { "","trash" }, - { "Binocular","weapon" }, - { "PartPlywoodPack","magazine" }, - { "clothes","single" }, - { "specialclothes","single" }, - { "WeaponHolder_MeleeCrowbar","object" }, - { "ItemBriefcaseEmpty","magazine" } + itemChance[] = { + {"ItemWatch","generic",0.04} + ,{"ItemCompass","generic",0.03} + ,{"ItemMap","weapon",0.02} + ,{"pistols","cfglootweapon",0.11} + ,{"ItemFlashlight","generic",0.01} + ,{"ItemKnife","generic",0.04} + ,{"ItemMatchbox_DZE","generic",0.01} + ,{"","generic",0.31} + ,{"shotgunsingleshot","cfglootweapon",0.05} + ,{"backpacks","backpack",0.04} + ,{"tents","single",0.01} + ,{"","military",0.02} + ,{"","trash",0.21} + ,{"Binocular","weapon",0.02} + ,{"PartPlywoodPack","magazine",0.02} + ,{"clothes","single",0.01} + ,{"specialclothes","single",0.01} + ,{"WeaponHolder_MeleeCrowbar","object",0.03} + ,{"ItemBriefcaseEmpty","magazine",0.01} }; - itemChance[] = { - 0.04, - 0.03, - 0.02, - 0.11, - 0.01, - 0.04, - 0.01, - 0.31, - 0.05, - 0.04, - 0.01, - 0.02, - 0.21, - 0.02, - 0.02, - 0.01, - 0.01, - 0.03, - 0.01 - }; - itemTypeSmall[] = { - { "ItemSodaMdew","magazine" }, - { "ItemSodaRbull","magazine" }, - { "ItemSodaOrangeSherbet","magazine" }, - { "ItemWatch","weapon" }, - { "ItemCompass","weapon" }, - { "ItemMap","weapon" }, - { "pistols","cfglootweapon" }, - { "ItemFlashlight","weapon" }, - { "ItemKnife","weapon" }, - { "ItemMatchbox_DZE","weapon" }, - { "","generic" }, - { "","military" }, - { "","trash" }, - { "Binocular","weapon" }, - { "clothes","single" }, - { "specialclothes","single" }, - { "ItemDocument","magazine" } - }; - itemChanceSmall[] = { - 0.01, - 0.01, - 0.02, - 0.05, - 0.04, - 0.03, - 0.15, - 0.02, - 0.05, - 0.03, - 0.31, - 0.04, - 0.03, - 0.02, - 0.16, - 0.02, - 0.01 + itemChanceSmall[] = { + {"ItemSodaMdew","magazine",0.01} + ,{"ItemSodaRbull","magazine",0.01} + ,{"ItemSodaOrangeSherbet","magazine",0.02} + ,{"ItemWatch","weapon",0.05} + ,{"ItemCompass","weapon",0.04} + ,{"ItemMap","weapon",0.03} + ,{"pistols","cfglootweapon",0.15} + ,{"ItemFlashlight","weapon",0.02} + ,{"ItemKnife","weapon",0.05} + ,{"ItemMatchbox_DZE","weapon",0.03} + ,{"","generic",0.31} + ,{"","military",0.04} + ,{"","trash",0.03} + ,{"Binocular","weapon",0.02} + ,{"clothes","single",0.16} + ,{"specialclothes","single",0.02} + ,{"ItemDocument","magazine",0.01} }; }; class Industrial: Default { @@ -193,63 +114,34 @@ class CfgBuildingLoot { maxRoaming = 2; lootChance = 0.4; lootPos[] = {}; - itemType[] = { - { "ItemGenerator","magazine" }, - { "ItemFuelBarrelEmpty","magazine"}, - { "","generic" }, - { "","trash" }, - { "","military" }, - { "PartGeneric","magazine" }, - { "PartWheel","magazine" }, - { "PartFueltank","magazine" }, - { "PartEngine","magazine" }, - { "PartGlass","magazine" }, - { "PartVRotor","magazine" }, - { "ItemJerrycan","magazine" }, - { "WeaponHolder_ItemHatchet_DZE","object" }, - { "ItemKnife","military" }, - { "ItemToolbox","weapon" }, - { "ItemWire","magazine" }, - { "ItemTankTrap","magazine" }, - { "ItemKeyKit","weapon" }, - { "CinderBlocks","magazine" }, - { "MortarBucket","magazine" } + itemChance[] = { + {"ItemGenerator","magazine",0.01} + ,{"ItemFuelBarrelEmpty","magazine",0.01} + ,{"","generic",0.17} + ,{"","trash",0.25} + ,{"","military",0.04} + ,{"PartGeneric","magazine",0.04} + ,{"PartWheel","magazine",0.05} + ,{"PartFueltank","magazine",0.02} + ,{"PartEngine","magazine",0.02} + ,{"PartGlass","magazine",0.04} + ,{"PartVRotor","magazine",0.01} + ,{"ItemJerrycan","magazine",0.04} + ,{"WeaponHolder_ItemHatchet_DZE","object",0.07} + ,{"ItemKnife","military",0.07} + ,{"ItemToolbox","weapon",0.06} + ,{"ItemWire","magazine",0.01} + ,{"ItemTankTrap","magazine",0.04} + ,{"ItemKeyKit","weapon",0.01} + ,{"CinderBlocks","magazine",0.03} + ,{"MortarBucket","magazine",0.01} }; - itemChance[] = { - 0.01, - 0.01, - 0.17, - 0.25, - 0.04, - 0.04, - 0.05, - 0.02, - 0.02, - 0.04, - 0.01, - 0.04, - 0.07, - 0.07, - 0.06, - 0.01, - 0.04, - 0.01, - 0.03, - 0.01 - }; - itemTypeSmall[] = { - { "","generic" }, - { "","trash" }, - { "","military" }, - { "ItemKnife","weapon" }, - { "ItemKeyKit","weapon" } - }; - itemChanceSmall[] = { - 0.5, - 0.28, - 0.14, - 0.07, - 0.01 + itemChanceSmall[] = { + {"","generic",0.5} + ,{"","trash",0.28} + ,{"","military",0.14} + ,{"ItemKnife","weapon",0.07} + ,{"ItemKeyKit","weapon",0.01} }; }; class IndustrialFuel: Default { @@ -258,59 +150,32 @@ class CfgBuildingLoot { maxRoaming = 2; lootChance = 0.4; lootPos[] = {}; - itemType[] = { - { "ItemGenerator","magazine" }, - {"ItemFuelPump","magazine"}, - { "","generic" }, - { "","trash" }, - { "","military" }, - { "PartGeneric","magazine" }, - { "PartWheel","magazine" }, - { "PartFueltank","magazine" }, - { "PartEngine","magazine" }, - { "PartGlass","magazine" }, - { "PartVRotor","magazine" }, - { "ItemJerrycan","magazine" }, - { "WeaponHolder_ItemHatchet_DZE","object" }, - { "ItemKnife","military" }, - { "ItemToolbox","weapon" }, - { "ItemWire","magazine" }, - {"ItemTankTrap","magazine"}, - {"ItemKeyKit","weapon"} + itemChance[] = { + {"ItemGenerator","magazine",0.01} + ,{"ItemFuelPump","magazine",0.01} + ,{"","generic",0.18} + ,{"","trash",0.28} + ,{"","military",0.04} + ,{"PartGeneric","magazine",0.04} + ,{"PartWheel","magazine",0.05} + ,{"PartFueltank","magazine",0.02} + ,{"PartEngine","magazine",0.02} + ,{"PartGlass","magazine",0.04} + ,{"PartVRotor","magazine",0.01} + ,{"ItemJerrycan","magazine",0.04} + ,{"WeaponHolder_ItemHatchet_DZE","object",0.07} + ,{"ItemKnife","military",0.07} + ,{"ItemToolbox","weapon",0.06} + ,{"ItemWire","magazine",0.01} + ,{"ItemTankTrap","magazine",0.04} + ,{"ItemKeyKit","weapon",0.01} }; - itemChance[] = { - 0.01, - 0.01, - 0.18, - 0.28, - 0.04, - 0.04, - 0.05, - 0.02, - 0.02, - 0.04, - 0.01, - 0.04, - 0.07, - 0.07, - 0.06, - 0.01, - 0.04, - 0.01 - }; - itemTypeSmall[] = { - { "","generic" }, - { "","trash" }, - { "","military" }, - { "ItemKnife","weapon" }, - { "ItemKeyKit","weapon" } - }; - itemChanceSmall[] = { - 0.5, - 0.28, - 0.14, - 0.07, - 0.01 + itemChanceSmall[] = { + {"","generic",0.5} + ,{"","trash",0.28} + ,{"","military",0.14} + ,{"ItemKnife","weapon",0.07} + ,{"ItemKeyKit","weapon",0.01} }; }; class Farm: Default { @@ -319,45 +184,25 @@ class CfgBuildingLoot { zombieClass[] = {"zZombie_Base","z_hunter","z_hunter","z_hunter","z_villager1","z_villager2","z_villager3"}; lootChance = 0.5; lootPos[] = {}; - itemType[] = { - { "ItemJerrycan","magazine" }, - { "","generic" }, - { "farmweapons","cfglootweapon" }, - { "","trash" }, - { "PartPlankPack","magazine" }, - { "WeaponHolder_ItemHatchet_DZE","object" }, - { "ItemFuelBarrelEmpty","magazine"}, - { "WeaponHolder_ItemMachete", "object"}, - { "ItemFishingPole","weapon" }, - { "ItemLightBulb","magazine"}, - { "ItemSledgeHandle","magazine"} + itemChance[] = { + {"ItemJerrycan","magazine",0.05} + ,{"","generic",0.3} + ,{"farmweapons","cfglootweapon",0.18} + ,{"","trash",0.26} + ,{"PartPlankPack","magazine",0.06} + ,{"WeaponHolder_ItemHatchet_DZE","object",0.05} + ,{"ItemFuelBarrelEmpty","magazine",0.01} + ,{"WeaponHolder_ItemMachete","object",0.03} + ,{"ItemFishingPole","weapon",0.02} + ,{"ItemLightBulb","magazine",0.02} + ,{"ItemSledgeHandle","magazine",0.02} }; - itemChance[] = { - 0.05, - 0.3, - 0.18, - 0.26, - 0.06, - 0.05, - 0.01, - 0.03, - 0.02, - 0.02, - 0.02 - }; - itemTypeSmall[] = { - { "","generic" }, - { "","trash" }, - { "","military"}, - { "ItemLightBulb","magazine"}, - { "ItemSledgeHead","magazine"} - }; - itemChanceSmall[] = { - 0.79, - 0.14, - 0.05, - 0.01, - 0.01 + itemChanceSmall[] = { + {"","generic",0.79} + ,{"","trash",0.14} + ,{"","military",0.05} + ,{"ItemLightBulb","magazine",0.01} + ,{"ItemSledgeHead","magazine",0.01} }; }; class Supermarket: Default { @@ -366,73 +211,39 @@ class CfgBuildingLoot { maxRoaming = 6; zombieChance = 0.3; zombieClass[] = {"zZombie_Base","zZombie_Base","z_teacher","z_suit1","z_suit2"}; - itemType[] = { - { "ItemWatch","generic" }, - { "ItemCompass","generic" }, - { "ItemMap","weapon" }, - { "pistols","cfglootweapon" }, - { "ItemFlashlight","generic" }, - { "ItemKnife","generic" }, - { "ItemMatchbox_DZE","generic" }, - { "","generic" }, - { "shotgunsingleshot","cfglootweapon" }, - { "backpacks","backpack" }, - { "tents","single" }, - { "","food" }, - { "","trash" }, - { "Binocular","weapon" }, - { "PartPlywoodPack","magazine" } + itemChance[] = { + {"ItemWatch","generic",0.07} + ,{"ItemCompass","generic",0.02} + ,{"ItemMap","weapon",0.04} + ,{"pistols","cfglootweapon",0.04} + ,{"ItemFlashlight","generic",0.01} + ,{"ItemKnife","generic",0.02} + ,{"ItemMatchbox_DZE","generic",0.04} + ,{"","generic",0.04} + ,{"shotgunsingleshot","cfglootweapon",0.04} + ,{"backpacks","backpack",0.07} + ,{"tents","single",0.01} + ,{"","food",0.3} + ,{"","trash",0.23} + ,{"Binocular","weapon",0.05} + ,{"PartPlywoodPack","magazine",0.02} }; - itemChance[] = { - 0.07, - 0.02, - 0.04, - 0.04, - 0.01, - 0.02, - 0.04, - 0.04, - 0.04, - 0.07, - 0.01, - 0.30, - 0.23, - 0.05, - 0.02 - }; - itemTypeSmall[] = { - { "ItemSodaMdew","magazine" }, - { "ItemSodaRbull","magazine" }, - { "ItemSodaOrangeSherbet","magazine" }, - { "ItemWatch","weapon" }, - { "ItemCompass","weapon" }, - { "ItemMap","weapon" }, - { "pistols","cfglootweapon" }, - { "ItemFlashlight","weapon" }, - { "ItemKnife","weapon" }, - { "ItemMatchbox_DZE","weapon" }, - { "","generic" }, - { "","food" }, - { "","trash" }, - { "Binocular","weapon" }, - { "ItemMixOil", "magazine"} - }; - itemChanceSmall[] = { - 0.01, - 0.01, - 0.03, - 0.07, - 0.03, - 0.05, - 0.08, - 0.01, - 0.02, - 0.04, - 0.21, - 0.24, - 0.16, - 0.02, - 0.02 + itemChanceSmall[] = { + {"ItemSodaMdew","magazine",0.01} + ,{"ItemSodaRbull","magazine",0.01} + ,{"ItemSodaOrangeSherbet","magazine",0.03} + ,{"ItemWatch","weapon",0.07} + ,{"ItemCompass","weapon",0.03} + ,{"ItemMap","weapon",0.05} + ,{"pistols","cfglootweapon",0.08} + ,{"ItemFlashlight","weapon",0.01} + ,{"ItemKnife","weapon",0.02} + ,{"ItemMatchbox_DZE","weapon",0.04} + ,{"","generic",0.21} + ,{"","food",0.24} + ,{"","trash",0.16} + ,{"Binocular","weapon",0.02} + ,{"ItemMixOil","magazine",0.02} }; }; class HeliCrash: Default { @@ -441,35 +252,20 @@ class CfgBuildingLoot { zombieClass[] = {"z_soldier_pilot"}; lootChance = 0.5; lootPos[] = {}; - itemType[] = { - { "assaultrifles","cfglootweapon" }, - { "submachinegun","cfglootweapon" }, - { "sniperrifles","cfglootweapon" }, - { "machineguns","cfglootweapon" }, - { "","military" }, - { "","medical" }, - { "MAAWS", "weapon" }, - { "MedBox0","object" }, - { "NVGoggles","weapon" }, - { "AmmoBoxSmall_556","object" }, - { "AmmoBoxSmall_762","object" }, - { "militaryclothes","single" }, - { "militaryammo","single" } - }; - itemChance[] = { - 0.10, - 0.04, - 0.07, - 0.06, - 0.3, - 0.18, - 0.02, - 0.05, - 0.01, - 0.03, - 0.03, - 0.05, - 0.06 + itemChance[] = { + {"assaultrifles","cfglootweapon",0.1} + ,{"submachinegun","cfglootweapon",0.04} + ,{"sniperrifles","cfglootweapon",0.07} + ,{"machineguns","cfglootweapon",0.06} + ,{"","military",0.3} + ,{"","medical",0.18} + ,{"MAAWS","weapon",0.02} + ,{"MedBox0","object",0.05} + ,{"NVGoggles","weapon",0.01} + ,{"AmmoBoxSmall_556","object",0.03} + ,{"AmmoBoxSmall_762","object",0.03} + ,{"militaryclothes","single",0.05} + ,{"militaryammo","single",0.06} }; }; class HeliCrash_No50s: Default { @@ -478,35 +274,20 @@ class CfgBuildingLoot { zombieClass[] = {"z_soldier_pilot"}; lootChance = 0.5; lootPos[] = {}; - itemType[] = { - { "assaultrifles","cfglootweapon" }, - { "submachinegun","cfglootweapon" }, - { "sniperrifles","cfglootweapon" }, - { "machineguns","cfglootweapon" }, - { "","military" }, - { "","medical" }, - { "MAAWS", "weapon" }, - { "MedBox0","object" }, - { "NVGoggles","weapon" }, - { "AmmoBoxSmall_556","object" }, - { "AmmoBoxSmall_762","object" }, - { "militaryclothes","single" }, - { "militaryammo","single" } - }; - itemChance[] = { - 0.09, - 0.03, - 0.05, - 0.05, - 0.35, - 0.18, - 0.02, - 0.05, - 0.01, - 0.03, - 0.03, - 0.05, - 0.06 + itemChance[] = { + {"assaultrifles","cfglootweapon",0.09} + ,{"submachinegun","cfglootweapon",0.03} + ,{"sniperrifles","cfglootweapon",0.05} + ,{"machineguns","cfglootweapon",0.05} + ,{"","military",0.35} + ,{"","medical",0.18} + ,{"MAAWS","weapon",0.02} + ,{"MedBox0","object",0.05} + ,{"NVGoggles","weapon",0.01} + ,{"AmmoBoxSmall_556","object",0.03} + ,{"AmmoBoxSmall_762","object",0.03} + ,{"militaryclothes","single",0.05} + ,{"militaryammo","single",0.06} }; }; class Hospital: Default { @@ -516,23 +297,14 @@ class CfgBuildingLoot { zombieClass[] = {"z_doctor","z_doctor","z_doctor"}; lootChance = 1; lootPos[] = {}; - itemType[] = { - { "","trash" }, - { "","hospital" }, - {"MedBox0","object"} + itemChance[] = { + {"","trash",0.1} + ,{"","hospital",0.7} + ,{"MedBox0","object",0.2} }; - itemChance[] = { - 0.1, - 0.7, - 0.2 - }; - itemTypeSmall[] = { - { "","trash" }, - { "","hospital" } - }; - itemChanceSmall[] = { - 0.1, - 0.9 + itemChanceSmall[] = { + {"","trash",0.1} + ,{"","hospital",0.9} }; }; class Military: Default { @@ -541,69 +313,37 @@ class CfgBuildingLoot { zombieClass[] = {"z_soldier","z_soldier_heavy","z_policeman"}; lootChance = 0.4; lootPos[] = {}; - itemType[] = { - { "pistols","cfglootweapon" }, - { "assaultrifles","cfglootweapon" }, - { "sniperrifles","cfglootweapon" }, - { "shotgunsingleshot","cfglootweapon" }, - { "submachinegun","cfglootweapon" }, - { "Binocular","weapon" }, - { "ItemFlashlightRed","military" }, - { "ItemKnife","military" }, - { "ItemGPS","weapon" }, - { "ItemMap","military" }, - { "militarybackpacks","backpack" }, - { "","medical" }, - { "","generic" }, - { "","military" }, - { "ItemEtool","weapon" }, - { "ItemSandbag","magazine" }, - { "machineguns","cfglootweapon" } + itemChance[] = { + {"pistols","cfglootweapon",0.04} + ,{"assaultrifles","cfglootweapon",0.13} + ,{"sniperrifles","cfglootweapon",0.04} + ,{"shotgunsingleshot","cfglootweapon",0.06} + ,{"submachinegun","cfglootweapon",0.07} + ,{"Binocular","weapon",0.03} + ,{"ItemFlashlightRed","military",0.04} + ,{"ItemKnife","military",0.01} + ,{"ItemGPS","weapon",0.01} + ,{"ItemMap","military",0.02} + ,{"militarybackpacks","backpack",0.05} + ,{"","medical",0.03} + ,{"","generic",0.1} + ,{"","military",0.3} + ,{"ItemEtool","weapon",0.02} + ,{"ItemSandbag","magazine",0.02} + ,{"machineguns","cfglootweapon",0.03} }; - itemChance[] = { - 0.04, - 0.13, - 0.04, - 0.06, - 0.07, - 0.03, - 0.04, - 0.01, - 0.01, - 0.02, - 0.05, - 0.03, - 0.1, - 0.3, - 0.02, - 0.02, - 0.03 - }; - itemTypeSmall[] = { - { "pistols","cfglootweapon" }, - { "Binocular","weapon" }, - { "ItemFlashlightRed","weapon" }, - { "ItemKnife","weapon" }, - { "ItemGPS","weapon" }, - { "ItemMap","weapon" }, - { "","medical" }, - { "","generic" }, - { "","military" }, - { "submachinegun","cfglootweapon" }, - { "ItemEtool","weapon" } - }; - itemChanceSmall[] = { - 0.15, - 0.02, - 0.03, - 0.04, - 0.02, - 0.02, - 0.09, - 0.34, - 0.26, - 0.02, - 0.01 + itemChanceSmall[] = { + {"pistols","cfglootweapon",0.15} + ,{"Binocular","weapon",0.02} + ,{"ItemFlashlightRed","weapon",0.03} + ,{"ItemKnife","weapon",0.04} + ,{"ItemGPS","weapon",0.02} + ,{"ItemMap","weapon",0.02} + ,{"","medical",0.09} + ,{"","generic",0.34} + ,{"","military",0.26} + ,{"submachinegun","cfglootweapon",0.02} + ,{"ItemEtool","weapon",0.01} }; }; class MilitaryIndustrial: Default { @@ -612,77 +352,41 @@ class CfgBuildingLoot { zombieClass[] = {"z_soldier","z_soldier_heavy","z_policeman","z_soldier","z_soldier_heavy","z_policeman","z_worker1","z_worker2","z_worker3"}; lootChance = 0.4; lootPos[] = {}; - itemType[] = { - { "pistols","cfglootweapon" }, - { "assaultrifles","cfglootweapon" }, - { "PartGeneric","magazine" }, - { "sniperrifles","cfglootweapon" }, - { "shotgunsingleshot","cfglootweapon" }, - { "ItemGenerator","magazine" }, - { "submachinegun","cfglootweapon" }, - { "PartWheel","magazine" }, - { "Binocular","weapon" }, - { "ItemFlashlightRed","military" }, - { "ItemKnife","military" }, - { "ItemGPS","weapon" }, - { "PartVRotor","magazine" }, - { "militarybackpacks","backpack" }, - { "","medical" }, - { "","generic" }, - { "","military" }, - { "ItemEtool","weapon" }, - { "ItemSandbag","magazine" }, - { "ItemFuelBarrelEmpty","magazine" }, - { "ItemFuelPump","magazine" }, - { "machineguns","cfglootweapon" } + itemChance[] = { + {"pistols","cfglootweapon",0.02} + ,{"assaultrifles","cfglootweapon",0.05} + ,{"PartGeneric","magazine",0.03} + ,{"sniperrifles","cfglootweapon",0.01} + ,{"shotgunsingleshot","cfglootweapon",0.05} + ,{"ItemGenerator","magazine",0.01} + ,{"submachinegun","cfglootweapon",0.05} + ,{"PartWheel","magazine",0.02} + ,{"Binocular","weapon",0.01} + ,{"ItemFlashlightRed","military",0.03} + ,{"ItemKnife","military",0.04} + ,{"ItemGPS","weapon",0.01} + ,{"PartVRotor","magazine",0.01} + ,{"militarybackpacks","backpack",0.03} + ,{"","medical",0.05} + ,{"","generic",0.35} + ,{"","military",0.07} + ,{"ItemEtool","weapon",0.03} + ,{"ItemSandbag","magazine",0.02} + ,{"ItemFuelBarrelEmpty","magazine",0.03} + ,{"ItemFuelPump","magazine",0.01} + ,{"machineguns","cfglootweapon",0.01} }; - itemChance[] = { - 0.02, - 0.05, - 0.03, - 0.01, - 0.05, - 0.01, - 0.05, - 0.02, - 0.01, - 0.03, - 0.04, - 0.01, - 0.01, - 0.03, - 0.05, - 0.35, - 0.07, - 0.03, - 0.02, - 0.03, - 0.01, - 0.01 - }; - itemTypeSmall[] = { - { "pistols","cfglootweapon" }, - { "Binocular","weapon" }, - { "ItemFlashlightRed","weapon" }, - { "ItemKnife","weapon" }, - { "ItemGPS","weapon" }, - { "","medical" }, - { "","generic" }, - { "","military" }, - { "submachinegun","cfglootweapon" }, - { "ItemEtool","weapon" } - }; - itemChanceSmall[] = { - 0.12, - 0.05, - 0.03, - 0.04, - 0.02, - 0.02, - 0.09, - 0.34, - 0.26, - 0.03 + itemChanceSmall[] = { + {"pistols","cfglootweapon",0.12} + ,{"Binocular","weapon",0.05} + ,{"ItemFlashlightRed","weapon",0.03} + ,{"ItemKnife","weapon",0.04} + ,{"ItemGPS","weapon",0.02} + ,{"","medical",0.02} + ,{"","generic",0.09} + ,{"","military",0.34} + ,{"submachinegun","cfglootweapon",0.26} + ,{"ItemEtool","weapon",0.03} }; }; class IndustrialMilitary: Default { @@ -691,83 +395,44 @@ class CfgBuildingLoot { zombieClass[] = {"z_soldier","z_soldier_heavy","z_policeman","z_soldier","z_soldier_heavy","z_policeman","z_worker1","z_worker2","z_worker3"}; lootChance = 0.5; lootPos[] = {}; - itemType[] = { - { "pistols","cfglootweapon" }, - { "assaultrifles","cfglootweapon" }, - { "PartGeneric","magazine" }, - { "sniperrifles","cfglootweapon" }, - { "shotgunsingleshot","cfglootweapon" }, - { "ItemGenerator","magazine" }, - { "submachinegun","cfglootweapon" }, - { "PartWheel","magazine" }, - { "Binocular","weapon" }, - { "ItemFlashlightRed","military" }, - { "ItemKnife","military" }, - { "ItemGPS","weapon" }, - { "PartVRotor","magazine" }, - { "PartFueltank","magazine" }, - { "PartEngine","magazine" }, - { "PartGlass","magazine" }, - { "militarybackpacks","backpack" }, - { "","medical" }, - { "","generic" }, - { "","military" }, - { "ItemEtool","weapon" }, - { "ItemSandbag","magazine" }, - { "ItemFuelBarrelEmpty","magazine" }, - { "ItemFuelPump","magazine" }, - { "machineguns","cfglootweapon" } + itemChance[] = { + {"pistols","cfglootweapon",0.02} + ,{"assaultrifles","cfglootweapon",0.05} + ,{"PartGeneric","magazine",0.03} + ,{"sniperrifles","cfglootweapon",0.01} + ,{"shotgunsingleshot","cfglootweapon",0.05} + ,{"ItemGenerator","magazine",0.01} + ,{"submachinegun","cfglootweapon",0.05} + ,{"PartWheel","magazine",0.02} + ,{"Binocular","weapon",0.01} + ,{"ItemFlashlightRed","military",0.03} + ,{"ItemKnife","military",0.04} + ,{"ItemGPS","weapon",0.01} + ,{"PartVRotor","magazine",0.01} + ,{"PartFueltank","magazine",0.03} + ,{"PartEngine","magazine",0.04} + ,{"PartGlass","magazine",0.05} + ,{"militarybackpacks","backpack",0.03} + ,{"","medical",0.05} + ,{"","generic",0.25} + ,{"","military",0.07} + ,{"ItemEtool","weapon",0.03} + ,{"ItemSandbag","magazine",0.02} + ,{"ItemFuelBarrelEmpty","magazine",0.03} + ,{"ItemFuelPump","magazine",0.01} + ,{"machineguns","cfglootweapon",0.01} }; - itemChance[] = { - 0.02, - 0.05, - 0.03, - 0.01, - 0.05, - 0.01, - 0.05, - 0.02, - 0.01, - 0.03, - 0.04, - 0.01, - 0.01, - 0.03, - 0.04, - 0.05, - 0.03, - 0.05, - 0.25, - 0.07, - 0.03, - 0.02, - 0.03, - 0.01, - 0.01 - }; - itemTypeSmall[] = { - { "pistols","cfglootweapon" }, - { "Binocular","weapon" }, - { "ItemFlashlightRed","weapon" }, - { "ItemKnife","weapon" }, - { "ItemGPS","weapon" }, - { "","medical" }, - { "","generic" }, - { "","military" }, - { "submachinegun","cfglootweapon" }, - { "ItemEtool","weapon" } - }; - itemChanceSmall[] = { - 0.12, - 0.05, - 0.03, - 0.04, - 0.02, - 0.02, - 0.09, - 0.34, - 0.26, - 0.03 + itemChanceSmall[] = { + {"pistols","cfglootweapon",0.12} + ,{"Binocular","weapon",0.05} + ,{"ItemFlashlightRed","weapon",0.03} + ,{"ItemKnife","weapon",0.04} + ,{"ItemGPS","weapon",0.02} + ,{"","medical",0.02} + ,{"","generic",0.09} + ,{"","military",0.34} + ,{"submachinegun","cfglootweapon",0.26} + ,{"ItemEtool","weapon",0.03} }; }; class MilitarySpecial: Default { @@ -777,94 +442,48 @@ class CfgBuildingLoot { zombieClass[] = {"z_soldier_heavy"}; lootChance = 0.4; lootPos[] = {}; - itemType[] = { - { "assaultrifles","cfglootweapon" }, - { "machineguns","cfglootweapon" }, - { "pistols","cfglootweapon" }, - { "sniperrifles","cfglootweapon" }, - { "militaryshotguns","cfglootweapon" }, - { "submachinegun","cfglootweapon" }, - { "AmmoBoxSmall_556","object" }, - { "AmmoBoxSmall_762","object" }, - { "Binocular","weapon" }, - { "ItemFlashlightRed","military" }, - { "ItemKnife","military" }, - { "ItemGPS","weapon" }, - { "ItemMap","military" }, - { "Binocular_Vector","military" }, - { "militarybackpacks","backpack" }, - { "","medical" }, - { "","generic" }, - { "","military" }, - { "machinegunammo","single" }, - { "militaryclothes","single" }, - { "NVGoggles","weapon" } + itemChance[] = { + {"assaultrifles","cfglootweapon",0.1} + ,{"machineguns","cfglootweapon",0.04} + ,{"pistols","cfglootweapon",0.08} + ,{"sniperrifles","cfglootweapon",0.03} + ,{"militaryshotguns","cfglootweapon",0.05} + ,{"submachinegun","cfglootweapon",0.06} + ,{"AmmoBoxSmall_556","object",0.01} + ,{"AmmoBoxSmall_762","object",0.02} + ,{"Binocular","weapon",0.01} + ,{"ItemFlashlightRed","military",0.02} + ,{"ItemKnife","military",0.01} + ,{"ItemGPS","weapon",0.01} + ,{"ItemMap","military",0.01} + ,{"Binocular_Vector","military",0.01} + ,{"militarybackpacks","backpack",0.04} + ,{"","medical",0.08} + ,{"","generic",0.3} + ,{"","military",0.01} + ,{"machinegunammo","single",0.05} + ,{"militaryclothes","single",0.05} + ,{"NVGoggles","weapon",0.01} }; - itemChance[] = { - 0.1, - 0.04, - 0.08, - 0.03, - 0.05, - 0.06, - 0.01, - 0.02, - 0.01, - 0.02, - 0.01, - 0.01, - 0.01, - 0.01, - 0.04, - 0.08, - 0.3, - 0.01, - 0.05, - 0.05, - 0.01 - - }; - itemTypeSmall[] = { - { "pistols","cfglootweapon" }, - { "AmmoBoxSmall_556","object" }, - { "AmmoBoxSmall_762","object" }, - { "Binocular","weapon" }, - { "ItemFlashlightRed","military" }, - { "ItemKnife","military" }, - { "ItemGPS","weapon" }, - { "ItemMap","weapon" }, - { "Binocular_Vector","weapon" }, - { "","medical" }, - { "","generic" }, - { "","military" }, - { "5Rnd_86x70_L115A1","magazine"}, - { "10Rnd_127x99_m107","magazine"}, - { "machinegunammoexpl","single" }, - { "militaryclothes","single" }, - { "NVGoggles","weapon" }, - { "100Rnd_762x54_PK","magazine" } - }; - itemChanceSmall[] = { - 0.10, - 0.02, - 0.02, - 0.02, - 0.01, - 0.02, - 0.01, - 0.03, - 0.01, - 0.06, - 0.15, - 0.33, - 0.02, - 0.02, - 0.05, - 0.04, - 0.02, - 0.05, - 0.01, - 0.01 + itemChanceSmall[] = { + {"pistols","cfglootweapon",0.1} + ,{"AmmoBoxSmall_556","object",0.02} + ,{"AmmoBoxSmall_762","object",0.02} + ,{"Binocular","weapon",0.02} + ,{"ItemFlashlightRed","military",0.01} + ,{"ItemKnife","military",0.02} + ,{"ItemGPS","weapon",0.01} + ,{"ItemMap","weapon",0.03} + ,{"Binocular_Vector","weapon",0.01} + ,{"","medical",0.06} + ,{"","generic",0.15} + ,{"","military",0.33} + ,{"5Rnd_86x70_L115A1","magazine",0.02} + ,{"10Rnd_127x99_m107","magazine",0.02} + ,{"machinegunammoexpl","single",0.05} + ,{"militaryclothes","single",0.04} + ,{"NVGoggles","weapon",0.02} + ,{"100Rnd_762x54_PK","magazine",0.05} }; }; class Hunting: Default { @@ -874,41 +493,23 @@ class CfgBuildingLoot { zombieClass[] = {"z_hunter","z_hunter","z_hunter"}; lootChance = 1; lootPos[] = {}; - itemType[] = { - {"ItemMap","weapon"}, - {"ItemFlashlight","generic"}, - {"ItemKnife","generic"}, - {"ItemMatchbox_DZE","generic"}, - {"farmweapons","cfglootweapon"}, - {"","military"}, - {"WeaponHolder_ItemMachete", "object"}, - {"","hunter"} + itemChance[] = { + {"ItemMap","weapon",0.02} + ,{"ItemFlashlight","generic",0.01} + ,{"ItemKnife","generic",0.01} + ,{"ItemMatchbox_DZE","generic",0.03} + ,{"farmweapons","cfglootweapon",0.03} + ,{"","military",0.38} + ,{"WeaponHolder_ItemMachete","object",0.02} + ,{"","hunter",0.5} }; - itemChance[] = { - 0.02, - 0.01, - 0.01, - 0.03, - 0.03, - 0.38, - 0.02, - 0.5 - }; - itemTypeSmall[] = { - {"ItemMap","weapon"}, - {"ItemFlashlight","weapon"}, - {"ItemKnife","weapon"}, - {"ItemMatchbox_DZE","weapon"}, - {"","military"}, - {"","hunter"} - }; - itemChanceSmall[] = { - 0.02, - 0.02, - 0.02, - 0.04, - 0.4, - 0.5 + itemChanceSmall[] = { + {"ItemMap","weapon",0.02} + ,{"ItemFlashlight","weapon",0.02} + ,{"ItemKnife","weapon",0.02} + ,{"ItemMatchbox_DZE","weapon",0.04} + ,{"","military",0.4} + ,{"","hunter",0.5} }; }; class DynamicDebris: Default @@ -918,46 +519,26 @@ class CfgBuildingLoot { maxRoaming = 2; zombieChance = 0.3; zombieClass[] = {"zZombie_Base","zZombie_Base","z_teacher","z_suit1","z_suit2"}; - itemType[] = { - { "ItemWatch","generic" }, - { "ItemCompass","generic" }, - { "ItemMap","weapon" }, - { "Makarov","weapon" }, - { "Colt1911","weapon" }, - { "ItemFlashlight","generic" }, - { "ItemKnife","generic" }, - { "ItemMatchbox_DZE","generic" }, - { "ItemToolbox","weapon" }, - { "","generic" }, - { "","food" }, - { "PartGeneric","magazine" }, - { "PartWheel","magazine" }, - { "PartFueltank","magazine" }, - { "PartEngine","magazine" }, - { "PartGlass","magazine" }, - { "WeaponHolder_ItemJerrycan","object" } - }; itemChance[] = { - 0.191, - 0.012, - 0.062, - 0.024, - 0.024, - 0.055, - 0.055, - 0.055, - 0.022, - 0.169, - 0.055, - 0.066, - 0.055, - 0.033, - 0.011, - 0.078, - 0.033 + {"ItemWatch","generic",0.19} + ,{"ItemCompass","generic",0.01} + ,{"ItemMap","weapon",0.06} + ,{"Makarov","weapon",0.02} + ,{"Colt1911","weapon",0.02} + ,{"ItemFlashlight","generic",0.06} + ,{"ItemKnife","generic",0.06} + ,{"ItemMatchbox_DZE","generic",0.06} + ,{"ItemToolbox","weapon",0.02} + ,{"","generic",0.17} + ,{"","food",0.06} + ,{"PartGeneric","magazine",0.07} + ,{"PartWheel","magazine",0.06} + ,{"PartFueltank","magazine",0.03} + ,{"PartEngine","magazine",0.01} + ,{"PartGlass","magazine",0.08} + ,{"WeaponHolder_ItemJerrycan","object",0.03} }; }; - class DynamicDebrisMilitary: Default { lootChance = 0.4; @@ -965,51 +546,28 @@ class CfgBuildingLoot { maxRoaming = 2; zombieChance = 0.3; zombieClass[] = {"z_soldier_pilot","z_soldier_heavy"}; - itemType[] = { - { "ItemEtool","weapon" }, - { "ItemSandbag","magazine"}, - { "","military" }, - { "ItemWatch","generic" }, - { "ItemCompass","generic" }, - { "ItemMap","weapon" }, - { "MakarovSD","weapon" }, - { "Colt1911","weapon" }, - { "ItemFlashlight","generic" }, - { "ItemKnife","generic" }, - { "ItemMatchbox_DZE","generic" }, - { "ItemToolbox","weapon" }, - { "","generic" }, - { "","food" }, - { "PartGeneric","magazine" }, - { "PartWheel","magazine" }, - { "PartFueltank","magazine" }, - { "PartEngine","magazine" }, - { "PartGlass","magazine" }, - { "PartVRotor","magazine" }, - { "WeaponHolder_ItemJerrycan","object" } - }; itemChance[] = { - 0.050, - 0.100, - 0.080, - 0.100, - 0.020, - 0.050, - 0.010, - 0.020, - 0.010, - 0.050, - 0.050, - 0.020, - 0.150, - 0.050, - 0.060, - 0.050, - 0.030, - 0.02, - 0.03, - 0.02, - 0.03 + {"ItemEtool","weapon",0.05} + ,{"ItemSandbag","magazine",0.1} + ,{"","military",0.08} + ,{"ItemWatch","generic",0.1} + ,{"ItemCompass","generic",0.02} + ,{"ItemMap","weapon",0.05} + ,{"MakarovSD","weapon",0.01} + ,{"Colt1911","weapon",0.02} + ,{"ItemFlashlight","generic",0.01} + ,{"ItemKnife","generic",0.05} + ,{"ItemMatchbox_DZE","generic",0.05} + ,{"ItemToolbox","weapon",0.02} + ,{"","generic",0.15} + ,{"","food",0.05} + ,{"PartGeneric","magazine",0.06} + ,{"PartWheel","magazine",0.05} + ,{"PartFueltank","magazine",0.03} + ,{"PartEngine","magazine",0.02} + ,{"PartGlass","magazine",0.03} + ,{"PartVRotor","magazine",0.02} + ,{"WeaponHolder_ItemJerrycan","object",0.03} }; }; class SupplyDrop: Default { @@ -1018,25 +576,15 @@ class CfgBuildingLoot { zombieClass[] = {"zZombie_Base","z_hunter","z_hunter","z_hunter","z_villager1","z_villager2","z_villager3","z_doctor","z_soldier_pilot","z_soldier_heavy"}; lootChance = 1; lootPos[] = {}; - itemType[] = { - { "PartPlywoodPack","magazine" }, - { "PartPlankPack","magazine" }, - { "CinderBlocks","magazine" }, - { "MortarBucket","magazine" }, - { "bulk_PartGeneric","magazine" }, - { "bulk_ItemSandbag","magazine"}, - { "bulk_ItemTankTrap","magazine"}, - { "ItemSledge","weapon" }, - }; - itemChance[] = { - 0.1, - 0.2, - 0.1, - 0.1, - 0.2, - 0.1, - 0.1, - 0.1 + itemChance[] = { + {"PartPlywoodPack","magazine",0.1} + ,{"PartPlankPack","magazine",0.2} + ,{"CinderBlocks","magazine",0.1} + ,{"MortarBucket","magazine",0.1} + ,{"bulk_PartGeneric","magazine",0.2} + ,{"bulk_ItemSandbag","magazine",0.1} + ,{"bulk_ItemTankTrap","magazine",0.1} + ,{"ItemSledge","weapon",0.1} }; }; class MassGrave: Default { @@ -1045,127 +593,63 @@ class CfgBuildingLoot { zombieClass[] = {"zZombie_Base","z_hunter","z_hunter","z_hunter","z_villager1","z_villager2","z_villager3","z_doctor","z_soldier_pilot","z_soldier_heavy"}; lootChance = 1; lootPos[] = {}; - itemType[] = { - { "M16A2","weapon" }, - { "M16A2GL","weapon" }, - { "M249_EP1_DZ","weapon" }, - { "M9SD","weapon" }, - { "Pecheneg_DZ","weapon"}, - { "PK_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" }, - //Ammo - { "AmmoBoxSmall_556","object" }, - { "AmmoBoxSmall_762","object" }, - - //{"NVGoggles","weapon"}, - { "Binocular","weapon" }, - { "ItemFlashlightRed","military" }, - { "ItemKnife","military" }, - { "ItemGPS","weapon" }, - { "ItemMap","military" }, - { "Binocular_Vector","military" }, - - {"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" }, - { "","generic" }, - { "","military" }, - //{"Body","object"}, - {"PipeBomb","magazine"}, - {"Sa58V_RCO_EP1","weapon"}, - {"Sa58V_CCO_EP1","weapon"}, - {"G36_C_SD_camo","weapon"}, - {"M40A3","weapon"}, - {"100Rnd_762x54_PK","magazine"}, - { "","militaryclothes" }, - {"WeaponHolder_ItemMachete", "object"}, - { "SCAR_H_LNG_Sniper_SD","weapon" }, - {"2000Rnd_762x51_M134","magazine"}, - {"KSVK_DZE","weapon" }, - {"m240_scoped_EP1_DZE","weapon" } - }; - itemChance[] = { - 0.03, - 0.01, - 0.01, - 0.02, - 0.02, - 0.01, - 0.02, - 0.01, - 0.01, - 0.02, - 0.02, - 0.01, - 0.01, - 0.02, - 0.01, - 0.01, - 0.01, - 0.02, - 0.03, - 0.01, - 0.02, - 0.02, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.03, - 0.03, - 0.01, - 0.02, - 0.01, - 0.01, - 0.01, - 0.01, - 0.03, - 0.02, - 0.02, - 0.02, - 0.01, - 0.01, - 0.05, - 0.05, - 0.13, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.05, - 0.02, - 0.01, - 0.01, - 0.01, //ksvk - 0.01 //m240 scoped + itemChance[] = { + {"M16A2","weapon",0.03} + ,{"M16A2GL","weapon",0.01} + ,{"M249_EP1_DZ","weapon",0.01} + ,{"M9SD","weapon",0.02} + ,{"Pecheneg_DZ","weapon",0.02} + ,{"PK_DZ","weapon",0.01} + ,{"AK_74","weapon",0.02} + ,{"M4A1_Aim","weapon",0.01} + ,{"AKS_74_kobra","weapon",0.01} + ,{"AKS_74_U","weapon",0.02} + ,{"AK_47_M","weapon",0.02} + ,{"M24","weapon",0.01} + ,{"SVD_CAMO","weapon",0.01} + ,{"M1014","weapon",0.02} + ,{"BAF_LRR_scoped","weapon",0.01} + ,{"M4SPR","weapon",0.01} + ,{"M4A1","weapon",0.01} + ,{"M14_EP1","weapon",0.02} + ,{"UZI_EP1","weapon",0.03} + ,{"Remington870_lamp","weapon",0.01} + ,{"glock17_EP1","weapon",0.02} + ,{"M240_DZ","weapon",0.02} + ,{"M4A1_AIM_SD_camo","weapon",0.01} + ,{"M16A4_ACG","weapon",0.01} + ,{"M4A1_HWS_GL_camo","weapon",0.01} + ,{"Mk_48_DZ","weapon",0.01} + ,{"M4A3_CCO_EP1","weapon",0.01} + ,{"AmmoBoxSmall_556","object",0.03} + ,{"AmmoBoxSmall_762","object",0.03} + ,{"Binocular","weapon",0.01} + ,{"ItemFlashlightRed","military",0.02} + ,{"ItemKnife","military",0.01} + ,{"ItemGPS","weapon",0.01} + ,{"ItemMap","military",0.01} + ,{"Binocular_Vector","military",0.01} + ,{"DZ_ALICE_Pack_EP1","object",0.03} + ,{"DZ_TK_Assault_Pack_EP1","object",0.02} + ,{"DZ_British_ACU","object",0.02} + ,{"DZ_CivilBackpack_EP1","object",0.02} + ,{"DZ_Backpack_EP1","object",0.01} + ,{"DZ_LargeGunBag_EP1","object",0.01} + ,{"","medical",0.05} + ,{"","generic",0.05} + ,{"","military",0.13} + ,{"PipeBomb","magazine",0.01} + ,{"Sa58V_RCO_EP1","weapon",0.01} + ,{"Sa58V_CCO_EP1","weapon",0.01} + ,{"G36_C_SD_camo","weapon",0.01} + ,{"M40A3","weapon",0.01} + ,{"100Rnd_762x54_PK","magazine",0.01} + ,{"","militaryclothes",0.05} + ,{"WeaponHolder_ItemMachete","object",0.02} + ,{"SCAR_H_LNG_Sniper_SD","weapon",0.01} + ,{"2000Rnd_762x51_M134","magazine",0.01} + ,{"KSVK_DZE","weapon",0.01} + ,{"m240_scoped_EP1_DZE","weapon",0.01} }; }; #include "CfgLootPos.hpp" diff --git a/SQF/dayz_code/Configs/CfgBuildingLoot/CfgLootSmall.hpp b/SQF/dayz_code/Configs/CfgBuildingLoot/CfgLootSmall.hpp index 826406547..85e664b93 100644 --- a/SQF/dayz_code/Configs/CfgBuildingLoot/CfgLootSmall.hpp +++ b/SQF/dayz_code/Configs/CfgBuildingLoot/CfgLootSmall.hpp @@ -1,585 +1,272 @@ class CfgLootSmall { trash[] = { - { - "TrashTinCan", - "TrashJackDaniels", - "ItemSodaEmpty", - "ItemTrashToiletpaper", - "ItemTrashRazor" - }, - { - 0.5, - 0.05, - 0.25, - 0.10, - 0.1 - } + {"TrashTinCan",0.5} + ,{"TrashJackDaniels",0.05} + ,{"ItemSodaEmpty",0.25} + ,{"ItemTrashToiletpaper",0.1} + ,{"ItemTrashRazor",0.1} }; civilian[] = { - { - "FoodCanUnlabeled", - "TrashJackDaniels", - "ItemSodaEmpty", - "ItemSodaCoke", - "ItemSodaPepsi", - "FoodCanBakedBeans", - "FoodCanSardines", - "FoodCanFrankBeans", - "FoodCanPasta", - "8Rnd_9x18_Makarov", - "7Rnd_45ACP_1911", - "2Rnd_shotgun_74Slug", - "2Rnd_shotgun_74Pellets", - "ItemBandage", - "ItemPainkiller", - "FoodBioMeat", - "8Rnd_9x18_MakarovSD" - }, - { - 0.07, - 0.09, - 0.09, - 0.1, - 0.09, - 0.05, - 0.05, - 0.05, - 0.05, - 0.07, - 0.05, - 0.05, - 0.05, - 0.06, - 0.06, - 0.01, - 0.01 - } + {"FoodCanUnlabeled",0.07} + ,{"TrashJackDaniels",0.09} + ,{"ItemSodaEmpty",0.09} + ,{"ItemSodaCoke",0.1} + ,{"ItemSodaPepsi",0.09} + ,{"FoodCanBakedBeans",0.05} + ,{"FoodCanSardines",0.05} + ,{"FoodCanFrankBeans",0.05} + ,{"FoodCanPasta",0.05} + ,{"8Rnd_9x18_Makarov",0.07} + ,{"7Rnd_45ACP_1911",0.05} + ,{"2Rnd_shotgun_74Slug",0.05} + ,{"2Rnd_shotgun_74Pellets",0.05} + ,{"ItemBandage",0.06} + ,{"ItemPainkiller",0.06} + ,{"FoodBioMeat",0.01} + ,{"8Rnd_9x18_MakarovSD",0.01} }; office2[] = { - { - "FoodCanUnlabeled", - "TrashJackDaniels", - "ItemSodaEmpty", - "ItemSodaCoke", - "ItemSodaPepsi", - "FoodCanBakedBeans", - "FoodCanSardines", - "FoodCanFrankBeans", - "FoodCanPasta", - "8Rnd_9x18_Makarov", - "7Rnd_45ACP_1911", - "2Rnd_shotgun_74Slug", - "2Rnd_shotgun_74Pellets", - "ItemBandage", - "ItemPainkiller", - "FoodBioMeat", - "8Rnd_9x18_MakarovSD" - }, - { - 0.07, - 0.09, - 0.09, - 0.09, - 0.09, - 0.05, - 0.05, - 0.05, - 0.05, - 0.07, - 0.05, - 0.05, - 0.05, - 0.06, - 0.06, - 0.01, - 0.01 - } + {"FoodCanUnlabeled",0.07} + ,{"TrashJackDaniels",0.09} + ,{"ItemSodaEmpty",0.09} + ,{"ItemSodaCoke",0.09} + ,{"ItemSodaPepsi",0.09} + ,{"FoodCanBakedBeans",0.05} + ,{"FoodCanSardines",0.05} + ,{"FoodCanFrankBeans",0.05} + ,{"FoodCanPasta",0.05} + ,{"8Rnd_9x18_Makarov",0.07} + ,{"7Rnd_45ACP_1911",0.05} + ,{"2Rnd_shotgun_74Slug",0.05} + ,{"2Rnd_shotgun_74Pellets",0.05} + ,{"ItemBandage",0.06} + ,{"ItemPainkiller",0.06} + ,{"FoodBioMeat",0.01} + ,{"8Rnd_9x18_MakarovSD",0.01} }; food[] = { - { - //trash - "TrashTinCan", - "TrashJackDaniels", - "ItemSodaEmpty", - "ItemSodaCoke", - "ItemSodaPepsi", - "FoodCanBakedBeans", - "FoodCanSardines", - "FoodCanFrankBeans", - "FoodCanPasta", - "FoodCanUnlabeled", - // food Bags - "FoodPistachio", - "FoodNutmix" - }, - { - //trash - 0.09, - 0.12, - 0.12, - 0.09, - 0.11, - 0.07, - 0.07, - 0.07, - 0.07, - 0.1, - // food Bags - 0.05, - 0.04 - } + {"TrashTinCan",0.09} + ,{"TrashJackDaniels",0.12} + ,{"ItemSodaEmpty",0.12} + ,{"ItemSodaCoke",0.09} + ,{"ItemSodaPepsi",0.11} + ,{"FoodCanBakedBeans",0.07} + ,{"FoodCanSardines",0.07} + ,{"FoodCanFrankBeans",0.07} + ,{"FoodCanPasta",0.07} + ,{"FoodCanUnlabeled",0.1} + ,{"FoodPistachio",0.05} + ,{"FoodNutmix",0.04} }; office[] = { - { - "FoodCanUnlabeled", - "ItemSodaEmpty", - "ItemSodaCoke", - "ItemSodaPepsi", - "TrashJackDaniels", - "FoodCanBakedBeans", - "FoodCanSardines", - "FoodCanFrankBeans", - "FoodCanPasta", - "ItemWaterbottleUnfilled", - "ItemWaterbottle", - "ItemBandage", - "7Rnd_45ACP_1911", - "5x_22_LR_17_HMR", - "10x_303", - "6Rnd_45ACP", - "2Rnd_shotgun_74Slug", - "2Rnd_shotgun_74Pellets", - "8Rnd_9x18_Makarov", - "15Rnd_W1866_Slug", - "WoodenArrow", - "HandRoadFlare", - "ItemPainkiller", - "HandChemGreen", - "HandChemBlue", - "HandChemRed", - "ItemHeatPack" - }, - { - 0.06, - 0.06, - 0.06, - 0.04, - 0.04, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.08, - 0.03, - 0.01, - 0.04, - 0.04, - 0.05, - 0.05, - 0.09, - 0.02, - 0.04, - 0.07, - 0.02, - 0.01, - 0.03, - 0.03, - 0.03 - } + {"FoodCanUnlabeled",0.06} + ,{"ItemSodaEmpty",0.06} + ,{"ItemSodaCoke",0.06} + ,{"ItemSodaPepsi",0.04} + ,{"TrashJackDaniels",0.04} + ,{"FoodCanBakedBeans",0.01} + ,{"FoodCanSardines",0.01} + ,{"FoodCanFrankBeans",0.01} + ,{"FoodCanPasta",0.01} + ,{"ItemWaterbottleUnfilled",0.01} + ,{"ItemWaterbottle",0.01} + ,{"ItemBandage",0.08} + ,{"7Rnd_45ACP_1911",0.03} + ,{"5x_22_LR_17_HMR",0.01} + ,{"10x_303",0.04} + ,{"6Rnd_45ACP",0.04} + ,{"2Rnd_shotgun_74Slug",0.05} + ,{"2Rnd_shotgun_74Pellets",0.05} + ,{"8Rnd_9x18_Makarov",0.09} + ,{"15Rnd_W1866_Slug",0.02} + ,{"WoodenArrow",0.04} + ,{"HandRoadFlare",0.07} + ,{"ItemPainkiller",0.02} + ,{"HandChemGreen",0.01} + ,{"HandChemBlue",0.03} + ,{"HandChemRed",0.03} + ,{"ItemHeatPack",0.03} }; generic[] = { - { - "FoodCanUnlabeled", - "ItemSodaEmpty", - "ItemSodaCoke", - "ItemSodaPepsi", - "TrashJackDaniels", - "FoodCanBakedBeans", - "FoodCanSardines", - "FoodCanFrankBeans", - "FoodCanPasta", - "ItemWaterbottleUnfilled", - "ItemWaterbottle", - "ItemBandage", - "7Rnd_45ACP_1911", - "5x_22_LR_17_HMR", - "10x_303", - "6Rnd_45ACP", - "2Rnd_shotgun_74Slug", - "2Rnd_shotgun_74Pellets", - "8Rnd_9x18_Makarov", - "15Rnd_W1866_Slug", - "WoodenArrow", - "HandRoadFlare", - "ItemPainkiller", - "HandChemGreen", - "HandChemBlue", - "HandChemRed", - "ItemHeatPack" - }, - { - 0.06, - 0.06, - 0.06, - 0.04, - 0.04, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.11, - 0.03, - 0.01, - 0.04, - 0.04, - 0.05, - 0.05, - 0.09, - 0.02, - 0.04, - 0.07, - 0.02, - 0.01, - 0.03, - 0.03, - 0.04 - } + {"FoodCanUnlabeled",0.06} + ,{"ItemSodaEmpty",0.06} + ,{"ItemSodaCoke",0.06} + ,{"ItemSodaPepsi",0.04} + ,{"TrashJackDaniels",0.04} + ,{"FoodCanBakedBeans",0.01} + ,{"FoodCanSardines",0.01} + ,{"FoodCanFrankBeans",0.01} + ,{"FoodCanPasta",0.01} + ,{"ItemWaterbottleUnfilled",0.01} + ,{"ItemWaterbottle",0.01} + ,{"ItemBandage",0.11} + ,{"7Rnd_45ACP_1911",0.03} + ,{"5x_22_LR_17_HMR",0.01} + ,{"10x_303",0.04} + ,{"6Rnd_45ACP",0.04} + ,{"2Rnd_shotgun_74Slug",0.05} + ,{"2Rnd_shotgun_74Pellets",0.05} + ,{"8Rnd_9x18_Makarov",0.09} + ,{"15Rnd_W1866_Slug",0.02} + ,{"WoodenArrow",0.04} + ,{"HandRoadFlare",0.07} + ,{"ItemPainkiller",0.02} + ,{"HandChemGreen",0.01} + ,{"HandChemBlue",0.03} + ,{"HandChemRed",0.03} + ,{"ItemHeatPack",0.04} }; medical[] = { - { - "ItemBandage", - "ItemPainkiller", - "ItemMorphine", - "ItemEpinephrine", - "ItemAntibiotic", - "ItemHeatPack" - }, - { - 0.4, - 0.15, - 0.2, - 0.1, - 0.1, - 0.05 - } + {"ItemBandage",0.4} + ,{"ItemPainkiller",0.15} + ,{"ItemMorphine",0.2} + ,{"ItemEpinephrine",0.1} + ,{"ItemAntibiotic",0.1} + ,{"ItemHeatPack",0.05} }; hospital[] = { - { - "ItemBandage", - "ItemPainkiller", - "ItemMorphine", - "ItemEpinephrine", - "ItemBloodbag", - "ItemAntibiotic" - }, - { - 0.33, - 0.16, - 0.13, - 0.09, - 0.17, - 0.12 - } + {"ItemBandage",0.33} + ,{"ItemPainkiller",0.16} + ,{"ItemMorphine",0.13} + ,{"ItemEpinephrine",0.09} + ,{"ItemBloodbag",0.17} + ,{"ItemAntibiotic",0.12} }; military[] = { - { - "FoodCanUnlabeled", - "ItemSodaEmpty", - "ItemSodaCoke", - "ItemSodaPepsi", - "ItemBandage", - "ItemAntibiotic", - "ItemPainkiller", - "ItemMorphine", - "30Rnd_556x45_Stanag", - "20Rnd_762x51_DMR", - "17Rnd_9x19_glock17", - "15Rnd_9x19_M9SD", - "15Rnd_9x19_M9", - "30Rnd_762x39_AK47", - "30Rnd_545x39_AK", - "5Rnd_762x51_M24", - "5Rnd_86x70_L115A1", - "8Rnd_B_Beneli_74Slug", - "1Rnd_HE_M203", - "FlareWhite_M203", - "FlareGreen_M203", - "1Rnd_Smoke_M203", - "200Rnd_556x45_M249", - "HandGrenade_west", - "HandGrenade_east", - "SmokeShell", - "SmokeShellRed", - "SmokeShellGreen", - "8Rnd_B_Beneli_Pellets", - "30Rnd_556x45_StanagSD", - "30Rnd_9x19_MP5", - "30Rnd_9x19_MP5SD", - "100Rnd_762x51_M240", - "HandChemGreen", - "HandChemBlue", - "HandChemRed", - "ItemHeatPack", - "8Rnd_9x18_MakarovSD", - "20Rnd_B_765x17_Ball", - "30Rnd_9x19_UZI_SD" - }, - { - 0.09, - 0.04, - 0.01, - 0.01, - 0.04, - 0.04, - 0.04, - 0.01, - 0.04, - 0.04, - 0.05, - 0.01, - 0.02, - 0.04, - 0.04, - 0.01, - 0.01, - 0.04, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.04, - 0.02, - 0.02, - 0.04, - 0.01, - 0.02, - 0.01, - 0.01, - 0.02, - 0.02, - 0.02, - 0.04, - 0.01, - 0.04, - 0.01 - } + {"FoodCanUnlabeled",0.09} + ,{"ItemSodaEmpty",0.04} + ,{"ItemSodaCoke",0.01} + ,{"ItemSodaPepsi",0.01} + ,{"ItemBandage",0.04} + ,{"ItemAntibiotic",0.04} + ,{"ItemPainkiller",0.04} + ,{"ItemMorphine",0.01} + ,{"30Rnd_556x45_Stanag",0.04} + ,{"20Rnd_762x51_DMR",0.04} + ,{"17Rnd_9x19_glock17",0.05} + ,{"15Rnd_9x19_M9SD",0.01} + ,{"15Rnd_9x19_M9",0.02} + ,{"30Rnd_762x39_AK47",0.04} + ,{"30Rnd_545x39_AK",0.04} + ,{"5Rnd_762x51_M24",0.01} + ,{"5Rnd_86x70_L115A1",0.01} + ,{"8Rnd_B_Beneli_74Slug",0.04} + ,{"1Rnd_HE_M203",0.01} + ,{"FlareWhite_M203",0.01} + ,{"FlareGreen_M203",0.01} + ,{"1Rnd_Smoke_M203",0.01} + ,{"200Rnd_556x45_M249",0.01} + ,{"HandGrenade_west",0.01} + ,{"HandGrenade_east",0.01} + ,{"SmokeShell",0.04} + ,{"SmokeShellRed",0.02} + ,{"SmokeShellGreen",0.02} + ,{"8Rnd_B_Beneli_Pellets",0.04} + ,{"30Rnd_556x45_StanagSD",0.01} + ,{"30Rnd_9x19_MP5",0.02} + ,{"30Rnd_9x19_MP5SD",0.01} + ,{"100Rnd_762x51_M240",0.01} + ,{"HandChemGreen",0.02} + ,{"HandChemBlue",0.02} + ,{"HandChemRed",0.02} + ,{"ItemHeatPack",0.04} + ,{"8Rnd_9x18_MakarovSD",0.01} + ,{"20Rnd_B_765x17_Ball",0.04} + ,{"30Rnd_9x19_UZI_SD",0.01} }; policeman[] = { - { - "ItemBandage", - "7Rnd_45ACP_1911", - "6Rnd_45ACP", - "15Rnd_W1866_Slug", - "8Rnd_B_Beneli_Pellets", - "HandRoadFlare", - "8Rnd_9x18_MakarovSD", - "ItemComboLock", - "SmokeShell", - "ItemHotwireKit" - }, - { - 0.3, - 0.08, - 0.08, - 0.14, - 0.17, - 0.08, - 0.01, - 0.05, - 0.04, - 0.01 - } + {"ItemBandage",0.3} + ,{"7Rnd_45ACP_1911",0.08} + ,{"6Rnd_45ACP",0.08} + ,{"15Rnd_W1866_Slug",0.14} + ,{"8Rnd_B_Beneli_Pellets",0.17} + ,{"HandRoadFlare",0.08} + ,{"8Rnd_9x18_MakarovSD",0.01} + ,{"ItemComboLock",0.05} + ,{"SmokeShell",0.04} + ,{"ItemHotwireKit",0.01} }; hunter[] = { - { - "FoodMRE" - }, - { - 0.01 - } + {"FoodMRE",0.01} }; - worker[] = { - { - "FoodCanUnlabeled", - "TrashJackDaniels", - "ItemSodaEmpty", - "ItemSodaCoke", - "ItemSodaPepsi", - "FoodCanBakedBeans", - "FoodCanSardines", - "FoodCanFrankBeans", - "FoodCanPasta", - "ItemBandage", - "ItemPainkiller", - "ItemComboLock", - "ItemSledgeHead" - }, - { - 0.09, - 0.10, - 0.10, - 0.11, - 0.10, - 0.06, - 0.06, - 0.06, - 0.06, - 0.1, - 0.06, - 0.04, - 0.02 - } + {"FoodCanUnlabeled",0.09} + ,{"TrashJackDaniels",0.1} + ,{"ItemSodaEmpty",0.1} + ,{"ItemSodaCoke",0.11} + ,{"ItemSodaPepsi",0.1} + ,{"FoodCanBakedBeans",0.06} + ,{"FoodCanSardines",0.06} + ,{"FoodCanFrankBeans",0.06} + ,{"FoodCanPasta",0.06} + ,{"ItemBandage",0.1} + ,{"ItemPainkiller",0.06} + ,{"ItemComboLock",0.04} + ,{"ItemSledgeHead",0.02} }; clothes[] = { - { - "Skin_RU_Policeman_DZ", - "Skin_Pilot_EP1_DZ", - "Skin_Functionary1_EP1_DZ", - "Skin_Priest_DZ", - "Skin_Rocker1_DZ", - "Skin_Rocker2_DZ", - "Skin_Rocker3_DZ", - "Skin_Rocker4_DZ", - "Skin_SurvivorW3_DZ", - "Skin_SurvivorWpink_DZ", - "Skin_SurvivorWurban_DZ" - //"Skin_SurvivorWsequisha_DZ", - //"Skin_SurvivorWsequishaD_DZ", - }, - { - 0.13, - 0.12, - 0.1, - 0.1, - 0.07, - 0.07, - 0.08, - 0.08, - 0.09, - 0.09, - 0.07 - //0.04, - //0.02 - } + {"Skin_RU_Policeman_DZ",0.13} + ,{"Skin_Pilot_EP1_DZ",0.12} + ,{"Skin_Functionary1_EP1_DZ",0.1} + ,{"Skin_Priest_DZ",0.1} + ,{"Skin_Rocker1_DZ",0.07} + ,{"Skin_Rocker2_DZ",0.07} + ,{"Skin_Rocker3_DZ",0.08} + ,{"Skin_Rocker4_DZ",0.08} + ,{"Skin_SurvivorW3_DZ",0.09} + ,{"Skin_SurvivorWpink_DZ",0.09} + ,{"Skin_SurvivorWurban_DZ",0.07} }; militaryclothes[] = { - { - "Skin_Camo1_DZ", - "Skin_Sniper1_DZ", - "Skin_Rocket_DZ", - "Skin_Soldier1_DZ", - "Skin_Drake_Light_DZ", - "Skin_Soldier_TL_PMC_DZ", - "Skin_Soldier_Sniper_PMC_DZ", - "Skin_Soldier_Bodyguard_AA12_PMC_DZ", - "Skin_CZ_Special_Forces_GL_DES_EP1_DZ", - "Skin_FR_OHara_DZ", - "Skin_FR_Rodriguez_DZ", - "Skin_CZ_Soldier_Sniper_EP1_DZ", - "Skin_Graves_Light_DZ" - }, - { - 0.1, - 0.08, - 0.05, - 0.13, - 0.07, - 0.07, - 0.05, - 0.07, - 0.08, - 0.08, - 0.09, - 0.04, - 0.09 - } + {"Skin_Camo1_DZ",0.1} + ,{"Skin_Sniper1_DZ",0.08} + ,{"Skin_Rocket_DZ",0.05} + ,{"Skin_Soldier1_DZ",0.13} + ,{"Skin_Drake_Light_DZ",0.07} + ,{"Skin_Soldier_TL_PMC_DZ",0.07} + ,{"Skin_Soldier_Sniper_PMC_DZ",0.05} + ,{"Skin_Soldier_Bodyguard_AA12_PMC_DZ",0.07} + ,{"Skin_CZ_Special_Forces_GL_DES_EP1_DZ",0.08} + ,{"Skin_FR_OHara_DZ",0.08} + ,{"Skin_FR_Rodriguez_DZ",0.09} + ,{"Skin_CZ_Soldier_Sniper_EP1_DZ",0.04} + ,{"Skin_Graves_Light_DZ",0.09} }; specialclothes[] = { - { - "Skin_Ins_Soldier_GL_DZ", - "Skin_GUE_Commander_DZ", - "Skin_Bandit1_DZ", - "Skin_Bandit2_DZ", - "Skin_BanditW1_DZ", - "Skin_BanditW2_DZ", - "Skin_TK_INS_Soldier_EP1_DZ", - "Skin_TK_INS_Warlord_EP1_DZ", - "Skin_SurvivorWcombat_DZ", - "Skin_SurvivorWdesert_DZ", - "Skin_GUE_Soldier_MG_DZ", - "Skin_GUE_Soldier_Sniper_DZ", - "Skin_GUE_Soldier_Crew_DZ", - "Skin_GUE_Soldier_CO_DZ", - "Skin_GUE_Soldier_2_DZ" - }, - { - 0.1, - 0.08, - 0.13, - 0.06, - 0.07, - 0.07, - 0.05, - 0.07, - 0.08, - 0.08, - 0.05, - 0.04, - 0.04, - 0.04, - 0.04 - } + {"Skin_Ins_Soldier_GL_DZ",0.1} + ,{"Skin_GUE_Commander_DZ",0.08} + ,{"Skin_Bandit1_DZ",0.13} + ,{"Skin_Bandit2_DZ",0.06} + ,{"Skin_BanditW1_DZ",0.07} + ,{"Skin_BanditW2_DZ",0.07} + ,{"Skin_TK_INS_Soldier_EP1_DZ",0.05} + ,{"Skin_TK_INS_Warlord_EP1_DZ",0.07} + ,{"Skin_SurvivorWcombat_DZ",0.08} + ,{"Skin_SurvivorWdesert_DZ",0.08} + ,{"Skin_GUE_Soldier_MG_DZ",0.05} + ,{"Skin_GUE_Soldier_Sniper_DZ",0.04} + ,{"Skin_GUE_Soldier_Crew_DZ",0.04} + ,{"Skin_GUE_Soldier_CO_DZ",0.04} + ,{"Skin_GUE_Soldier_2_DZ",0.04} }; machinegunammoexpl[] = { - { - "100Rnd_556x45_BetaCMag", - "75Rnd_545x39_RPK", - "100Rnd_556x45_M249", - "100Rnd_762x51_M240", - "100Rnd_762x54_PK", - "200Rnd_556x45_M249", - "MAAWS_HEAT", - "PipeBomb" - }, - { - 0.20, - 0.20, - 0.15, - 0.15, - 0.14, - 0.14, - 0.01, - 0.01 - } + {"100Rnd_556x45_BetaCMag",0.2} + ,{"75Rnd_545x39_RPK",0.2} + ,{"100Rnd_556x45_M249",0.15} + ,{"100Rnd_762x51_M240",0.15} + ,{"100Rnd_762x54_PK",0.14} + ,{"200Rnd_556x45_M249",0.14} + ,{"MAAWS_HEAT",0.01} + ,{"PipeBomb",0.01} }; 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 - } + {"Makarov",0.25} + ,{"Colt1911",0.23} + ,{"revolver_EP1",0.2} + ,{"glock17_EP1",0.1} + ,{"MakarovSD",0.1} + ,{"M9",0.07} + ,{"M9SD",0.04} + ,{"revolver_gold_EP1",0.01} }; }; diff --git a/SQF/dayz_code/Configs/CfgBuildingLoot/cfgLoot.hpp b/SQF/dayz_code/Configs/CfgBuildingLoot/cfgLoot.hpp index ba8d9459e..0f7b1de0b 100644 --- a/SQF/dayz_code/Configs/CfgBuildingLoot/cfgLoot.hpp +++ b/SQF/dayz_code/Configs/CfgBuildingLoot/cfgLoot.hpp @@ -1,1080 +1,501 @@ #include "CfgLootSmall.hpp" - class CfgLoot { trash[] = { - { - "TrashTinCan", - "TrashJackDaniels", - "ItemSodaEmpty", - "ItemTrashToiletpaper", - "ItemTrashRazor" - }, - { - 0.5, - 0.05, - 0.25, - 0.10, - 0.1 - } + {"TrashTinCan",0.5} + ,{"TrashJackDaniels",0.05} + ,{"ItemSodaEmpty",0.25} + ,{"ItemTrashToiletpaper",0.1} + ,{"ItemTrashRazor",0.1} }; civilian[] = { - { - "FoodCanUnlabeled", - "TrashJackDaniels", - "ItemSodaEmpty", - "ItemSodaCoke", - "ItemSodaPepsi", - "FoodCanBakedBeans", - "FoodCanSardines", - "FoodCanFrankBeans", - "FoodCanPasta", - "8Rnd_9x18_Makarov", - "7Rnd_45ACP_1911", - "2Rnd_shotgun_74Slug", - "2Rnd_shotgun_74Pellets", - "ItemBandage", - "ItemPainkiller", - "FoodBioMeat", - "8Rnd_9x18_MakarovSD", - "ItemDocument" - }, - { - 0.07, - 0.08, - 0.08, - 0.09, - 0.09, - 0.05, - 0.05, - 0.05, - 0.05, - 0.07, - 0.05, - 0.05, - 0.05, - 0.06, - 0.06, - 0.01, - 0.01, - 0.03 - } + {"FoodCanUnlabeled",0.07} + ,{"TrashJackDaniels",0.08} + ,{"ItemSodaEmpty",0.08} + ,{"ItemSodaCoke",0.09} + ,{"ItemSodaPepsi",0.09} + ,{"FoodCanBakedBeans",0.05} + ,{"FoodCanSardines",0.05} + ,{"FoodCanFrankBeans",0.05} + ,{"FoodCanPasta",0.05} + ,{"8Rnd_9x18_Makarov",0.07} + ,{"7Rnd_45ACP_1911",0.05} + ,{"2Rnd_shotgun_74Slug",0.05} + ,{"2Rnd_shotgun_74Pellets",0.05} + ,{"ItemBandage",0.06} + ,{"ItemPainkiller",0.06} + ,{"FoodBioMeat",0.01} + ,{"8Rnd_9x18_MakarovSD",0.01} + ,{"ItemDocument",0.03} }; office2[] = { - { - "FoodCanUnlabeled", - "TrashJackDaniels", - "ItemSodaEmpty", - "ItemSodaCoke", - "ItemSodaPepsi", - "FoodCanBakedBeans", - "FoodCanSardines", - "FoodCanFrankBeans", - "FoodCanPasta", - "8Rnd_9x18_Makarov", - "7Rnd_45ACP_1911", - "2Rnd_shotgun_74Slug", - "2Rnd_shotgun_74Pellets", - "ItemBandage", - "ItemPainkiller", - "FoodBioMeat", - "8Rnd_9x18_MakarovSD", - "ItemBriefcaseEmpty", - "ItemDocument" - }, - { - 0.07, - 0.08, - 0.08, - 0.09, - 0.09, - 0.05, - 0.05, - 0.05, - 0.05, - 0.07, - 0.05, - 0.05, - 0.05, - 0.06, - 0.06, - 0.01, - 0.01, - 0.01, - 0.02 - } + {"FoodCanUnlabeled",0.07} + ,{"TrashJackDaniels",0.08} + ,{"ItemSodaEmpty",0.08} + ,{"ItemSodaCoke",0.09} + ,{"ItemSodaPepsi",0.09} + ,{"FoodCanBakedBeans",0.05} + ,{"FoodCanSardines",0.05} + ,{"FoodCanFrankBeans",0.05} + ,{"FoodCanPasta",0.05} + ,{"8Rnd_9x18_Makarov",0.07} + ,{"7Rnd_45ACP_1911",0.05} + ,{"2Rnd_shotgun_74Slug",0.05} + ,{"2Rnd_shotgun_74Pellets",0.05} + ,{"ItemBandage",0.06} + ,{"ItemPainkiller",0.06} + ,{"FoodBioMeat",0.01} + ,{"8Rnd_9x18_MakarovSD",0.01} + ,{"ItemBriefcaseEmpty",0.01} + ,{"ItemDocument",0.02} }; food[] = { - { - //trash - "TrashTinCan", - "TrashJackDaniels", - "ItemSodaEmpty", - "ItemSodaCoke", - "ItemSodaPepsi", - "FoodCanBakedBeans", - "FoodCanSardines", - "FoodCanFrankBeans", - "FoodCanPasta", - "FoodCanUnlabeled", - // food Bags - "FoodPistachio", - "FoodNutmix" - }, - { - //trash - 0.09, - 0.12, - 0.12, - 0.09, - 0.11, - 0.07, - 0.07, - 0.07, - 0.07, - 0.1, - // food Bags - 0.05, - 0.04 - } + {"TrashTinCan",0.09} + ,{"TrashJackDaniels",0.12} + ,{"ItemSodaEmpty",0.12} + ,{"ItemSodaCoke",0.09} + ,{"ItemSodaPepsi",0.11} + ,{"FoodCanBakedBeans",0.07} + ,{"FoodCanSardines",0.07} + ,{"FoodCanFrankBeans",0.07} + ,{"FoodCanPasta",0.07} + ,{"FoodCanUnlabeled",0.1} + ,{"FoodPistachio",0.05} + ,{"FoodNutmix",0.04} }; office[] = { - { - "FoodCanUnlabeled", - "ItemSodaEmpty", - "ItemSodaCoke", - "ItemSodaPepsi", - "TrashJackDaniels", - "FoodCanBakedBeans", - "FoodCanSardines", - "FoodCanFrankBeans", - "FoodCanPasta", - "ItemWaterbottleUnfilled", - "ItemWaterbottle", - "ItemBandage", - "7Rnd_45ACP_1911", - "5x_22_LR_17_HMR", - "10x_303", - "6Rnd_45ACP", - "2Rnd_shotgun_74Slug", - "2Rnd_shotgun_74Pellets", - "8Rnd_9x18_Makarov", - "15Rnd_W1866_Slug", - "WoodenArrow", - "HandRoadFlare", - "ItemPainkiller", - "HandChemGreen", - "HandChemBlue", - "HandChemRed", - "ItemHeatPack", - "ItemLockbox", - "ItemDocument" - }, - { - 0.06, - 0.06, - 0.06, - 0.04, - 0.04, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.07, - 0.03, - 0.01, - 0.04, - 0.04, - 0.05, - 0.05, - 0.08, - 0.02, - 0.04, - 0.07, - 0.02, - 0.01, - 0.03, - 0.03, - 0.03, - 0.04, - 0.02 - } + {"FoodCanUnlabeled",0.06} + ,{"ItemSodaEmpty",0.06} + ,{"ItemSodaCoke",0.06} + ,{"ItemSodaPepsi",0.04} + ,{"TrashJackDaniels",0.04} + ,{"FoodCanBakedBeans",0.01} + ,{"FoodCanSardines",0.01} + ,{"FoodCanFrankBeans",0.01} + ,{"FoodCanPasta",0.01} + ,{"ItemWaterbottleUnfilled",0.01} + ,{"ItemWaterbottle",0.01} + ,{"ItemBandage",0.07} + ,{"7Rnd_45ACP_1911",0.03} + ,{"5x_22_LR_17_HMR",0.01} + ,{"10x_303",0.04} + ,{"6Rnd_45ACP",0.04} + ,{"2Rnd_shotgun_74Slug",0.05} + ,{"2Rnd_shotgun_74Pellets",0.05} + ,{"8Rnd_9x18_Makarov",0.08} + ,{"15Rnd_W1866_Slug",0.02} + ,{"WoodenArrow",0.04} + ,{"HandRoadFlare",0.07} + ,{"ItemPainkiller",0.02} + ,{"HandChemGreen",0.01} + ,{"HandChemBlue",0.03} + ,{"HandChemRed",0.03} + ,{"ItemHeatPack",0.03} + ,{"ItemLockbox",0.04} + ,{"ItemDocument",0.02} }; generic[] = { - { - "FoodCanUnlabeled", - "ItemSodaEmpty", - "ItemSodaCoke", - "ItemSodaPepsi", - "TrashJackDaniels", - "FoodCanBakedBeans", - "FoodCanSardines", - "FoodCanFrankBeans", - "FoodCanPasta", - "ItemWaterbottleUnfilled", - "ItemWaterbottle", - "ItemBandage", - "7Rnd_45ACP_1911", - "5x_22_LR_17_HMR", - "10x_303", - "6Rnd_45ACP", - "2Rnd_shotgun_74Slug", - "2Rnd_shotgun_74Pellets", - "8Rnd_9x18_Makarov", - "15Rnd_W1866_Slug", - "WoodenArrow", - "HandRoadFlare", - "ItemPainkiller", - "HandChemGreen", - "HandChemBlue", - "HandChemRed", - "ItemHeatPack" - }, - { - 0.06, - 0.06, - 0.06, - 0.04, - 0.04, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.11, - 0.03, - 0.01, - 0.04, - 0.04, - 0.05, - 0.05, - 0.09, - 0.02, - 0.04, - 0.07, - 0.02, - 0.01, - 0.03, - 0.03, - 0.04 - } + {"FoodCanUnlabeled",0.06} + ,{"ItemSodaEmpty",0.06} + ,{"ItemSodaCoke",0.06} + ,{"ItemSodaPepsi",0.04} + ,{"TrashJackDaniels",0.04} + ,{"FoodCanBakedBeans",0.01} + ,{"FoodCanSardines",0.01} + ,{"FoodCanFrankBeans",0.01} + ,{"FoodCanPasta",0.01} + ,{"ItemWaterbottleUnfilled",0.01} + ,{"ItemWaterbottle",0.01} + ,{"ItemBandage",0.11} + ,{"7Rnd_45ACP_1911",0.03} + ,{"5x_22_LR_17_HMR",0.01} + ,{"10x_303",0.04} + ,{"6Rnd_45ACP",0.04} + ,{"2Rnd_shotgun_74Slug",0.05} + ,{"2Rnd_shotgun_74Pellets",0.05} + ,{"8Rnd_9x18_Makarov",0.09} + ,{"15Rnd_W1866_Slug",0.02} + ,{"WoodenArrow",0.04} + ,{"HandRoadFlare",0.07} + ,{"ItemPainkiller",0.02} + ,{"HandChemGreen",0.01} + ,{"HandChemBlue",0.03} + ,{"HandChemRed",0.03} + ,{"ItemHeatPack",0.04} }; medical[] = { - { - "ItemBandage", - "ItemPainkiller", - "ItemMorphine", - "ItemEpinephrine", - "ItemAntibiotic", - "ItemHeatPack" - }, - { - 0.4, - 0.15, - 0.2, - 0.1, - 0.1, - 0.05 - } + {"ItemBandage",0.4} + ,{"ItemPainkiller",0.15} + ,{"ItemMorphine",0.2} + ,{"ItemEpinephrine",0.1} + ,{"ItemAntibiotic",0.1} + ,{"ItemHeatPack",0.05} }; hospital[] = { - { - "ItemBandage", - "ItemPainkiller", - "ItemMorphine", - "ItemEpinephrine", - "ItemBloodbag", - "ItemAntibiotic" - }, - { - 0.33, - 0.16, - 0.13, - 0.09, - 0.17, - 0.12 - } + {"ItemBandage",0.33} + ,{"ItemPainkiller",0.16} + ,{"ItemMorphine",0.13} + ,{"ItemEpinephrine",0.09} + ,{"ItemBloodbag",0.17} + ,{"ItemAntibiotic",0.12} }; military[] = { - { - "FoodCanUnlabeled", - "ItemSodaEmpty", - "ItemSodaCoke", - "ItemSodaPepsi", - "ItemBandage", - "ItemAntibiotic", - "ItemPainkiller", - "ItemMorphine", - "30Rnd_556x45_Stanag", - "20Rnd_762x51_DMR", - "17Rnd_9x19_glock17", - "15Rnd_9x19_M9SD", - "15Rnd_9x19_M9", - "30Rnd_762x39_AK47", - "30Rnd_545x39_AK", - "5Rnd_762x51_M24", - "5Rnd_86x70_L115A1", - "8Rnd_B_Beneli_74Slug", - "1Rnd_HE_M203", - "FlareWhite_M203", - "FlareGreen_M203", - "1Rnd_Smoke_M203", - "200Rnd_556x45_M249", - "HandGrenade_west", - "HandGrenade_east", - "SmokeShell", - "SmokeShellRed", - "SmokeShellGreen", - "8Rnd_B_Beneli_Pellets", - "30Rnd_556x45_StanagSD", - "30Rnd_9x19_MP5", - "30Rnd_9x19_MP5SD", - "100Rnd_762x51_M240", - "HandChemGreen", - "HandChemBlue", - "HandChemRed", - "ItemHeatPack", - "FoodMRE", - "8Rnd_9x18_MakarovSD", - "20Rnd_B_765x17_Ball", - "30Rnd_9x19_UZI_SD", - "ItemDocument" - }, - { - 0.07, - 0.04, - 0.01, - 0.01, - 0.04, - 0.04, - 0.04, - 0.01, - 0.04, - 0.04, - 0.05, - 0.01, - 0.02, - 0.04, - 0.04, - 0.01, - 0.01, - 0.04, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.04, - 0.02, - 0.02, - 0.04, - 0.01, - 0.02, - 0.01, - 0.01, - 0.02, - 0.02, - 0.02, - 0.04, - 0.03, - 0.01, - 0.04, - 0.01, - 0.02 - } + {"FoodCanUnlabeled",0.07} + ,{"ItemSodaEmpty",0.04} + ,{"ItemSodaCoke",0.01} + ,{"ItemSodaPepsi",0.01} + ,{"ItemBandage",0.04} + ,{"ItemAntibiotic",0.04} + ,{"ItemPainkiller",0.04} + ,{"ItemMorphine",0.01} + ,{"30Rnd_556x45_Stanag",0.04} + ,{"20Rnd_762x51_DMR",0.04} + ,{"17Rnd_9x19_glock17",0.05} + ,{"15Rnd_9x19_M9SD",0.01} + ,{"15Rnd_9x19_M9",0.02} + ,{"30Rnd_762x39_AK47",0.04} + ,{"30Rnd_545x39_AK",0.04} + ,{"5Rnd_762x51_M24",0.01} + ,{"5Rnd_86x70_L115A1",0.01} + ,{"8Rnd_B_Beneli_74Slug",0.04} + ,{"1Rnd_HE_M203",0.01} + ,{"FlareWhite_M203",0.01} + ,{"FlareGreen_M203",0.01} + ,{"1Rnd_Smoke_M203",0.01} + ,{"200Rnd_556x45_M249",0.01} + ,{"HandGrenade_west",0.01} + ,{"HandGrenade_east",0.01} + ,{"SmokeShell",0.04} + ,{"SmokeShellRed",0.02} + ,{"SmokeShellGreen",0.02} + ,{"8Rnd_B_Beneli_Pellets",0.04} + ,{"30Rnd_556x45_StanagSD",0.01} + ,{"30Rnd_9x19_MP5",0.02} + ,{"30Rnd_9x19_MP5SD",0.01} + ,{"100Rnd_762x51_M240",0.01} + ,{"HandChemGreen",0.02} + ,{"HandChemBlue",0.02} + ,{"HandChemRed",0.02} + ,{"ItemHeatPack",0.04} + ,{"FoodMRE",0.03} + ,{"8Rnd_9x18_MakarovSD",0.01} + ,{"20Rnd_B_765x17_Ball",0.04} + ,{"30Rnd_9x19_UZI_SD",0.01} + ,{"ItemDocument",0.02} }; militarypilot[] = { - { - "FoodCanUnlabeled", - "ItemSodaEmpty", - "ItemSodaCoke", - "ItemSodaPepsi", - "ItemBandage", - "ItemAntibiotic", - "ItemPainkiller", - "ItemMorphine", - "30Rnd_556x45_Stanag", - "20Rnd_762x51_DMR", - "17Rnd_9x19_glock17", - "15Rnd_9x19_M9SD", - "15Rnd_9x19_M9", - "30Rnd_762x39_AK47", - "30Rnd_545x39_AK", - "5Rnd_762x51_M24", - "5Rnd_86x70_L115A1", - "8Rnd_B_Beneli_74Slug", - "1Rnd_HE_M203", - "FlareWhite_M203", - "FlareGreen_M203", - "1Rnd_Smoke_M203", - "200Rnd_556x45_M249", - "HandGrenade_west", - "HandGrenade_east", - "SmokeShell", - "SmokeShellRed", - "SmokeShellGreen", - "8Rnd_B_Beneli_Pellets", - "30Rnd_556x45_StanagSD", - "30Rnd_9x19_MP5", - "30Rnd_9x19_MP5SD", - "100Rnd_762x51_M240", - "HandChemGreen", - "HandChemBlue", - "HandChemRed", - "ItemHeatPack", - "FoodMRE", - "8Rnd_9x18_MakarovSD", - "20Rnd_B_765x17_Ball", - "30Rnd_9x19_UZI_SD", - "ItemHotwireKit" - }, - { - 0.06, - 0.04, - 0.01, - 0.01, - 0.04, - 0.04, - 0.04, - 0.01, - 0.04, - 0.04, - 0.05, - 0.01, - 0.02, - 0.04, - 0.04, - 0.01, - 0.01, - 0.04, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.01, - 0.04, - 0.02, - 0.02, - 0.04, - 0.01, - 0.02, - 0.01, - 0.01, - 0.02, - 0.02, - 0.02, - 0.04, - 0.03, - 0.01, - 0.04, - 0.01, - 0.03 - } + {"FoodCanUnlabeled",0.06} + ,{"ItemSodaEmpty",0.04} + ,{"ItemSodaCoke",0.01} + ,{"ItemSodaPepsi",0.01} + ,{"ItemBandage",0.04} + ,{"ItemAntibiotic",0.04} + ,{"ItemPainkiller",0.04} + ,{"ItemMorphine",0.01} + ,{"30Rnd_556x45_Stanag",0.04} + ,{"20Rnd_762x51_DMR",0.04} + ,{"17Rnd_9x19_glock17",0.05} + ,{"15Rnd_9x19_M9SD",0.01} + ,{"15Rnd_9x19_M9",0.02} + ,{"30Rnd_762x39_AK47",0.04} + ,{"30Rnd_545x39_AK",0.04} + ,{"5Rnd_762x51_M24",0.01} + ,{"5Rnd_86x70_L115A1",0.01} + ,{"8Rnd_B_Beneli_74Slug",0.04} + ,{"1Rnd_HE_M203",0.01} + ,{"FlareWhite_M203",0.01} + ,{"FlareGreen_M203",0.01} + ,{"1Rnd_Smoke_M203",0.01} + ,{"200Rnd_556x45_M249",0.01} + ,{"HandGrenade_west",0.01} + ,{"HandGrenade_east",0.01} + ,{"SmokeShell",0.04} + ,{"SmokeShellRed",0.02} + ,{"SmokeShellGreen",0.02} + ,{"8Rnd_B_Beneli_Pellets",0.04} + ,{"30Rnd_556x45_StanagSD",0.01} + ,{"30Rnd_9x19_MP5",0.02} + ,{"30Rnd_9x19_MP5SD",0.01} + ,{"100Rnd_762x51_M240",0.01} + ,{"HandChemGreen",0.02} + ,{"HandChemBlue",0.02} + ,{"HandChemRed",0.02} + ,{"ItemHeatPack",0.04} + ,{"FoodMRE",0.03} + ,{"8Rnd_9x18_MakarovSD",0.01} + ,{"20Rnd_B_765x17_Ball",0.04} + ,{"30Rnd_9x19_UZI_SD",0.01} + ,{"ItemHotwireKit",0.03} }; policeman[] = { - { - "ItemBandage", - "7Rnd_45ACP_1911", - "6Rnd_45ACP", - "15Rnd_W1866_Slug", - "8Rnd_B_Beneli_Pellets", - "HandRoadFlare", - "8Rnd_9x18_MakarovSD", - "ItemComboLock", - "SmokeShell", - "FoodMRE", - "ItemHotwireKit", - "ItemDocument" - }, - { - 0.3, - 0.08, - 0.08, - 0.14, - 0.16, - 0.07, - 0.01, - 0.05, - 0.04, - 0.04, - 0.03, - 0.02 - } + {"ItemBandage",0.3} + ,{"7Rnd_45ACP_1911",0.08} + ,{"6Rnd_45ACP",0.08} + ,{"15Rnd_W1866_Slug",0.14} + ,{"8Rnd_B_Beneli_Pellets",0.16} + ,{"HandRoadFlare",0.07} + ,{"8Rnd_9x18_MakarovSD",0.01} + ,{"ItemComboLock",0.05} + ,{"SmokeShell",0.04} + ,{"FoodMRE",0.04} + ,{"ItemHotwireKit",0.03} + ,{"ItemDocument",0.02} }; hunter[] = { - { - "ItemBandage", - "5x_22_LR_17_HMR", - "7Rnd_45ACP_1911", - "10x_303", - "ItemWaterbottleUnfilled", - "WoodenArrow", - "ItemHeatPack", - "FoodMRE", - "FoodNutmix", - "ItemDocument", - "ItemMixOil" - }, - { - 0.4, - 0.15, - 0.03, - 0.1, - 0.05, - 0.2, - 0.02, - 0.01, - 0.02, - 0.01, - 0.01 - } + {"ItemBandage",0.4} + ,{"5x_22_LR_17_HMR",0.15} + ,{"7Rnd_45ACP_1911",0.03} + ,{"10x_303",0.1} + ,{"ItemWaterbottleUnfilled",0.05} + ,{"WoodenArrow",0.2} + ,{"ItemHeatPack",0.02} + ,{"FoodMRE",0.01} + ,{"FoodNutmix",0.02} + ,{"ItemDocument",0.01} + ,{"ItemMixOil",0.01} }; - worker[] = { - { - "FoodCanUnlabeled", - "TrashJackDaniels", - "ItemSodaEmpty", - "ItemSodaCoke", - "ItemSodaPepsi", - "FoodCanBakedBeans", - "FoodCanSardines", - "FoodCanFrankBeans", - "FoodCanPasta", - "ItemBandage", - "ItemPainkiller", - "ItemWire", - "ItemTankTrap", - "ItemComboLock", - "ItemSledgeHead", - "ItemDocument" - }, - { - 0.09, - 0.09, - 0.10, - 0.10, - 0.10, - 0.06, - 0.06, - 0.06, - 0.06, - 0.1, - 0.06, - 0.01, - 0.03, - 0.04, - 0.02, - 0.02 - } + {"FoodCanUnlabeled",0.09} + ,{"TrashJackDaniels",0.09} + ,{"ItemSodaEmpty",0.1} + ,{"ItemSodaCoke",0.1} + ,{"ItemSodaPepsi",0.1} + ,{"FoodCanBakedBeans",0.06} + ,{"FoodCanSardines",0.06} + ,{"FoodCanFrankBeans",0.06} + ,{"FoodCanPasta",0.06} + ,{"ItemBandage",0.1} + ,{"ItemPainkiller",0.06} + ,{"ItemWire",0.01} + ,{"ItemTankTrap",0.03} + ,{"ItemComboLock",0.04} + ,{"ItemSledgeHead",0.02} + ,{"ItemDocument",0.02} }; - clothes[] = { - { - "Skin_RU_Policeman_DZ", - "Skin_Pilot_EP1_DZ", - "Skin_Functionary1_EP1_DZ", - "Skin_Priest_DZ", - "Skin_Rocker1_DZ", - "Skin_Rocker2_DZ", - "Skin_Rocker3_DZ", - "Skin_Rocker4_DZ", - "Skin_SurvivorW3_DZ", - "Skin_SurvivorWpink_DZ", - "Skin_SurvivorWurban_DZ", - "Skin_INS_Bardak_DZ", - "Skin_INS_Worker2_DZ" - }, - { - 0.11, - 0.1, - 0.1, - 0.1, - 0.07, - 0.07, - 0.08, - 0.08, - 0.09, - 0.09, - 0.07, - 0.02, - 0.02 - } + {"Skin_RU_Policeman_DZ",0.11} + ,{"Skin_Pilot_EP1_DZ",0.1} + ,{"Skin_Functionary1_EP1_DZ",0.1} + ,{"Skin_Priest_DZ",0.1} + ,{"Skin_Rocker1_DZ",0.07} + ,{"Skin_Rocker2_DZ",0.07} + ,{"Skin_Rocker3_DZ",0.08} + ,{"Skin_Rocker4_DZ",0.08} + ,{"Skin_SurvivorW3_DZ",0.09} + ,{"Skin_SurvivorWpink_DZ",0.09} + ,{"Skin_SurvivorWurban_DZ",0.07} + ,{"Skin_INS_Bardak_DZ",0.02} + ,{"Skin_INS_Worker2_DZ",0.02} }; militaryclothes[] = { - { - "Skin_Camo1_DZ", - "Skin_Sniper1_DZ", - "Skin_Rocket_DZ", - "Skin_Soldier1_DZ", - "Skin_Drake_Light_DZ", - "Skin_Soldier_TL_PMC_DZ", - "Skin_Soldier_Sniper_PMC_DZ", - "Skin_Soldier_Bodyguard_AA12_PMC_DZ", - "Skin_CZ_Special_Forces_GL_DES_EP1_DZ", - "Skin_FR_OHara_DZ", - "Skin_FR_Rodriguez_DZ", - "Skin_CZ_Soldier_Sniper_EP1_DZ", - "Skin_Graves_Light_DZ", - "Skin_INS_Soldier_AR_DZ", - "Skin_INS_Soldier_CO_DZ" - }, - { - 0.09, - 0.08, - 0.05, - 0.5, - 0.07, - 0.07, - 0.05, - 0.07, - 0.08, - 0.08, - 0.09, - 0.04, - 0.09, - 0.05, - 0.04 - } + {"Skin_Camo1_DZ",0.09} + ,{"Skin_Sniper1_DZ",0.08} + ,{"Skin_Rocket_DZ",0.05} + ,{"Skin_Soldier1_DZ",0.5} + ,{"Skin_Drake_Light_DZ",0.07} + ,{"Skin_Soldier_TL_PMC_DZ",0.07} + ,{"Skin_Soldier_Sniper_PMC_DZ",0.05} + ,{"Skin_Soldier_Bodyguard_AA12_PMC_DZ",0.07} + ,{"Skin_CZ_Special_Forces_GL_DES_EP1_DZ",0.08} + ,{"Skin_FR_OHara_DZ",0.08} + ,{"Skin_FR_Rodriguez_DZ",0.09} + ,{"Skin_CZ_Soldier_Sniper_EP1_DZ",0.04} + ,{"Skin_Graves_Light_DZ",0.09} + ,{"Skin_INS_Soldier_AR_DZ",0.05} + ,{"Skin_INS_Soldier_CO_DZ",0.04} }; specialclothes[] = { - { - "Skin_Ins_Soldier_GL_DZ", - "Skin_GUE_Commander_DZ", - "Skin_Bandit1_DZ", - "Skin_Bandit2_DZ", - "Skin_BanditW1_DZ", - "Skin_BanditW2_DZ", - "Skin_TK_INS_Soldier_EP1_DZ", - "Skin_TK_INS_Warlord_EP1_DZ", - "Skin_SurvivorWcombat_DZ", - "Skin_SurvivorWdesert_DZ", - "Skin_GUE_Soldier_MG_DZ", - "Skin_GUE_Soldier_Sniper_DZ", - "Skin_GUE_Soldier_Crew_DZ", - "Skin_GUE_Soldier_CO_DZ", - "Skin_GUE_Soldier_2_DZ", - "Skin_TK_Special_Forces_MG_EP1_DZ", - "Skin_TK_Soldier_Sniper_EP1_DZ", - "Skin_TK_Commander_EP1_DZ", - "Skin_RU_Soldier_Crew_DZ", - "Skin_INS_Lopotev_DZ" - }, - { - 0.05, - 0.08, - 0.08, - 0.06, - 0.07, - 0.07, - 0.05, - 0.07, - 0.08, - 0.08, - 0.05, - 0.04, - 0.04, - 0.04, - 0.04, - 0.02, - 0.02, - 0.02, - 0.02, - 0.02 - } + {"Skin_Ins_Soldier_GL_DZ",0.05} + ,{"Skin_GUE_Commander_DZ",0.08} + ,{"Skin_Bandit1_DZ",0.08} + ,{"Skin_Bandit2_DZ",0.06} + ,{"Skin_BanditW1_DZ",0.07} + ,{"Skin_BanditW2_DZ",0.07} + ,{"Skin_TK_INS_Soldier_EP1_DZ",0.05} + ,{"Skin_TK_INS_Warlord_EP1_DZ",0.07} + ,{"Skin_SurvivorWcombat_DZ",0.08} + ,{"Skin_SurvivorWdesert_DZ",0.08} + ,{"Skin_GUE_Soldier_MG_DZ",0.05} + ,{"Skin_GUE_Soldier_Sniper_DZ",0.04} + ,{"Skin_GUE_Soldier_Crew_DZ",0.04} + ,{"Skin_GUE_Soldier_CO_DZ",0.04} + ,{"Skin_GUE_Soldier_2_DZ",0.04} + ,{"Skin_TK_Special_Forces_MG_EP1_DZ",0.02} + ,{"Skin_TK_Soldier_Sniper_EP1_DZ",0.02} + ,{"Skin_TK_Commander_EP1_DZ",0.02} + ,{"Skin_RU_Soldier_Crew_DZ",0.02} + ,{"Skin_INS_Lopotev_DZ",0.02} }; tents[] = { - { - "ItemTentOld", - "ItemTentDomed", - "ItemTentDomed2" - }, - { - 0.34, - 0.33, - 0.33 - } + {"ItemTentOld",0.34} + ,{"ItemTentDomed",0.33} + ,{"ItemTentDomed2",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 - } + {"DZ_Assault_Pack_EP1",0.22} + ,{"DZ_Czech_Vest_Puch",0.2} + ,{"DZ_TerminalPack_EP1",0.18} + ,{"DZ_ALICE_Pack_EP1",0.16} + ,{"DZ_TK_Assault_Pack_EP1",0.13} + ,{"DZ_CompactPack_EP1",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 - } + {"DZ_British_ACU",0.3} + ,{"DZ_GunBag_EP1",0.25} + ,{"DZ_CivilBackpack_EP1",0.2} + ,{"DZ_Backpack_EP1",0.15} + ,{"DZ_LargeGunBag_EP1",0.1} }; militaryammo[] = { - { - "2000Rnd_762x51_M134", - "29Rnd_30mm_AGS30", - "50Rnd_127x107_DSHKM", - "48Rnd_40mm_MK19", - "100Rnd_127x99_M2" - }, - { - 0.10, - 0.20, - 0.20, - 0.20, - 0.30 - } + {"2000Rnd_762x51_M134",0.1} + ,{"29Rnd_30mm_AGS30",0.2} + ,{"50Rnd_127x107_DSHKM",0.2} + ,{"48Rnd_40mm_MK19",0.2} + ,{"100Rnd_127x99_M2",0.3} }; - 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 - } + {"Makarov",0.25} + ,{"Colt1911",0.23} + ,{"revolver_EP1",0.2} + ,{"glock17_EP1",0.1} + ,{"MakarovSD",0.1} + ,{"M9",0.07} + ,{"M9SD",0.04} + ,{"revolver_gold_EP1",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 - } + {"Winchester1866",0.25} + ,{"LeeEnfield",0.2} + ,{"MR43",0.2} + ,{"Saiga12K",0.13} + ,{"Remington870_lamp",0.1} + ,{"Crossbow_DZ",0.07} + ,{"M1014",0.05} }; - farmweapons[] = { - { - "Winchester1866", - "LeeEnfield", - "MR43", - "Saiga12K", - "Remington870_lamp", - "Crossbow_DZ", - "huntingrifle", - "Chainsaw" - }, - { - 0.25, - 0.20, - 0.19, - 0.13, - 0.10, - 0.07, - 0.05, - 0.01 - } + {"Winchester1866",0.25} + ,{"LeeEnfield",0.2} + ,{"MR43",0.19} + ,{"Saiga12K",0.13} + ,{"Remington870_lamp",0.1} + ,{"Crossbow_DZ",0.07} + ,{"huntingrifle",0.05} + ,{"Chainsaw",0.01} }; - sniperrifles[] = { - { - "AK_107_PSO", - "M4SPR", - "M40A3", - "SVD_CAMO", - "SVD_des_EP1", - "SVD", - "huntingrifle", - "M24_des_EP1", - "M24", - "BAF_LRR_scoped", - "M107_DZ", - "KSVK_DZE", - "VSS_vintorez", - "SCAR_H_LNG_Sniper_SD", - "M14_EP1", - "DMR" - }, - { - 0.1, - 0.09, - 0.09, - 0.07, - 0.07, - 0.07, - 0.09, - 0.08, - 0.07, - 0.07, - 0.05, - 0.05, - 0.04, - 0.03, - 0.02, - 0.01 - } + {"AK_107_PSO",0.1} + ,{"M4SPR",0.09} + ,{"M40A3",0.09} + ,{"SVD_CAMO",0.07} + ,{"SVD_des_EP1",0.07} + ,{"SVD",0.07} + ,{"huntingrifle",0.09} + ,{"M24_des_EP1",0.08} + ,{"M24",0.07} + ,{"BAF_LRR_scoped",0.07} + ,{"M107_DZ",0.05} + ,{"KSVK_DZE",0.05} + ,{"VSS_vintorez",0.04} + ,{"SCAR_H_LNG_Sniper_SD",0.03} + ,{"M14_EP1",0.02} + ,{"DMR",0.01} }; sniperriflesammo[] = { - { - "30Rnd_545x39_AKSD", - "5Rnd_127x108_KSVK", - "5Rnd_86x70_L115A1", - "10Rnd_127x99_m107", - "10Rnd_762x54_SVD", - "20Rnd_762x51_DMR", - "5Rnd_762x51_M24", - "5x_22_LR_17_HMR", - "20Rnd_762x51_SB_SCAR", - "20Rnd_9x39_SP5_VSS" - }, - { - 0.18, - 0.08, - 0.07, - 0.15, - 0.20, - 0.10, - 0.15, - 0.10, - 0.07, - 0.05 - } + {"30Rnd_545x39_AKSD",0.18} + ,{"5Rnd_127x108_KSVK",0.08} + ,{"5Rnd_86x70_L115A1",0.07} + ,{"10Rnd_127x99_m107",0.15} + ,{"10Rnd_762x54_SVD",0.2} + ,{"20Rnd_762x51_DMR",0.1} + ,{"5Rnd_762x51_M24",0.15} + ,{"5x_22_LR_17_HMR",0.1} + ,{"20Rnd_762x51_SB_SCAR",0.07} + ,{"20Rnd_9x39_SP5_VSS",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 - } + {"UZI_EP1",0.25} + ,{"bizon",0.2} + ,{"Sa61_EP1",0.2} + ,{"MP5A5",0.13} + ,{"bizon_silenced",0.1} + ,{"UZI_SD_EP1",0.07} + ,{"MP5SD",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", - "M4A1_HWS_GL_SD_Camo" - }, - { - 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, - 0.01 - } + {"AKS_74_kobra",0.05} + ,{"AKS_74_U",0.05} + ,{"AKS_GOLD",0.01} + ,{"AK_47_M",0.05} + ,{"AK_74",0.05} + ,{"FN_FAL",0.03} + ,{"FN_FAL_ANPVS4",0.01} + ,{"G36A_camo",0.05} + ,{"G36C",0.05} + ,{"G36C_camo",0.05} + ,{"G36K_camo",0.05} + ,{"G36_C_SD_camo",0.03} + ,{"M16A2",0.05} + ,{"M16A2GL",0.02} + ,{"M16A4_ACG",0.01} + ,{"M4A1",0.05} + ,{"M4A1_Aim",0.04} + ,{"M4A1_AIM_SD_camo",0.01} + ,{"M4A1_HWS_GL_camo",0.01} + ,{"M4A3_CCO_EP1",0.04} + ,{"Sa58P_EP1",0.02} + ,{"Sa58V_CCO_EP1",0.04} + ,{"Sa58V_EP1",0.02} + ,{"Sa58V_RCO_EP1",0.04} + ,{"m8_compact",0.03} + ,{"m8_sharpshooter",0.04} + ,{"m8_holo_sd",0.02} + ,{"m8_carbine",0.05} + ,{"BAF_L85A2_RIS_SUSAT",0.02} + ,{"BAF_L85A2_RIS_Holo",0.01} + ,{"M4A1_HWS_GL_SD_Camo",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 - } + {"30Rnd_762x39_SA58",0.25} + ,{"30Rnd_762x39_AK47",0.2} + ,{"30Rnd_556x45_Stanag",0.2} + ,{"30Rnd_545x39_AK",0.11} + ,{"30Rnd_556x45_StanagSD",0.12} + ,{"20Rnd_762x51_FNFAL",0.07} }; - - machineguns[] = { - { - "RPK_74", - "M8_SAW", - "Pecheneg_DZ", - "PK_DZ", - "MG36_camo", - "M60A4_EP1_DZE", - "MG36", - "M249_m145_EP1_DZE", - "m240_scoped_EP1_DZE", - "M240_DZ", - "M249_EP1_DZ", - "Mk_48_DZ" - }, - { - 0.11, - 0.11, - 0.1, - 0.1, - 0.1, - 0.1, - 0.1, - 0.1, - 0.1, - 0.08, - 0.05, - 0.05 - } + {"RPK_74",0.11} + ,{"M8_SAW",0.11} + ,{"Pecheneg_DZ",0.1} + ,{"PK_DZ",0.1} + ,{"MG36_camo",0.1} + ,{"M60A4_EP1_DZE",0.1} + ,{"MG36",0.1} + ,{"M249_m145_EP1_DZE",0.1} + ,{"m240_scoped_EP1_DZE",0.1} + ,{"M240_DZ",0.08} + ,{"M249_EP1_DZ",0.05} + ,{"Mk_48_DZ",0.05} }; machinegunammo[] = { - { - "100Rnd_556x45_BetaCMag", - "75Rnd_545x39_RPK", - "100Rnd_556x45_M249", - "100Rnd_762x51_M240", - "100Rnd_762x54_PK", - "200Rnd_556x45_M249" - }, - { - 0.20, - 0.20, - 0.15, - 0.15, - 0.15, - 0.15 - } + {"100Rnd_556x45_BetaCMag",0.2} + ,{"75Rnd_545x39_RPK",0.2} + ,{"100Rnd_556x45_M249",0.15} + ,{"100Rnd_762x51_M240",0.15} + ,{"100Rnd_762x54_PK",0.15} + ,{"200Rnd_556x45_M249",0.15} }; machinegunammoexpl[] = { - { - "100Rnd_556x45_BetaCMag", - "75Rnd_545x39_RPK", - "100Rnd_556x45_M249", - "100Rnd_762x51_M240", - "100Rnd_762x54_PK", - "200Rnd_556x45_M249", - "MAAWS_HEAT", - "PipeBomb" - }, - { - 0.20, - 0.20, - 0.15, - 0.15, - 0.14, - 0.14, - 0.01, - 0.01 - } + {"100Rnd_556x45_BetaCMag",0.2} + ,{"75Rnd_545x39_RPK",0.2} + ,{"100Rnd_556x45_M249",0.15} + ,{"100Rnd_762x51_M240",0.15} + ,{"100Rnd_762x54_PK",0.14} + ,{"200Rnd_556x45_M249",0.14} + ,{"MAAWS_HEAT",0.01} + ,{"PipeBomb",0.01} }; - militaryshotguns[] = { - { - "Saiga12K", - "Remington870_lamp", - "M1014" - }, - { - 0.25, - 0.35, - 0.40 - } + {"Saiga12K",0.25} + ,{"Remington870_lamp",0.35} + ,{"M1014",0.4} }; }; diff --git a/SQF/dayz_code/init/loot_init.sqf b/SQF/dayz_code/init/loot_init.sqf index cee657e59..8b075a0eb 100644 --- a/SQF/dayz_code/init/loot_init.sqf +++ b/SQF/dayz_code/init/loot_init.sqf @@ -1,127 +1,74 @@ -private ["_config","_itemChances","_itemCount","_weighted","_j","_weight","_type","_canZombie","_canLoot","_classname","_itemChancesSmall","_itemCountSmall"]; +private ["_weighted","_j"]; dayz_CBLChances = []; dayz_CBLBase = []; - -dayzE_CBLSChances = []; -dayzE_CBLSBase = []; - -_config = []; +_config = configFile >> "CfgBuildingLoot"; if (DZE_MissionLootTable) then { _config = missionConfigFile >> "CfgBuildingLoot"; -} else { - _config = configFile >> "CfgBuildingLoot"; }; for "_i" from 0 to ((count _config) - 1) do { - _classname = toLower(configName (_config select _i)); - _itemChances = [] + getArray (_config >> _classname >> "ItemChance"); + _classname = configName (_config select _i); + _itemChances = getArray (_config >> _classname >> "lootType"); _itemCount = count _itemChances; + +//diag_log format["Classname: %1, Array: %2, Amount: %3", _classname, _itemChances, _itemCount]; + if (_itemCount > 0) then { if (dayz_CBLBase find _classname < 0) then { _weighted = []; _j = 0; for "_l" from 0 to ((count _itemChances) - 1) do { - _weight = round ((_itemChances select _l) * 100); - for "_k" from 0 to _weight - 1 do { + _weight = round (((_itemChances select _l) select 2) * 100); + for "_k" from 0 to (_weight - 1) do + { _weighted set [_j + _k, _l]; }; - _j = _j + _weight; + _j = _j + _weight; }; - dayz_CBLChances set [count dayz_CBLChances, _weighted]; - dayz_CBLBase set [count dayz_CBLBase, _classname]; + dayz_CBLChances set [count dayz_CBLChances, _weighted]; + dayz_CBLBase set [count dayz_CBLBase, _classname]; }; } else { dayz_CBLChances set [count dayz_CBLChances, [0]]; dayz_CBLBase set [count dayz_CBLBase, _classname]; }; - - _itemChancesSmall = [] + getArray (_config >> _classname >> "ItemChanceSmall"); - _itemCountSmall = count _itemChancesSmall; - if (_itemCountSmall > 0) then { - if (dayzE_CBLSBase find _classname < 0) then { - _weighted = []; - _j = 0; - for "_l" from 0 to ((count _itemChancesSmall) - 1) do { - _weight = round ((_itemChancesSmall select _l) * 100); - for "_k" from 0 to _weight - 1 do { - _weighted set [_j + _k, _l]; - }; - _j = _j + _weight; - }; - dayzE_CBLSChances set [count dayzE_CBLSChances, _weighted]; - dayzE_CBLSBase set [count dayzE_CBLSBase, _classname]; - }; - } else { - dayzE_CBLSChances set [count dayzE_CBLSChances, [0]]; - dayzE_CBLSBase set [count dayzE_CBLSBase, _classname]; - }; }; dayz_CLChances = []; dayz_CLBase = []; +//dayz_CLItemNames = []; -_config = []; +_config = configFile >> "cfgLoot"; if (DZE_MissionLootTable) then { _config = missionConfigFile >> "cfgLoot"; -} else { - _config = configFile >> "cfgLoot"; }; for "_i" from 0 to ((count (_config)) - 1) do { - _itemChances = (getArray (_config select _i)) select 1; + _classname = configName (_config select _i); + _itemChances = getArray (_config select _i); _weighted = []; _j = 0; for "_l" from 0 to ((count _itemChances) - 1) do { - _weight = round ((_itemChances select _l) * 100); - for "_k" from 0 to _weight - 1 do { + _weight = round (((_itemChances select _l) select 1) * 100); + for "_k" from 0 to (_weight - 1) do { _weighted set [_j + _k, _l]; + //_items set [count _items, ((_itemChances select _l) select 0)]; }; _j = _j + _weight; }; - dayz_CLBase set [count dayz_CLBase, configName (_config select _i)]; - dayz_CLChances set [count dayz_CLChances, _weighted]; + dayz_CLBase set [count dayz_CLBase, _classname]; + //dayz_CLItemNames set [count dayz_CLBase, _items]; + dayz_CLChances set [count dayz_CLChances, _weighted]; + + //diag_log format["CFGLoot: %1, Array: %2", _classname, _items]; }; - -dayzE_CLSChances = []; -dayzE_CLSBase = []; - -_config = []; -if (DZE_MissionLootTable) then { - _config = missionConfigFile >> "cfgLootSmall"; -} else { - _config = configFile >> "cfgLootSmall"; -}; - -for "_i" from 0 to ((count (_config)) - 1) do { - _itemChances = (getArray (_config select _i)) select 1; - _weighted = []; - _j = 0; - for "_l" from 0 to ((count _itemChances) - 1) do { - _weight = round ((_itemChances select _l) * 100); - for "_k" from 0 to _weight - 1 do { - _weighted set [_j + _k, _l]; - }; - _j = _j + _weight; - }; - dayzE_CLSBase set [count dayzE_CLSBase, configName (_config select _i)]; - dayzE_CLSChances set [count dayzE_CLSChances, _weighted]; -}; - -private["_i","_type","_config","_canZombie","_canLoot"]; +//diag_log ("BaseLoot: " +str(dayz_CLBase)); dayz_ZombieBuildings = []; dayz_LootBuildings = []; - -_config = []; -if (DZE_MissionLootTable) then { - _config = missionConfigFile >> "CfgBuildingLoot"; -} else { - _config = configFile >> "CfgBuildingLoot"; -}; - -for "_i" from 0 to (count (_config) - 1) do { - _type = _config select _i; - _canZombie = getNumber (_type >> "zombieChance") > 0; - _canLoot = getNumber (_type >> "lootChance") > 0; +for "_i" from 0 to (count (configFile >> "CfgBuildingLoot") - 1) do { + _type = (configFile >> "CfgBuildingLoot") select _i; + _canZombie = getNumber (_type >> "zombieChance") > 0; + _canLoot = getNumber (_type >> "lootChance") > 0; if(_canZombie) then { if(!((configName _type) in dayz_ZombieBuildings)) then { dayz_ZombieBuildings set [count dayz_ZombieBuildings, configName _type]; @@ -133,3 +80,5 @@ for "_i" from 0 to (count (_config) - 1) do { }; }; }; +//diag_log format["ZombieBuildings: %1", dayz_ZombieBuildings]; +//diag_log format["LootBuildings: %1", dayz_LootBuildings]; \ No newline at end of file diff --git a/Tools/Loot Position/ConvertLoottables.pl b/Tools/Loot Position/ConvertLoottables.pl new file mode 100644 index 000000000..6c6ded653 --- /dev/null +++ b/Tools/Loot Position/ConvertLoottables.pl @@ -0,0 +1,67 @@ +use strict; +use warnings; +use Data::Dumper; + +# Customize +my $configFile = '../../SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp'; + +# do not touch +my $cfg = ''; +my $collect = 0; +my $small = 0; +my @itemType; +my @itemChance; +open(CFG, '<', $configFile) or die $!; +while (my $line = ) { + + if ($line =~ /itemType(Small)?\[\]\s*=\s*\{\s*$/) { + $collect = 1; + @itemType = (); + + if (defined($1) && $1) { + $small = 1; + } + else { + $small = 0; + } + } + elsif ($collect == 1 && $line =~ /^\s*\{\s*"(\w*)",\s*"(\w*)"\s*\}/i) { + push(@itemType, { + Class => $1 + ,Type => $2 + }); + } + elsif ($collect == 1 && $line =~ /\};/) { + $collect = 2; + } + + elsif ($collect == 2 && $line =~ /itemChance(?:Small)?\[\]\s*=\s*\{/) { + $collect = 3; + @itemChance = (); + } + elsif ($collect == 3 && $line =~ /^\s*(\d+\.\d+),?/) { + push(@itemChance, $1); + } + elsif ($collect == 3 && $line =~ /\};/) { + $collect = 0; + + $cfg .= "\t\titemChance[] = {\n" if $small == 0; + $cfg .= "\t\titemChanceSmall[] = {\n" if $small == 1; + for (my $i=0; $i 0 ? ',' : ''), $itemType[$i]->{Class}, $itemType[$i]->{Type}, $itemChance[$i]); + } + $cfg .= "\t\t};\n"; + } + elsif ($line !~ /^\s*\/\// && $line !~ /^\s*$/) { + $cfg .= $line; + } +} +close(CFG); + +$cfg =~ s/(\d+\.\d+)[0]+\}\s*$/$1}/gm; + +open(NEWCFG,'>', $configFile) or die $!; +print NEWCFG $cfg; +close(NEWCFG); + +exit(0); \ No newline at end of file diff --git a/Tools/Loot Position/ConvertLoottables2.pl b/Tools/Loot Position/ConvertLoottables2.pl new file mode 100644 index 000000000..f618bc787 --- /dev/null +++ b/Tools/Loot Position/ConvertLoottables2.pl @@ -0,0 +1,52 @@ +use strict; +use warnings; +use Data::Dumper; + +# Customize +my $configFile = '../../SQF/dayz_code/Configs/CfgBuildingLoot/CfgLootSmall.hpp'; + +# do not touch +my $cfg = ''; +my $collect = 0; +my $small = 0; +my @itemType; +my @itemChance; +open(CFG, '<', $configFile) or die $!; +while (my $line = ) { + if ($line =~ /^\s*(\w+)\[\]\s*=\s*\{/i) { + $collect = 1; + $cfg .= "\t".$1."[] = {\n"; + } + elsif ($collect == 1 && $line =~ /^\s*"([^"]+)"/) { + push(@itemType, $1); + } + elsif ($collect == 1 && $line =~ /^\s*\},/) { + $collect = 2; + } + elsif ($collect == 2 && $line =~ /^\s*(\d+\.\d+),?/) { + push(@itemChance, $1); + } + elsif ($collect == 2 && $line =~ /^\t\}/) { + $collect = 0; + + for (my $i=0; $i 0 ? ',' : ''), $itemType[$i], $itemChance[$i]); + } + @itemType = (); + @itemChance = (); + + $cfg .= "\t};\n"; + } + elsif ($collect == 0 && $line !~ /^\s*\/\// && $line !~ /^\s*$/) { + $cfg .= $line; + } +} +close(CFG); + +$cfg =~ s/(\d+\.\d+)[0]+\}\s*$/$1}/gm; + +open(NEWCFG,'>', $configFile) or die $!; +print NEWCFG $cfg; +close(NEWCFG); + +exit(0); \ No newline at end of file