Loot Tables

Here's a bit of the default settings found in "config.cpp"...

Heli:
Code:
class HeliCrash: Default {
        zombieChance = 0.8;
        maxRoaming = 2;
        zombieClass[] = {"z_soldier_pilot"};
        lootChance = 2;
        lootPos[] = {};
        itemType[] =    {     
            {"FN_FAL","weapon"},
            {"bizon_silenced","weapon"},
            {"M14_EP1","weapon"},
            {"FN_FAL_ANPVS4","weapon"},
            {"M107_DZ","weapon"},
            {"BAF_AS50_scoped","weapon"},
            {"Mk_48_DZ","weapon"},
            {"M249_DZ","weapon"},
            {"BAF_L85A2_RIS_SUSAT","weapon"},
            {"DMR","weapon"},
            {"","military"},
            {"","medical"},
            {"MedBox0","object"},
            {"NVGoggles","weapon"},
            {"AmmoBoxSmall_556","object"},
            {"AmmoBoxSmall_762","object"},
            {"Skin_Camo1_DZ","magazine"},
            {"Skin_Sniper1_DZ","magazine"},
            {"G36C","weapon"},
            {"G36C_camo","weapon"},
            //{"G36_C_SD_camo","weapon"},
            {"G36A_camo","weapon"},
            {"G36K_camo","weapon"},
            {"100Rnd_762x54_PK","magazine"}

Military:
Code:
class Military: Default {
        zombieChance = 0.3;
        maxRoaming = 6;
        zombieClass[] = {"z_soldier","z_soldier_heavy","z_policeman"};
        lootChance = 1;
        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"},
            {"DMR","weapon"},
            {"M4A1","weapon"},
            {"M14_EP1","weapon"},
            {"UZI_EP1","weapon"},
            {"Remington870_lamp","weapon"},
            {"glock17_EP1","weapon"},
            {"MP5A5","weapon"},
            {"MP5SD","weapon"},
            {"M4A3_CCO_EP1","weapon"},
            {"Binocular","weapon"},
            {"ItemFlashlightRed","military"},
            {"ItemKnife","military"},
            {"ItemGPS","weapon"},
            {"ItemMap","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"}, // 24
         
            //Normal
            {"","medical"},
            {"","generic"},
            {"","military"},
            //{"Body","object"},
            {"ItemEtool","weapon"},
            {"ItemSandbag","magazine"},
            {"Sa58P_EP1","weapon"},
            {"Sa58V_EP1","weapon"},
            {"BAF_L85A2_RIS_Holo","weapon"}

Military Special:
Code:
class MilitarySpecial: Default {
        zombieChance = 0.4;
        minRoaming = 2;
        maxRoaming = 6;
        zombieClass[] = {"z_soldier_heavy"};
        lootChance = 0.4;
        lootPos[] = {};
        itemType[] =    {
            {"M16A2","weapon"},
            {"M16A2GL","weapon"},
            {"M249_DZ","weapon"},
            {"M9SD","weapon"},
            //{"M136","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"},
            {"M107_DZ","weapon"},
            {"DMR","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"}, // 24     
 
            {"","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"}


In the file, you'll find the % right below the parts I pasted.
If you use the proper names and format, you can add weapons/items (also remove them); just keep in mind you have to add/delete the item and the proper % or you'll mess things up.
 
I tried just changing the spawn chance in the regular loot tables, but then I couldn't start the server. This is why you should always back up the file you're modifying...just in case!
 
Here's a bit of the default settings found in "config.cpp"...
..

..
In the file, you'll find the % right below the parts I pasted.
If you use the proper names and format, you can add weapons/items (also remove them); just keep in mind you have to add/delete the item and the proper % or you'll mess things up.
I might look stupid now, but my serverside "config.cpp" is almost empty.
It only contains:
Code:
class CfgPatches {
    class dayz_server {
        units[] = {};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {"dayz_code"};
    };
};
Should I copy some stuff in from "@dayz\dayz_code.pbo\config.cpp"?
Or how should I tackle this? All I want to do is add a few radios to the loot table - trying to integrate ACRE to DayZ:]
Got server up and running, even vehicles spawning, changed starting gear. But this thing makes my head hurt :/
 
Thank you for the tip :) but I have no mission.pbo, only mission sqf :/
mission.sqf.png

Or am I looking at the wrong place?
 
You are right!
Took some time for me to figure it out. Weird thing is that it was unpacked the whole time and this got me confused.
Thank you for the help :)
 
Back
Top