Project Zomboid

Project Zomboid

60 ratings
Gun Cleaning
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
135.082 KB
19 Feb, 2024 @ 10:59am
6 Mar, 2024 @ 8:22am
11 Change Notes ( view )

Subscribe to download
Gun Cleaning

Description
This mod provides the ability for players to repair their guns using a dish towel with expendable uses available, a toothbrush, and a screwdriver. The amount repaired is based on your maintenance skill, meaning the higher your maintenance the more you will see repaired to a certain degree since weapon condition is something that is typically represented by an integer value in Project Zomboid.

------------------ Default System ------------------

The math for determining how much you repair with each attempt is equal to: (Maintenance Level * 6/100) * Max Durability of weapon. Meaning at level 5 you will repair 30% of the durability per repair versus 24%-6% repair at level 4 or lower. You will also be given a small amount of Maintenance experience when performing the repair action.

Unlike the normal repair system, these repairs are not counted. However, there is a chance that you will destroy the toothbrush being used while cleaning your gun. The chance your toothbrush will be destroyed is equal to the following: (11 - Maintenance Level) * 3. Meaning, at 0 Maintenance level you have a 33% chance to have your toothbrush destroyed and since you are more than likely going to need multiple attempts this adds up fast and makes it more likely you will destroy the toothbrush. At level 5 you have an 18% chance to destroy the toothbrush.

------------------ Feature Update ------------------

You can now customize this mod using ModOptions! You have the following options:

Toothbrush Break Chance
This allows you to set your own toothbrush break chance ignoring the default system parameters specified and ignoring your maintenance skill!

Custom Toothbrush Break Chance?
This enables the toothbrush break chance you specified.

Repair Tracking?
This enables the mod to track how many times you have repaired the gun giving you diminishing returns. Every 2 times you repair a gun the maximum amount you increase the durability drops by 1 (4 repairs = 2 loss in max durability).

Custom Repair Cap
This enables you to set the maximum % the gun can be repaired to, granted this does get rounded based on the durability of the gun. This is also reduced even further when utilizing repair tracking, so something to keep in mind.

Custom Condition Repair?
This enables you to set the amount you repair each time you make a repair ignoring the math formula in the default system.

Custom Condition Repair Amount
This sets how much durability you restore to a gun with each repair ignoring the math formula in the default system.

Workshop ID: 3164282444
Mod ID: GunCleaningMod
33 Comments
Blackluster3 13 Apr @ 3:54pm 
I do not have the option in the menu to change mod settings. I did install this mod 20 minutes into the play trough.
rientelfon  [author] 3 Feb @ 1:31pm 
@Thelostgamer146 i think my biggest concern is waiting until things get finalized. i hate to work on something that gets changed after a bit.

@Father Malice this does indeed work on multiplayer
Thelostgamer146 30 Jan @ 11:45pm 
any chance of this being update to b42?
Father Malice 30 Jan @ 10:15am 
Does this work on multiplayer?
rientelfon  [author] 1 Dec, 2024 @ 2:09pm 
@ExXanAbuser It works with any mod that adds firearms
ExXanAbuser 1 Dec, 2024 @ 5:45am 
Does this work with britas/coavins?
rientelfon  [author] 20 Nov, 2024 @ 7:32pm 
@Mr Coarse you also need the gun to be in your main inventory
Mr Coarse 20 Nov, 2024 @ 4:07pm 
im a little confused on how to initiate the repairs i have the screw driver tooth brush and dish towel in my main inventory but i cant see the option
rientelfon  [author] 5 Oct, 2024 @ 6:08am 
@matty.dellindo so you need to have the weapon in your main inventory along with the towel and toothbrush to see the option
matty.dellindo 4 Oct, 2024 @ 4:51am 
Hi quick question I have installed this mod on an existing save and have all the items needed to clean a gun but I cannot find an option to do so only the vanilla options to repair. I am also using Guns of 93 so don't know if it isn't compatible with that.