Project Zomboid

Project Zomboid

Not enough ratings
Hybrid Gun Repair
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
111.815 MB
4 Sep @ 5:16pm
7 Oct @ 3:49pm
10 Change Notes ( view )

Subscribe to download
Hybrid Gun Repair

Description
Hybrid Gun Repair ⚒️
A somewhat complex, hybrid system for repairing firearms in Project Zomboid.
This is my very first mod, ever. And also my first time learning LUA 😂😅

---

🛠 Features:
  • Parts System – Every weapon is composed of internal parts (barrel, stock, trigger, etc.). Each part has its own condition.
  • Degradation System – Weapons wear down realistically: different parts degrade depending on use.
  • Disassembly / Reassembly – Weapons can be dismantled into parts and later reassembled. This allows salvaging and repairing pieces individually.
  • Dismantling – Parts or Guns can be dismantled for Scraps.
  • Repair – Parts(Individual, or in guns) can be Repaired with the use of Metal Scraps & Screwdrivers. Kits give boost and benefits!
    BEWARE! There is a chance to fail.
  • Cleaning – Parts can be Cleaned with cloth(Rags/Dishtowel), and fluid(Alcohol/water bottle). Kits give benefits!
    BEWARE! There is a chance to fail. Also, there is a cap(Initial around 50%)
  • Replace(Only in Guns) – Parts can be replaced with individual parts in your inventory. Needs Screwdriver. Your best option, early game.
  • UPGRADES! – Now you can go even further... BEYOND! With new Upgrades to your gun, and a neat new panel for stats, REAL-TIME.
  • JAM & PENALTIES! – If you don't take care of it. Zombies will!
  • Maintenance Makes It Best! – Your Maintenance levels makes things better!! From reducing time to repair/clean; to improvement values; to even chance of improving! MAINTENANCE MAKES THE DREAM WORK!😊


---

HOW TO??
1) Start your game.
2) When you get your hands on a gun, equip it, o right clic it.
3) My mod will "initialize" that gun, and update condition to match its newly attached "parts".
4) Each time you want to interact with a weapon, just Right-Click on it, and look for the options to "View Parts", "Dissassemble" or "Dismantle".
5) ENJOY!

Safe to Add / Remove ?
Yes, yes it is.
My mod makes SURE to not touch things, as of now(Maybe in a new version, i would touch stats. But not right now). Instead, i used my OWN ModData, with all my data managed through there. So...
Worry Not! You'll not lose / crash / ruin anything.... maybe👹

COMPATIBILITY??
As far as i'm aware.. And as far as mods i've tested go(300+).. My mod is 100% compatible ANYWHERE.
Just PLUG and GO!😊
No need for patches. Put your favorite weapons mods, and enjoy!

BUGS?
Yes, there's a couple(unfortunately):
1) You NEED to equip or right-click a weapon for it to init. Otherwise, no parts made for it. Meaning, condition will not start properly until you do so.
2) No way around for me to implement "bashing"(Melee) for condition drop, properly. Looking for a way for this.
---

Future Plans?
I've got a few:
  • Improve balance
  • Maybe more part types??
  • Icons for menus
  • Experimental features(Like Penalties by wear).


Feedback is highly welcome!


[ESPAÑOL]
Hybrid Gun Repair ⚒️🔫
Un sistema híbrido, y algo complejo, para la reparación de armas de fuego en Project Zomboid.
Este es mi primer mod, en la vida. Y también mi primera vez aprendiendo LUA 😂😅

---

🛠 Características:
  • Sistema de Piezas – Cada arma está compuesta de partes internas (cañón, culata, gatillo, etc.). Cada parte tiene su propia condición.
  • Sistema de Degradado – Las armas se desgastan de manera realista: diferentes piezas se deterioran dependiendo del uso.
  • Desensamblado / Reensamblado – Las armas pueden desmontarse en piezas y luego reensamblarse. Esto permite recuperar y reparar piezas de manera individual.
  • Desmantelado – Las piezas o armas completas pueden ser desmanteladas para obtener chatarra.
  • Reparación – Las piezas (individuales o en armas) pueden repararse usando chatarra metálica y destornilladores. ¡Los kits ofrecen ventajas y bonificaciones!
    ¡ATENCIÓN! Existe la posibilidad de fallar.
  • Limpieza – Las piezas pueden limpiarse con tela (trapos/toalla de cocina) y líquidos (alcohol/botella de agua). ¡Los kits ofrecen beneficios!
    ¡ATENCIÓN! Existe la posibilidad de fallar. Además, hay un límite (inicialmente alrededor del 50%).
  • Reemplazo (Solo en armas) – Las piezas pueden reemplazarse con partes individuales en tu inventario. Necesitas un destornillador. Tu mejor opción en el inicio del juego.
  • MEJORAS! – Tu poder supera los 9000! Con los nuevos paneles de MEJORAS y Stats en "Real-Time"
  • ATASCO & PENALIZACIÓN ! – Si no las atiendes, los zombis si lo harán!
  • ¡El Mantenimiento es Clave! – ¡Tu nivel de Mantenimiento lo mejora todo! Desde reducir el tiempo de reparación/limpieza; hasta mejores valores de reparación; e incluso, la chance de mejora. ¡EL MANTENIMIENTO HACE LA MAGIA! 😊


---

