Jump to content

Item Quality Degradation


Zilox

Recommended Posts

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.

 

Showcase Video

 

DOWNLOAD

 

Installation Notes
Note: This mod needs to be installed on both client and server for multiplayer. EAC MUST BE OFF!

 

Support
If you need help with a mod, you can open an issue here: https://github.com/Zilox135/A21Modlets/issues

 

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"/>

 

DegradeOnRepairIcon.jpg.3ec796d80f0b327c0e664c533c9a68e1.jpg

Edited by Zilox
Update download link (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...