SMDistribution.lua
local function preDistributionMerge()
-- Smoker mod Trash
ProceduralDistributions.list.SmokerModItemsTrash = {
rolls = 7,
items = {
"SM.SMButt", 10,
"SM.SMButt2", 10,
"SM.SMEmptyPack", 10,
"SM.SMEmptyPackLight", 10,
"SM.SMEmptyPackMenthol", 10,
"SM.SMEmptyPackGold", 10,
"SM.EmptyMatchbox", 10,
},
}
-- Smoker mod Zombie Items
ProceduralDistributions.list.SmokerModZombieItems = {
rolls = 1,
items = {
"SM.Matches", 100,
"SM.SMPack", 100,
"SM.SMPackLight", 100,
"SM.SMPackMenthol", 100,
"SM.SMPackGold", 100,
},
}
end
Events.OnPreDistributionMerge.Add(preDistributionMerge);
SMPoceduralDistribution.lua
local SmokerModDistTable = {
all = {
bin = {
procedural = true,
procList = {
{name="SmokerModItemsTrash", min=1, max=10},
}
},
inventorymale = {
procedural = true,
procList = {
{name="SmokerModZombieItems", min=0, max=1},
}
},
inventoryfemale = {
procedural = true,
procList = {
{name="SmokerModZombieItems", min=0, max=1},
}
},
}
}
table.insert(Distributions, 2, SmokerModDistTable);
Yes, the item distribution is finally working, but I have questions.
In killed zombies, the entire list of items specified in SmokerModZombieItems appears, how to limit, for example, two items?
Another oddity is that objects in zombies that are killed outside (outside the premises) never appear, while when killing zombies indoors, objects are guaranteed to appear, the same applies to dumpsters.