Project Zomboid

Project Zomboid

Superb Survivors!
DarthKiller 10 Dec, 2022 @ 4:12am
Better Infinite Ammo
A discussion I often bring up in the Survivors npcs topics that sadly never got adressed so far.
Basically I wish for a QoL Setting that fills empty magazines in survivors backpacks when infinite ammo is enabled for them (or even make this a setting on top of that)

The issue being using the britas guns with 30-100 rounds magazines and having survivors spawning with only 1 magazine to then proceed to fill their mag with 30 rounds while being chased by zombies often ruins my "immersion" of prepared, fighting survivors. This would also greatly increase their fighting chances against the undead hordes during base defense scenarios if you opt for these cheat-scenarios. Or just want to have fun with the soldiers spawn thingy.

Due to my own lack of knowledge in how to access a survivors inventory and scan for magazines and max them based on their capacity without affecting the magazine that is inside the gun and basically me not knowing anything about pz lua coding I sadly could not accomplish this myself.

I tried it by sampling the way ammo spawned in this mod + cheat mod for infinite ammo but had no success. Maybe you (authors) or any other experienced PZ Coder can offer me a solution to this.