¿CÓMO USARLO??
1) Inicia tu partida.
2) Cuando consigas un arma, equípala o haz clic derecho sobre ella.
3) Mi mod “inicializará” esa arma y actualizará la condición para que coincida con sus nuevas “partes” internas.
4) Cada vez que quieras interactuar con un arma, simplemente haz clic derecho sobre ella y busca las opciones “Ver Piezas”, “Desensamblar” o “Desmantelar”.
5) ¡DISFRUTA!

---

¿Es seguro agregar/quitarlo?
Sí, sí lo es.
Mi mod se asegura de no alterar nada directamente (quizás en el futuro toque estadísticas, pero no por ahora). En su lugar, uso mi propio ModData, con todos mis datos gestionados desde ahí.
Así que... No te preocupes: no perderás / crashearás / arruinarás nada.... tal vez 👹

¿COMPATIBILIDAD??
Hasta donde sé… y conlos mods que he probado (más de 300)… mi mod es 100% compatible en cualquier situación.
Solo consíguelo y disfrútalo! 😊
No necesitarás parches. ¡Activa tus mods de armas favoritos y disfruta su potencial!

¿BUGS?
Sí, hay algunos (lamentablemente):
1) NECESITAS equipar o hacer clic derecho en un arma para que se inicialice. De lo contrario, no se crearán partes para ella. Esto significa que la condición no se actualizará al inicio, hasta que lo hagas.
2) No he encontrado forma de implementar bien la degradación por “golpetazo” (melee). Estoy buscando una solución.
---

¿Planes Futuros?
Tengo algunos:
  • Mejorar el balance
  • Quizás más tipos de piezas??
  • Íconos para menús
  • Funciones experimentales (como penalizaciones por desgaste).


Tu Feedback es más que bienvenido! 🥰
Tranquilo! Soy furro, pero no muerdo!(Tengo mi Antipulgas al día)


💖 Support / Apoyo
If you like this mod and want to support me:
☕ Buy me a coffee on PayPal: https://paypal.me/rankayyuno
💖 Patreon: https://www.patreon.com/cw/Rankayyuno

Workshop ID: 3562222835
Mod ID: HybridlGunRepair
Mod ID: HybridGunRepair_v2
Popular Discussions View All (2)
0
10 Oct @ 11:00am
PINNED: Upgrade SySTEM / Sistema de Mejoras
wilsonr.duranm
0
8 Oct @ 2:04pm
PINNED: Bugs & Errors
wilsonr.duranm
34 Comments
Cyrisa 12 Oct @ 1:46am 
Honestly I have no idea. They happened as soon as the game started. Would your mod conflict with another mod?
wilsonr.duranm  [author] 9 Oct @ 9:15pm 
@Cyrisa
Could you give me a step-by-step guide of how to replicate your error?
That way, i can fix it, if it's coming from HGR/incompat.

I've tried couple things to try and cause errors on my dedicated save.. But to no avail so far🥲
wilsonr.duranm  [author] 8 Oct @ 2:07pm 
@Stalker_44
Sure thing!
I'll try and make a guide for you all.
Although i am currently working on possible improvements to the Upgrades System(Plus, new "System"). So it might need an update not too long after😅
Stalker_44 8 Oct @ 2:03pm 
i dont understand how the upgrade system works. a guide would be great
wilsonr.duranm  [author] 8 Oct @ 2:03pm 
Seems like error from another mod.
Maybe compat issues..
I'll download that mod, and test it fully, to know what's wrong and how to deliver to you soon.
Cyrisa 7 Oct @ 7:12pm 
New error after today's update
Cyrisa 7 Oct @ 7:12pm 
A thread section would be helpful to post full logs

OG : Lua f:0, t:1759889180333> [HGR_ModMain] Registrando eventos globales del mod...
LOG : Lua f:0, t:1759889180333> [HGR_ModMain] Evento OnFillInventoryObjectContextMenu (para Piezas) registrado -> HGR.Utils.onFillPartContextMenu
Cyrisa 7 Oct @ 7:11pm 
ERROR: General f:1, t:1759889180879> WorldRegionToMetaGrid.mergeRoomsOntoMetaCell> duplicate RoomDef.metaID for room at 9306,7458,0
LOG : Lua f:1, t:1759889180950> No zombis encontrados en zonas definidas.
LOG : Lua f:1, t:1759889180956> RVLife: Datos guardados correctamente.
LOG : Lua f:1, t:1759889181060> 0, hordeWaiting: 0
LOG : General f:2, t:1759889183544> 1759889183544 fmod: Java_fmod_javafmodJNI_FMOD_1Sound_1GetData:4638 JNI_FMOD_Sound_GetData correct buffer
Cyrisa 7 Oct @ 7:11pm 
WARN : General f:884, t:1759889195051> SpriteConfig.initObjectInfo > Invalid SpriteConfig object! scripted object = Wooden_Windows
LOG : Lua f:956, t:1759889195930> No zombis encontrados en zonas definidas.
LOG : Lua f:956, t:1759889195936> RVLife: Datos guardados correctamente.
WARN : General f:1164, t:1759889198537> SpriteConfig.initObjectInfo > Invalid SpriteConfig object! scripted object = Wooden_Windows
LOG : Lua f:1318, t:1759889201071> 0, hordeWaiting: 0
WARN : General f:1349, t:1759889201446> SpriteConfig.initObjectInfo > Invalid SpriteConfig
wilsonr.duranm  [author] 7 Oct @ 3:51pm 
Hiya, all!
Very good news.
Manage to pull off a fix for the mod, to allow for dismantling of weapons in B42.12!🤗
It was actually simpler than i had thought, but needed to really get into research😅

Now i can work on improving even more the mod(Finally)