makasouleater Posted October 12, 2015 Report Share Posted October 12, 2015 Sorry for another newb question :) class SniperRifleMarkDLC { items[] = { { { "srifle_DMR_02_F", "weapon" }, 1 }, { { "srifle_DMR_02_camo_F", "weapon" }, 1 }, { { "srifle_DMR_02_sniper_F", "weapon" }, 1 }, { { "srifle_DMR_03_F", "weapon" }, 1 }, { { "srifle_DMR_03_khaki_F", "weapon" }, 1 }, { { "srifle_DMR_03_tan_F", "weapon" }, 1 }, { { "srifle_DMR_03_multicam_F", "weapon" }, 1 }, { { "srifle_DMR_03_woodland_F", "weapon" }, 1 }, { { "srifle_DMR_04_F", "weapon" }, 1 }, { { "srifle_DMR_04_Tan_F", "weapon" }, 1 }, { { "srifle_DMR_05_blk_F", "weapon" }, 1 }, { { "srifle_DMR_05_hex_F", "weapon" }, 1 }, { { "srifle_DMR_05_tan_f", "weapon" }, 1 }, { { "srifle_DMR_06_camo_F", "weapon" }, 1 }, { { "srifle_DMR_06_olive_F", "weapon" }, 1 }What does that number after the class name mean? If i put it to 0, will it make it so none of those guns spawn in loot? Link to comment Share on other sites More sharing options...
TheVampire Posted October 12, 2015 Report Share Posted October 12, 2015 It's the weight, as in the chance of it spawning from that table.If you want it to spawn more often, then increase the number, but the tables themselves also have weight depending on the CfgMainTable entry the loot is coming from.Ex:class Vehicle : Default { lootMin = 3; LootMax = 6; tables[] = { { "Items", 6 }, { "Equipment", 6 }, { "Pistols", 6 }, { "PistolAmmo", 6 }, { "Scopes", 4 }, { "Muzzles", 4 }, { "Uniforms", 6 }, { "Vests", 6 }, { "Headgear", 6 }, { "Food", 4 }, { "Generic", 6 }, { "GenericAuto", 6 }, { "Machinegun", 4 }, { "MachinegunAmmo", 4 }, { "Rifle", 5 }, { "RifleAmmo", 4 }, { "SniperRifle", 3 }, { "SniperRifleAmmo", 4 }, { "Hand", 4 }, { "Grenades", 2 }, { "Backpack", 4 } }; }; If you want to have it not spawn, it's better to remove the entry instead of setting it to zero. Link to comment Share on other sites More sharing options...
makasouleater Posted October 12, 2015 Author Report Share Posted October 12, 2015 (edited) Thank you so much. That made things much easier, now i dont have to go running around looting, to see if what i did worked:) Edited October 12, 2015 by makasouleater Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now