Login  Register

Re: Adding custom items to loot spawns

Posted by Outlaw2101 on Mar 16, 2014; 5:36am
URL: http://kodabar-dayz-daizy-single-player-forum.163.s1.nabble.com/Adding-custom-items-to-loot-spawns-tp16011p16017.html

Hello

Thankyou very much for your reply. I have got it set like this.

class Military: Default {
                zombieChance = 0.3;
                maxRoaming = 6;
                zombieClass[] = {"z_soldier","z_soldier_heavy","z_policeman"};
                lootChance = 0.4;
                lootPos[] = {};
                itemType[] = {
                        {"UZI_SD_EP1","weapon"},
                        {"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"},
                        {"RH_rpk47 RH_75Rnd_762x39_mag","weapon"},
                        {"RH_akms 30Rnd_762x39_AK47","weapon"},
                        {"RH_ak47 30Rnd_762x39_AK47","weapon},
                        {"RH_an94 RH_30Rnd_545x39_an94_mag","weapon"},
                        {"RH_aks74mk 30Rnd_545x39_AK","weapon"},

                       
                        {"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"}
                };
                itemChance[] = {
                        0.03,
                        0.05,
                        0.05,
                        0.01,
                        0.02,
                        0.15,
                        0.01,
                        0.08,
                        0.05,
                        0.05,
                        0.01,
                        0.10,
                        0.01,
                        0.02,
                        0.01,
                        0.05,
                        0.08,
                        0.10,
                        0.04,
                        0.02,
                        0.01,
                        0.06,
                        0.10,
                        0.10,
                        0.01,
                        0.05,
                        0.05,
                        0.10,
                        0.05,
                        0.03,
                        0.05,

                        //Bags
                        0.08, //16
                        0.08, //16
                        0.06, //18
                        0.01, //24
                        0.01, //DZ_Backpack_EP1 24
                        0.10,
                        1.00,
                        2.50,
                        //0.20,
                        0.05,
                        0.02,
                        0.03,
                        0.03
                };

The bold entries with RH_ in front of them are the weapons I have added. I have also added a spawn chance. Should this work correctly?

Thankyou.