Project Zomboid

Project Zomboid

106 ratings
Ammo Loot Drop · Zombies Drop Ammo Box
   
Award
Favorite
Favorited
Unfavorite
Mods: Build 41
File Size
Posted
Updated
100.251 KB
1 Jul, 2023 @ 3:20pm
5 Jun @ 7:59am
6 Change Notes ( view )

Subscribe to download
Ammo Loot Drop · Zombies Drop Ammo Box

Description
Once activated, every zombie you eliminate has a chance to drop ammo, ensuring you're always locked and loaded for the next wave of zeds.

No more scrounging for bullets in desperate times!

Zombies may drop:
Box of .223 Round
Box of .308 Round
Box of .38 Special Round
Box of .44 Magnum Round
Box of .45 Auto Round
Box of 5.56mm Round
Box of 9mm Round
Box of Shotgun Shells

Activate ONLY one version at a time: Normal, Least, Less, or More.
You can use both "Ammo" and "Ammo Box" at the same time.

Want more (or less) ammo boxes from zombies?
Now you can adjust the drop rate in the sandbox settings to perfectly match your playstyle.
Never run out of ammo again (= ^_^ =)

UPDATE - 5 June 2024
Fixed an issue where the sandbox setting reverted to its default value upon loading a saved game

If you like this mod, please consider giving it an upvote so that other players can discover and enjoy it as well.



Workshop ID: 2997533989
Mod ID: AmmoLootDropBox
Mod ID: AmmoLootDropLeastBox
Mod ID: AmmoLootDropLessBox
Mod ID: AmmoLootDropMoreBox
29 Comments
Riko Prushka  [author] 13 Jun @ 9:18pm 
@BBA I couldn't replicate the bug. I have no idea what caused that.
BBA 13 Jun @ 8:03pm 
I've also been having the same problem even after setting the drop rate to 100 for both ammo and ammo boxes
Riko Prushka  [author] 5 Jun @ 10:21am 
@Willrock07 First, try unsubscribing and then subscribing again. If the issue persists, check whether the drop rate is truly affecting LootZed. You can do this by accessing the debug menu, then selecting 'Cheats' and tick 'LootZed.' Click on a generic zombie body to view the loot table. The drop rates should be above 60%.
Willrock07 5 Jun @ 10:08am 
Off line, I set it to 100, so it should drop every time, but it continues to appear rarely.
Riko Prushka  [author] 5 Jun @ 9:32am 
@Willrock07 Could you share more details about how you configured your server settings?
Willrock07 5 Jun @ 9:23am 
Even with today's update, it doesn't matter if you put 0 or 100, it doesn't change anything in the game.
Riko Prushka  [author] 5 Jun @ 5:12am 
@oo2018oo Thank you for going the extra mile to find a solution. However, that would defeat the purpose of adding the sandbox, as I initially started publishing the mod with multiple drop rate values for those who prefer not to use the sandbox option.

But no worries, I believe I have found a solution for this issue and will implement an update very soon. :happy_cats:
oo2018oo 4 Jun @ 8:37pm 
The problem is because the second time you load into the save Distribution table will be initialize and passed to the game instance before game load the SandboxVars that user customize into the code causing the mod to use the default value instead of customize value. also if you tried to customize value of Distribution table after SandboxVars loaded it will take no effect in loot chance since the Distribution table game used is already set.
oo2018oo 4 Jun @ 8:31pm 
I tried fixing it and this work!


https://pastecode.io/s/yqa1rvbs

the mod will become dependency on ModOptions tho and since ModOptions only have checkbox and dropdown to use you really can't customize down to the float value

the first time you run the game chance will be 25 since default val of box1 and box2 is false but after that you can check box, quit and reload the game and chance will be change according to ModOption setting
Riko Prushka  [author] 4 Jun @ 2:10pm 
@oo2018oo Thank you for bringing this to my attention. I'm looking into it and hope to have a solution soon.