Project Zomboid

Project Zomboid

54 个评价
ZombieLootDrop
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
417.391 KB
2 月 22 日 上午 12:15
3 月 7 日 上午 8:22
10 项改动说明 ( 查看 )

订阅以下载
ZombieLootDrop

描述
Note: B42 version is not yet supported

If you encounter any issues while using this, please leave a comment here. I will address them promptly. Thank you!

============= WHAT THIS MOD OFFER =============

- Set the drop probability of different resources (melee weapons, guns and ammo, food cans, resource materials, debris, backpacks) in the sandbox

- Certain zombies will be more likely to drop class-related items/clothing. For example: firefighters have more chances to carry axes/fire extinguishers, doctors/nurses have better chances to carry medical supplies, construction workers have more chances to carry construction tools and materials, farmers have more chances to carry seeds, etc.

- Compatible with more MOD items (ongoing development)


============= SUPPORTED MODS =============

- Better Flashlights (2766033079)
- Sprout's Farm and Garden(2937434637)
- Ammo Maker (2788256295)

- Brita's Weapon Pack (2200148440) & Arsenal[26] GunFighter Mod [2.0] (2297098490)
- Firearms (2256623447)
- Firearms B41 Revamped (3243752606)
- Guns of 93 (3077078907)
- Vanilla Firearms Expansion (2667899942)
- Vanilla firearms expansion - STALKER pack (2893333090)
- Gunrunner's Weapon Pack (A VFE Expansion) (2873405334)
- Scrap Guns (2125659488)


============= Sandbox Settings =============

The generation probability of most items is determined by the product of three factors:
Occupation Probability × Global Probability × Specialty Probability:

** Global Probability & Specialty Probability​ **
Both parameters have ​7 configurable levels​ (adjustable in sandbox settings):
Extremely Rare => 5%
Rare => 12%
Uncommon => 25%
Standard => 40%
Abundant => 60%
Plentiful => 80%
Extremely Abundant => 100%

​-- Occupation Probability Parameters​
​Fixed configuration parameters​ (adjusted based on the close relationship between occupations and items).
Example: A gas station employee has a higher chance to generate gasoline cans, while a military instructor has a higher chance to generate gunpowder.

-- Global Probability Parameters​ (adjustable in sandbox settings)
GlobalMultiplier: Global probability for zombie loot generation (specific to this mod).

--Specialty Probability Parameters​ (adjustable in sandbox settings)
​AmmoMultiplier: Probability of scattered ammunition generation (e.g., bullets, crossbows).
​AmmoBoxMultiplier: Probability of boxed ammunition generation (e.g., bullet boxes, crossbow quivers).
​MeleeMultiplier: Probability of melee weapon generation (e.g., scalpels, knives, wrenches).
​PistolMultiplier: Probability of pistol generation (e.g., handguns, revolvers).
​LongGunMultiplier: Probability of long-gun generation (e.g., rifles, shotguns).
​CannedFoodMultiplier: Probability of canned food generation.
​OtherFoodMultiplier: Probability of non-canned food generation (e.g., spices, cakes).
​ResourceMultiplier: Probability of consumable resource generation (e.g., seeds, gunpowder, rocks, glue, disinfectant, bandages).
​JunkMultiplier: Probability of junk item generation (e.g., flashlights, magazines, Personal belongings, grenades, flashbangs, firearm attachments).
​BagMultiplier: Probability of container generation (e.g., backpacks, lunchboxes, first-aid kits).
​BagContentsMultiplier: Probability of items inside containers (e.g., pencils in backpacks, food in lunchboxes, medical supplies in first-aid kits).


*** Custom Items (adjustable in sandbox settings)​ ***
You can now configure additional loot drops in the sandbox options under ​Custom Extra Items Set​ (3 sets available for categorized management). class-related loot and drop chances are calculated independently for each item.

Format:
OutfitID:ItemID:Chance; OutfitID:ItemID:Chance; …
- OutfitID: represents the corresponding class ID in the game.
- ItemID: represents the corresponding item ID in the game. (use the cheat mode to generate items and obtain their itemID through the edit mode)
- ​Chance: A decimal value between 0 and 100.

Outfit Pages: https://pzwiki.net/wiki/Outfit (choose one Outfit into detail page, Technical => Outfit ID)
Vanilla Item Pages: https://pzwiki.net/wiki/Item (choose one Item into detail page, Technical => item ID)

