Overview
This mod adds item degradation to guns, melee weapons, tools and armor. Each time an item is repaired it has a 50% chance to degrade by one level. Mod slots will also downgrade accordingly, any mods that no longer have space will be added to the players backpack or dropped on the ground if the inventory is full.
Installation Notes
Note: This mod needs to be installed on both client and server for multiplayer. EAC MUST BE OFF!
Modding Info
Modder’s can also use this mod to add item degradation to their own mods, as follows.
How many quality levels the item degreades by on repair.
<property name="RepairDegradeAmount" value="1"/>
The probability that the item will lose a quality level/levels on repair.
<property name="RepairDegradeChance" value="0.5"/>
Will the item break after its repaired at quality 1.
<property name="RepairQualityOneBreaksAfter" value="false"/>
Set the minimum degrade amount for items with this cvar.
<triggered_effect trigger="onPerkLevelChanged" action="ModifyCVar" cvar="minDegradeAmount" operation="set" value="4">
onSelfItemRepaired has been hooked up and can be used to trigger game events and triggered effects.
<triggered_effect trigger="onSelfItemRepaired" action="AddBuff" buff="someBuffName"/>
Changelog
V1.1.0
- Items now have a 50% chance to degrade on repair.
- Added a property to control the degrade chance.
- Added an optional property to break the item after quality drops to zero.
- Hooked up the onSelfItemRepaired trigger to allow for additional effects to be added.
If you appreciate Zilox’s work and you want to show support, use this donate link.
If you need help, you can use this support link.
Credits: Zilox
thank you for this mod. I recently made the switch from console to pc and I had already grown used to the older console version where you had to invest in a skill for repairing to prevent you from lowering the quality of the item after every repair. I found it odd to see that they had removed that feature in alpha 20 since it just made the game feel much easier overall.
Yes, the game has become a lot easier as of recent alphas. I’m glad you like the mod.