Project Zomboid

Project Zomboid

32 个评价
Udderly Gun Reconditioning
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
157.735 KB
2022 年 8 月 23 日 下午 9:14
2023 年 9 月 15 日 下午 8:14
14 项改动说明 ( 查看 )

订阅以下载
Udderly Gun Reconditioning

描述

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 条留言
Aleee 2023 年 5 月 17 日 上午 11:13 
pls make support for gunnrunner arsenal
Idiot 2022 年 12 月 23 日 上午 9:00 
Essential mod considering how quick vfe guns break, thanks for all the great mods!
orjikubar 2022 年 12 月 17 日 上午 1:28 
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 2022 年 11 月 4 日 下午 12:39 
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  [作者] 2022 年 9 月 17 日 下午 10:34 
@FrancisPJ I did not see that, will address it tomorrow - thanks.

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