Project Zomboid

Project Zomboid

Ammo Loot Drop · Zombies Drop Ammo Box
38 Comments
Aqua. 31 Dec, 2024 @ 10:01am 
Does this work with modded guns for ammo?
Riko Prushka  [author] 21 Dec, 2024 @ 5:44pm 
Oblivionis 9 Dec, 2024 @ 10:53pm 
It's either mod conflict with the mod "More duct tapes" or just mod order conflict. I disabled the mentioned mod and rearranged mod activation order and the problem is solved now.
Riko Prushka  [author] 8 Dec, 2024 @ 9:26am 
@Oblivionis Yes, it would be a good idea to enable them one by one to identify the issue causing the loot table to be overwritten.
Oblivionis 8 Dec, 2024 @ 9:19am 
Might be relevant? Using Arsenal 2.0, Escape from Kentucky2, Ammo maker, Universal repair guns. I'm suspecting it might be some settings overwriting the ammo drops.
Oblivionis 8 Dec, 2024 @ 8:56am 
Tried reloading the mod and the Lua files. Used LootZed tool to see what is happening in the loot table. Nothing is changed by this mod especially the ammo drops. Weird. I am using the [More] option of this mod together with the arsenal version. None of these works.
Riko Prushka  [author] 23 Jul, 2024 @ 7:33pm 
@milena.srbova No, this mod is a standalone mod.
milena.srbova 23 Jul, 2024 @ 4:03pm 
uhhh, does this mod need "zombies drop bullets"??
rua 20 Jul, 2024 @ 6:48am 
my...superhero...
Riko Prushka  [author] 13 Jun, 2024 @ 9:18pm 
@BBA I couldn't replicate the bug. I have no idea what caused that.
BBA 13 Jun, 2024 @ 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, 2024 @ 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, 2024 @ 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, 2024 @ 9:32am 
@Willrock07 Could you share more details about how you configured your server settings?
Willrock07 5 Jun, 2024 @ 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, 2024 @ 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, 2024 @ 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, 2024 @ 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, 2024 @ 2:10pm 
@oo2018oo Thank you for bringing this to my attention. I'm looking into it and hope to have a solution soon.
oo2018oo 4 Jun, 2024 @ 9:39am 
There is still a bug. You can test it by set sandbox options to 100 and when you try to loot some zombies the mod will seem to work fine, but when you quit and reload back into the save the custom value you put in sandbox options will not work anymore, apparently after some debugging I found that when load into save the second time value inside SuburbDistribution for ammo box has been set to 0.1 which is default value instead of the 100 that I use but when I tried to print out SandboxVars.AmmoLootDropBox_Normal it return 100 so I think SuburbDistribution Update just happened before the SandboxVars.AmmoLootDropBox_Normal fetching I guess?
Riko Prushka  [author] 23 May, 2024 @ 9:34pm 
@BBA :true: Updated and fixed.
Thank you for your report. :caveblazersheart:
BBA 23 May, 2024 @ 9:11pm 
I tested both the regular version and the more drop version, and both don't drop any ammo boxes.
Riko Prushka  [author] 23 May, 2024 @ 9:10pm 
@BBA Which version are you using?
BBA 23 May, 2024 @ 9:09pm 
I think the mod is bugged since the sandbox options update. No ammo boxes seem to be dropping from zombies even after disabling every other mod and setting the drop rate to 100.
Riko Prushka  [author] 20 May, 2024 @ 11:03pm 
@BBA The sandbox settings only affect the chance of zombies dropping ammo.
BBA 19 May, 2024 @ 12:41am 
Is the sandbox settings the chance of zombies having ammo/ammo boxes or the amount they'll have?
Riko Prushka  [author] 18 May, 2024 @ 8:14am 
The wait is over! Sandbox settings have been implemented. I hope this is the final update.
xapti 26 Feb, 2024 @ 2:12am 
Due to not as many people playing pre 41.4x-ish, many people don't realize that zombies used to rarely drop ammo (like 1 box or 15 rounds) in the base game. I'm not sure if the change was intentional or that the feature was just broken due to other changes that were made.

Is it not possible to make the mod rely on a variable setting that can be user-configured? Many other mods do that, and I think it would be a good thing to focus on if you have the time.
SaltyBabyJesus 26 Sep, 2023 @ 5:08pm 
Playing RE4 be like:
pzhda'tan 18 Sep, 2023 @ 10:28pm 
Thanks for updating both mods to include the least setting! :rwrteddy:
Riko Prushka  [author] 17 Sep, 2023 @ 3:56pm 
@pzhda'tan I've updated the mod by including the least version and decreasing drop rates. Please don't hesitate to provide any additional feedback you might have. :happy_cats:
pzhda'tan 27 Aug, 2023 @ 3:05pm 
Is an even lesser version also possible? It feels not too hard to come across ammo boxes.
Candy Pants 26 Aug, 2023 @ 10:35am 
@Riko K, love u Riko.
Riko Prushka  [author] 26 Aug, 2023 @ 10:33am 
@Boufadees Soon™
Candy Pants 26 Aug, 2023 @ 10:18am 
Can you make this compatible with the Vanilla Firearm Expansions mod please? :gman:
Quilava 2 Jul, 2023 @ 1:44am 
Always happy to help :steamthumbsup:
Riko Prushka  [author] 2 Jul, 2023 @ 12:39am 
@Quilava Thank you for your feedback. I've been quite busy lately and haven't had the chance to playtest all the versions myself. Your input is greatly appreciated and really helps. Cheers! :caveblazersheart:
Quilava 1 Jul, 2023 @ 8:15pm 
I got about 100 ammo box for 300 kill with "more drop" version (cant test other version since im only want more ammo), each ammo type get around 8-12 box. Same thing for Brita ammo box drop, but since Brita have more ammo type, each type only get around 4-6 box

So if you use like a 9mm pistol, you could get about 500 bullet for 300 zombie kill, that about 1.6 bullet/kill, and if you also use an 5.56mm rifle then u will also get another 200 bullet from "the same" 300 kill above, ammo for day my guy, loving it (not so much with Brita ammo tho, but still pretty good)

Im happy with this ammo box mod, the inventory is less of a cluster now, and the sub mod to choose drop rate is pretty good to suit everyone playstyle

Now we just need "Ammo box convert" for even more ammo, 300 kill and all 100 box turn to 5.56mm, which mean 2000 bullet/300 kill, that about 6.6 bullet/kill, we living in Murica fr fr now lmao xD