Restores proper firearm damage in Project Zomboid Build 42.22 when 'Firearms Use Damage Chance' is enabled, ensuring all gun hits deal damage as before.
Gun Hit Fix (42.22 zero-damage firearms) addresses an issue in Project Zomboid Build 42.22 where firearms appear to hit zombies but deal no damage if the Sandbox option Firearms Use Damage Chance is enabled ("Zombies only" or "All types of target"). Since Build 42.22, bullets that fail the to-hit roll still show visual and audio feedback (zombie flinches, bleeds, hit sound), but are flagged to deal no damage. This affects all vanilla and modded firearms (including mods like Brita and Gunworks) and is not a bug in any specific gun mod.
How the Mod Works
- Raises the game's minimum to-hit chance for zombies on the shooter's game from the vanilla value of 5 to 100.
- Ensures every bullet that visually hits a zombie deals its normal damage, restoring pre-42.22 behavior.
- Does not change weapon stats, damage, range, aiming, recoil, or critical hits.
- Does not modify any other mod's files and requires no dependencies. Compatible with any gun mod and with Viewpoint.
- PvP hit chance, which is rolled by the server, is not affected.
- Bullets that miss still miss; only the fake no-damage hits are fixed.
Installation
- Must be installed and enabled on both the server and every client.
- Add the Workshop ID to WorkshopItems= and GunHitFix42_22 to Mods= in your server's .ini file, or enable it in the host's mod list.
- Clients will automatically download the mod when joining.
- For single player, simply enable the mod.
- To verify it is active, check
console.txtfor:v1.0.0 active: minimum to-hit chance 5 -> 100
Adjusting the Minimum To-Hit Chance
- To allow some no-damage grazes, edit media/lua/client/GunHitFix42_22.lua and change
local MIN_TO_HIT = 100(for example, to 70). - Values below 5 have no effect.
- On servers, all clients must use the same file for consistency; using the default is recommended.
Removing the Mod
- Once the game developers address this issue in a future patch, simply remove the mod from Mods= and WorkshopItems=.
- The mod adds no items and saves no data, so it is safe to remove from existing saves.



Comments 0
No comments yet — be the first.
Log in or sign up to leave a comment.