Project Zomboid

Project Zomboid

31 ratings
Udderly Gun Reconditioning
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
157.735 KB
23 Aug, 2022 @ 9:14pm
15 Sep, 2023 @ 8:14pm
14 Change Notes ( view )

Subscribe to download
Udderly Gun Reconditioning

Description

Adds a recipe for every gun (supports vanilla, VFE, and all Udderly Guns weapons out of the box) that resets the repair count at great expense, requiring a magazine to perform per gun type.

Also adds a 0-10% chance (scales with Maintenance level) to not add to the repair count when repairing.

How To Use (for modders)

Add a recipe for your gun(s) to your gun mod, like so (prices should be scaled similar to the ones included in this mod by type and rarity for balance)..

recipe Recondition PPSh { PPSh=1, ScrapMetal=40, SheetMetal=1, Screws=12, BlowTorch=10, keep [Recipe.GetItemTypes.WeldingMask], keep [Recipe.GetItemTypes.Screwdriver], keep [Recipe.GetItemTypes.Hammer], SkillRequired:MetalWelding=10;Aiming=8;Maintenance=7, Sound:BlowTorch, NeedToBeLearn:true, Result:PPSh, Time:350.0, Category:Firearm, OnGiveXP:MetalWeldingAndMaintenance10, OnCreate:ReconditionGun, RemoveResultItem:true, }

This recipe should be in Base so that this mod can find it.

After this, add a lua file to shared like so:

print("[UdderlyGuns PPSh] Looking for Udderly Gun Reconditioning..") if UdderlyGunReconditioning and UdderlyGunReconditioning.RecipeAssignments then print("[UdderlyGuns PPSh] Udderly Gun Reconditioning detected, adding reconditioning recipe.") table.insert(UdderlyGunReconditioning.RecipeAssignments[3], "Recondition PPSh") end

The index for RecipeAssignments should be the same as the volume of book, so:
  • 1 = Pistols
  • 2 = Revolvers
  • 3 = SMGs
  • 4 = ARs
  • 5 = Shotguns
  • 6 = Bolt-Action Rifles
  • 7 = Semi-Auto Rifles
  • 8 = LMGs

..and that's that!

Workshop ID: 2853285351
Mod ID: UdderlyGunReconditioning
7 Comments
Aleee 17 May, 2023 @ 11:13am 
pls make support for gunnrunner arsenal
GarlicBreadWitCheese 23 Dec, 2022 @ 9:00am 
Essential mod considering how quick vfe guns break, thanks for all the great mods!
orjikubar 17 Dec, 2022 @ 1:28am 
would you consider doing something similar with melee weapons? I really hate being unable to fix my favorite weapon after some point and being forced to replace it
Andserk 4 Nov, 2022 @ 12:39pm 
Hello, A few people are getting this error ("File doesn't exist on the client") when joining our server, any idea what could be causing it?
screenshot: https://imgur.com/erz4EIb
UdderlyEvelyn  [author] 17 Sep, 2022 @ 10:34pm 
@FrancisPJ I did not see that, will address it tomorrow - thanks.

@Tahvohck Yup.
Tahvohck 16 Sep, 2022 @ 12:48pm 
Just checking, but since this is all recipe-based, this should be safe to add to an ongoing game, right?
KarpJoe 13 Sep, 2022 @ 7:06pm 
Not sure if you've seen but VFE did an update and added the Sig 229 with respective magazines.