Project Zomboid

Project Zomboid

PamboS Ultimate Zombie Loot
 此主题已被置顶,因此可能具有重要性
PamboS 灾星  [开发者] 2021 年 1 月 17 日 上午 8:11
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
最后由 PamboS 灾星 编辑于; 2021 年 1 月 17 日 上午 8:19
< >
正在显示第 1 - 8 条,共 8 条留言
toxic_train (aka SPA) (已封禁) 2021 年 4 月 2 日 下午 7:23 
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 灾星  [开发者] 2021 年 4 月 3 日 下午 2:11 
引用自 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) (已封禁) 2021 年 4 月 7 日 下午 4:25 
引用自 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.
最后由 toxic_train (aka SPA) 编辑于; 2021 年 4 月 7 日 下午 4:26
PamboS 灾星  [开发者] 2021 年 4 月 8 日 上午 5:53 
引用自 toxic_train
引用自 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 2021 年 12 月 7 日 下午 12:04 
Hello, will values ​​like 0.2 or 0.3 work?
PamboS 灾星  [开发者] 2021 年 12 月 7 日 下午 1:48 
Hello, will values ​​like 0.2 or 0.3 work?
They will. Any value between 0 and 1 works.
引用自 PamboS 灾星
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 灾星  [开发者] 2022 年 6 月 23 日 上午 8:10 
引用自 TurboBongRips
引用自 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.
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50