Example:
Farmer:Base.Stone:0.5; Farmer:Base.Stone:0.5; Farmer:Sprout.TeaBagSeed:2; *:Base.Axe:10;
- Farmer:Base.Stone:0.5 appearing twice means the Farmer has ​2 independent chances​ to drop stones (max potential drops: 2).
- If the value of OutfitID is *, it indicates that all characters have a chance to drop this loot.

Importance:If you find that the Custom Items does not work, you can look up the 'Custom Extra Items Set' keyword in the game's log file, there will be some clues and hints to help you correct. For example:
[Custom Extra Items Set1] input item string: Farmer:Base.Stone: ; Farmers: Base.SeedBag:2; Bandit:Base.Axe:10
[Custom Extra Items Set1] Farmer:Base.Stone: => parse invalid entry -- correct:Farmer:Base.Stone:0.5
[Custom Extra Items Set1] Farmers:Base.SeedBag:2 => class not found: Farmers -- class not found. correct:Farmer:Base.Stone:0.5

============= SPECIAL THANKS =============

- MaDZombieLoot Reforged (rewritten based on this code)


Workshop ID: 3431985384
Mod ID: ZombieLootDrop
14 条留言
bioinformer 9 月 10 日 上午 4:37 
I'm using this with AunthenticZ and it doesn't seem to enable zombie bags to have any loot even when we increase the chances to max chance. Do you know why this might be?
Quad Tentacle 7 月 12 日 上午 10:22 
I set Custom Extra Items Set with one item chance set to 0 and I found this item on corps that was not killed by me but spawned already dead. Is this mod works only on living zombies?
williamasecas 3 月 24 日 下午 8:52 
Its okay then. I do want zombie´s loot to be reduced by Time Decreases Loot mod so the chance is very very low but still there to find something from time to time and get a little bit of extra loot to the insanely low loot i play with.

Currently i´ve set everything in base sandbox settings to Insanely rare which is combined with a 95% decrease for food & ammo, and a 80% decrease for everything else.

Thanks for answering. 👍
快乐猪大肠  [作者] 3 月 24 日 下午 7:48 
@williamasecas In addition, in this mod, the default drop probability is not too high.

Magazine loot drops are determined by outfit chance * JunkMultiplier * GlobalMultiplier.
Magazines typically have an outfit chance between 1 and 5.

For example, if only Cook_Generic drops CookingMag1 magazine and outfit chance is 2, then the final drop probability is: outfit chance (2) * JunkMultiplier (uncommon => 25) * GlobalMultiplier (uncommon => 25) / 10000 = 0.125. This means that for every 1000 Cook_Generic kills, 125 CookingMag1 will be dropped.

If you need more drop probability, sandbox JunkMultiplier and GlobalMultiplier.
快乐猪大肠  [作者] 3 月 24 日 下午 7:47 
@williamasecas oh, sorry, I clicked the wrong button and deleted one of your messages.

I went back to the Time Decreases Loot code, which directly removes items from the container (including the dead zombies), so it affects the loot generation in this mod (by increasing loot to the dead zombies' container).
快乐猪大肠  [作者] 3 月 24 日 上午 3:33 
@williamasecas This mod currently works independently and is not affected by Time Decreases Loot or other loot mods (it just adds loot independently when zombies die).
williamasecas 3 月 22 日 上午 3:45 
Would the loot of zombies be affected by the mod "Time Decreases Loot" which basically removes a % of the objects in all containers? the creator said that dead bodies count as containers so i guess it should apply that logic to the loot from your mod.

Also i wonder, using this mod would change the zombies loot in a way that makes other mods objects not longer appear in zombies? or it justs adds those objects along with the others that already spawn?
快乐猪大肠  [作者] 3 月 7 日 上午 8:39 
@Pain Yes, it compatible! But the mod (2891251749) has not been added to the supported mod list yet (this means zombies ​will not drop loot from this mod when configured through default AmmoMultiplier/AmmoBoxMultiplier/PistolMultiplier/LongGunMultiplier in sandbox settings). If you need zombies to drop items from this mod, you can configure it via the ​Custom Extra Items Set in the Sandbox settings. (Alternatively, you can wait for me to add this mod to the compatibility list in a future update.)
🅻🅰🆂🆃🆂🅿🆈 3 月 4 日 上午 11:12 
Thanks. you take my like