Project Zomboid
1,071 คะแนน
Universal Gun Repair
3
2
4
   
รางวัล
ชื่นชอบ
ชื่นชอบแล้ว
เลิกชื่นชอบ
ขนาดไฟล์
โพสต์
อัปเดต
843.295 KB
9 ธ.ค. 2022 @ 5: 01am
31 พ.ค. @ 3: 41pm
17 หมายเหตุการเปลี่ยนแปลง ( ดู )
คำอธิบาย
A mod to add a method of restoring all guns whether from the base game or any mod.

Overview
Any gun can be restored using the process of disassembling, cleaning/repairing, and then reassembling.
This mod is safe to add mid-game but you will need to visit new locations to find the items added by this mod as loot. If you decide to remove the mod, you should reassemble any gun parts before doing so or they will be lost.

Items added by this mod are
Firearm Maintenance Kit
Gunsmithing Tools
Cleaning Solvent
Premium Cleaning Solvent
Firearm Lubricant

Disassembly
Using either a Firearm Maintenance Kit or a set of Gunsmithing Tools along with a Screwdriver, break down the gun into parts
Note: Any loaded ammo, inserted magazines, or installed gun mods will be removed from the gun before disassembly
The Disassembled Gun Parts will be named "{Original Gun's Name} Parts [{Current Condition}/{Max Condition}]" and will encumber you 20% more than the original gun
From this point you can Clean, Repair, or Reassemble the gun parts

Cleaning
Cleaning requires a Firearm Maintenance Kit, some Cleaning Solvent, and a Ripped Sheet
Additionally the gun may need at least a certain amount of Condition remaining to be able to restore Condition through cleaning (by default 5, though this is configurable in the Sandbox options)
Cleaning will restore as much Condition as you have Solvent for
A normal Cleaning Solvent has 10 uses and will restore 1 point of Condition per use it has remaining
A Premium Cleaning Solvent has only one use but will restore all Condition when cleaning

Repairing
Repairing requires a set of Gunsmithing Tools and Scrap Metal
You may need a certain level of skill in Firearm skills (Aiming or Reloading) before you are able to repair guns (default 6, though this is configurable in the Sandbox options)
Additionally the gun may need at least a certain amount of Condition remaining to be able to restore Condition through repairing (by default 0 so even broken guns can be repaired, though this is configurable in the Sandbox options)
Each Repair will consume 1 Scrap Metal and restore 1 Condition

Reassembly
Once you are ready to put the gun back together simply use Firearm Maintenance Kit or a set of Gunsmithing Tools along with a Screwdriver and a use of Firearm Lubricant to put the gun parts back together

Sandbox Options
In the Sandbox Options you are able to set
The minimum level of Condition on a gun to be able to restore Condition through cleaning (default 5)
The minimum level of Condition on a gun to be able to restore Condition through repairing (default 0)
The required skill level in Aiming or Reloading to be able to perform repairing (default 6)
And adjust the rarity of Firearm Maintenance Kits, Gunsmithing Tools, Cleaning Solvents, and Firearm Lubricants.

Compatibility
This mod should be compatible with all guns added by mods.
I've tested it with Brita's and Vanilla Firearms Expansion.
Please let me know if you encounter any incompatible guns.

Should modders want to allow their items to work as alternative restoration items for Universal Gun Repair
Items tagged with UGRToolClean will be able to be used as a tool to clean guns
Items tagged with UGRItemClean will be able to be used as a consumed item to restore 1 Condition per use when cleaning guns
Items tagged with UGRItemCleanFull will be able to be used as a consumed item to restore all Condition per use when cleaning guns
Items tagged with UGRToolRepair will be able to be used as a tool to repair guns
Items tagged with UGRItemAssemble will be able to be used as a consumed item to reassemble guns

Special Thanks
Spanish translations courtesy of XpaDDer
Russian translations courtesy of Avelavi
Brazilian Portuguese translations courtesy of gccoiahy
Italian translations courtesy of TheSanctuary0
Korean translations courtesy of BLUmountain
Thai translations courtesy of Riko Prushka

Check out my other mods


Workshop ID: 2899457928
Mod ID: 2899457928/UniversalGunRepair
กระดานสนทนายอดนิยม ดูทั้งหมด (3)
17
30 ส.ค. @ 8: 21am
Translations
Cosmic
16
22 พ.ค. @ 5: 29am
Bug Reports
Cosmic
5
28 ส.ค. 2023 @ 6: 07am
Suggestion
dtoxic
197 ความเห็น
Rocket 28 ต.ค. @ 10: 26pm 
Note I think a bug in the latest vanilla nukes how this works. If a weapon's condition is below 10, I get an exception inside ISInventoryPaneContextMenu.lua, at line:

[code]if not fixingList:isEmpty() then[/code]

if I change it to:

[code]if fixingList and not fixingList:isEmpty() then[/code]

everything continues to work. Only posting this here in case others have this issue.
Jaxx - pshoooo 23 ต.ค. @ 8: 13pm 
until something like Coavins is on b42 either modded or vanilla integrated, this is the next best thing, thank you
lynovana 21 ต.ค. @ 3: 49pm 
I have a question does this mod work with the shotguns in the Firearms Mod because I don't see the option to repair or clean the weapon
Petrov Dumass 17 ต.ค. @ 3: 15am 
Hi !
Really love your mod !

Don't work with [CJ][B42][Updated&Fixed] Vanilla Firearms Expansion
Can you make a compatibility patch please ?
Necro 9 ต.ค. @ 3: 23am 
Has anyone tested this with 'Firearms - Hyzo"?
Takizawa 6 ต.ค. @ 5: 26am 
Why i dont have disassembly button?
jacek.machajewski 5 ต.ค. @ 7: 12am 
Why is there a suicide option on the right click menu?
thatoneguy 3 ต.ค. @ 1: 03pm 
Hey noticing an issue where i can only disassemble some of Rains Guns. Only the ones with 100% condition can be disassembled
Chit0Z.🍕 30 ก.ย. @ 7: 37pm 
thx mate ';)
Rexigon 30 ก.ย. @ 2: 38am 
Tested and working on 42.12 with Rain's guns