Project Zomboid

Project Zomboid

PamboS Ultimate Zombie Loot
 This topic has been pinned, so it's probably important
PamboS 灾星  [developer] 17 Jan, 2021 @ 8:11am
How to adjust drop rates
In order to adjust drop rates to suit your play style, follow the following instructions:

This is a temporary solution until I figure out how drop rates can be adjusted dynamically from in-game.

NOTE THAT ANY DROP RATES YOU SET MANUALLY WILL PROBABLY BE OVERWRITTEN EVERY TIME THERE IS AN UPDATE TO THIS MOD.

1) Locate the mod's core loot table file. This can usually be found in C:\...\Steam\steamapps\workshop\content\108600\2249171143\mods\PambosUltimateZombieLoot\media\lua\server\Items\PamboSZombieLootDistributions.lua
2) Open the file PamboSZombieLootDistributions.lua using any text editor (such as notepad)
3) Modify the drop rate variables found at the top of the file (also shown below):

- 1.0 will use the default drop rates of the mod
- Setting a variable to 0.0 means that all items of the corresponding category will no longer drop.
- Setting to any number greater than 0.0 will adjust the drop rate accordingly. 0.5 will halve the drop rate and 2.0 will double it.
- GlobalDropRate adjusts the drop rate of ALL items.

GlobalDropRate = 1.0 -- Adjust drop rate of ALL items
ContainerDropRate = 1.0 -- Adjust drop rate of containers
FoodDropRate = 1.0 -- Adjust drop rate of food items
ElectronicsDropRate = 1.0 -- Adjust drop rate of electronics
ToolsDropRate = 1.0 -- Adjust drop rate of tools
MatsDropRate = 1.0 -- Adjust drop rate of useful materials
MedicalDropRate = 1.0 -- Adjust drop rate of medical items
MiscDropRate = 1.0 -- Adjust drop rate of misc items
WeaponDropRate = 1.0 -- Adjust drop rate of weapons
AmmoDropRate = 1.0 -- Adjust drop rate of ammo
LitDropRate = 1.0 -- Adjust drop rate of books etc
Last edited by PamboS 灾星; 17 Jan, 2021 @ 8:19am
< >
Showing 1-8 of 8 comments
toxic_train (aka SPA) (Banned) 2 Apr, 2021 @ 7:23pm 
2 suggestions.. 1. its possible to make a symbolic link to the file, so its easier to be accessed for editing. 2. its possible to make this file read-only, it will prevent steam from overwriting it by new versions. best.
PamboS 灾星  [developer] 3 Apr, 2021 @ 2:11pm 
Originally posted by toxic_train:
2 suggestions.. 1. its possible to make a symbolic link to the file, so its easier to be accessed for editing. 2. its possible to make this file read-only, it will prevent steam from overwriting it by new versions. best.
Not sure how to do this. Got any instructions on this handy?
toxic_train (aka SPA) (Banned) 7 Apr, 2021 @ 4:25pm 
Originally posted by PamboS 灾星:
Not sure how to do this. Got any instructions on this handy?
It depends on operating system, but I think its roughly same across all. In file manager, right-click or right-click-drag on the file, then "make symbolic link" appears. The symlink allows fast access to the config file, as it can be moved anywhere and will still point to config. Same about file access attributes, they are usually found in file properties. Making file read-only will prevent steam from overwriting it. Other option is to just make a backup copy.. :)

I dont really miss the lack of sliders.
Last edited by toxic_train (aka SPA); 7 Apr, 2021 @ 4:26pm
PamboS 灾星  [developer] 8 Apr, 2021 @ 5:53am 
Originally posted by toxic_train:
Originally posted by PamboS 灾星:
Not sure how to do this. Got any instructions on this handy?
It depends on operating system, but I think its roughly same across all. In file manager, right-click or right-click-drag on the file, then "make symbolic link" appears. The symlink allows fast access to the config file, as it can be moved anywhere and will still point to config. Same about file access attributes, they are usually found in file properties. Making file read-only will prevent steam from overwriting it. Other option is to just make a backup copy.. :)

I dont really miss the lack of sliders.
Thanks, I'll look into adding this!
LoLI_Lovit_Coc 7 Dec, 2021 @ 12:04pm 
Hello, will values ​​like 0.2 or 0.3 work?
PamboS 灾星  [developer] 7 Dec, 2021 @ 1:48pm 
Originally posted by ♥♥♥♥♥|DESTROYER!:
Hello, will values ​​like 0.2 or 0.3 work?
They will. Any value between 0 and 1 works.
robot ._. 2 Jun, 2022 @ 6:04am 
Originally posted by PamboS 灾星:
Originally posted by ♥♥♥♥♥|DESTROYER!:
Hello, will values ​​like 0.2 or 0.3 work?
They will. Any value between 0 and 1 works.

do you have an idea which combination of values adds up to 100% drop rate vs 10% drop rate?

addItemToZombieLoot("Base.Bullets9mm", 5.00 , GlobalDropRate, AmmoDropRate);

GlobalDropRate = 1.0 AmmoDropRate = 5.0

Seems to result in (5) 9mm rounds being dropped at a time, about 60-70% of the time
PamboS 灾星  [developer] 23 Jun, 2022 @ 8:10am 
Originally posted by TurboBongRips:
Originally posted by PamboS 灾星:
They will. Any value between 0 and 1 works.

do you have an idea which combination of values adds up to 100% drop rate vs 10% drop rate?

addItemToZombieLoot("Base.Bullets9mm", 5.00 , GlobalDropRate, AmmoDropRate);

GlobalDropRate = 1.0 AmmoDropRate = 5.0

Seems to result in (5) 9mm rounds being dropped at a time, about 60-70% of the time

Not sure actually; I haven't been able to figure out how the game coverts drop rates to drop probabilities. Typically the higher the number you set, the higher the drop rate but I'm not sure if there is a high enough number that the game converts to 100% drop probability.
< >
Showing 1-8 of 8 comments
Per page: 1530 50