Items Lost Durability on NPC Hit

$7.00

Sold by: Kaucsenta

This plugin allow to the NPCs to hit and decrease the equipped armors durability (In the current Rust version, only Player based damage decrease the armors durability). Which is an ideal plugin for PVE-based servers!

Categories: , ,

Description

About Items Lost Durability on NPC Hit

Description

This plugin allow to the NPCs to hit and decrease the equipped armors durability (In the current Rust version, only Player based damage decrease the armors durability). Which is an ideal plugin for PVE-based servers!

Currently, the  Items Lost Durability plugin chooses randomly from the available equipped armors, which still has durability and not broken item, and extracts the (total, maximum durability) * configured percentage value.

3 different permission related value can be set, to support other plugins or vip/rank systems. It also has the feature to exclude weapons or tools from the function, up to the need.

The plugin can work 3 different mode.

1 – no permission used at all -> normal percentages configured will be used.
2 – The player can have more then one permission, in this case always the HIGHER permission percentage value used combined with the class values.
3 – The player shall only have 1 permission, in this case i recommend to activate the “Permission check against multiple permission group” and optionally the “Warning agains multiple permission group (can flood the server console)” configuration, to set to True, and if a player by mistake got 2 different permission, the plugin feature will be skipped and a warning will be shown on the server console.

Example: Bone Helmet – 100 Maximum durability/Condition point. LongDurabilityPercent configured to 1.0 percent. It will take 100 Hits, if only the Bone Helmet equipped, to make the item broken.

Grouped up weapons for the Configurable categories:

 

Meleeweapon :

Anything, that is unhandled from the Hit information point of view, and

"grenade.beancan.entity.prefab", "bone_club.entity.prefab", "knife_bone.entity.prefab", "chainsaw.entity.prefab", "salvaged_cleaver.entity.prefab", "grenade.f1.entity.prefab", "flamethrower.entity.prefab", "flamethrower_fireball.prefab", "hacksaw.weapon.prefab", "butcherknife.entity.prefab", "pitchfork.entity.prefab", "sickle.entity.prefab", "hammer.entity.prefab", "hatchet.entity.prefab", "knife.combat.entity.prefab", "mace.entity.prefab", "machete.weapon.prefab", "militaryflamethrower.entity.prefab", "paddle.entity.prefab", "pickaxe.entity.prefab", "rock.entity.prefab", "axe_salvaged.entity.prefab", "hammer_salvaged.entity.prefab", "icepick_salvaged.entity.prefab", "explosive.satchel.entity.prefab", "stonehatchet.entity.prefab", "stone_pickaxe.entity.prefab", "spear_stone.entity.prefab", "longsword.entity.prefab", "salvaged_sword.entity.prefab", "torch.entity.prefab", "spear_wooden.entity.prefab"

 

Closeweapon:

Following weapons are considered as Close combat weapons:

"double_shotgun.entity.prefab", "pistol_eoka.entity.prefab", "m92.entity.prefab", "nailgun.entity.prefab", "shotgun_waterpipe.entity.prefab", "python.entity.prefab", "pistol_revolver.entity.prefab", "shotgun_pump.entity.prefab", "pistol_semiauto.entity.prefab", "smg.entity.prefab", "spas12.entity.prefab"

 

Longweapon :

"mgl.entity.prefab", "semi_auto_rifle.entity.prefab", "thompson.entity.prefab", "rocket_launcher.entity.prefab", "mp5.entity.prefab", "l96.entity.prefab", "lr300.entity.prefab", "m249.entity.prefab", "m39.entity.prefab", "compound_bow.entity.prefab", "crossbow.entity.prefab", "ak47u.entity.prefab", "bow_hunting.entity.prefab"

 

Additionally, BaseHelicopter, BradlyAPC, AutoTurret, Guntraps, and Beartrap also considered as damage source to decrease armor, they are under Meleeweapon category at the moment, they use the same value as configured for MeleeDurabilityPercent

Explosive: Not handled yet, only available for future usage.

Permissions

itemslostdurabilityonnpchit.protectplayer - Prevent armor damage. Basically disable the plugin for the players with this permission.
itemslostdurabilityonnpchit.profile1 - permission percentage rank
itemslostdurabilityonnpchit.profile2 - permission percentage rank
itemslostdurabilityonnpchit.profile3 - permission percentage rank
 

Configuration

The settings and options for this plugin can be configured in the ItemsLostDurabilityonNPCHit.json file under the oxide/config directory. The use of a JSON editor or validation site such as jsonlint.com is recommended to avoid formatting issues and syntax errors.

Suggested percentages see below. Anything that is higher than 1.5% seems to feel too fast on the client-side.

Experience example: 2 Metal items, 1 Sign skirt From 100% to all 3 items broken with 2 melees Attackers take 3-minute constant hit, with 0.5%.

{ 
 "CloseDurabilityPercent": 0.75, 
 "ExplosionDurabilityPercent": 0.0, 
 "LongDurabilityPercent": 1.0, 
 "MeleeDurabilityPercent": 0.5
 "itemslostdurabilityonnpchit.profile1 permission percentage scale range: 0-X, 0.1f mean 10% of the original durability": 1.0,
 "itemslostdurabilityonnpchit.profile2 permission percentage scale range: 0-X, 0.1f mean 10% of the original durability": 1.0,
 "itemslostdurabilityonnpchit.profile3 permission percentage scale range: 0-X, 0.1f mean 10% of the original durability": 1.0,
 "Permission check agains multiple permission group": false,
 "Warning against multiple permission group (can flood the server console)": false,
 "CleanPermission on Wipe": true
 }

Localization

No.

Develop API

No.

Hooks

No.

Check out more of my work here: https://lone.design/vendor/kaucsenta/
Join the Discord Here: https://discord.gg/VEesZs9

2 reviews for Items Lost Durability on NPC Hit

  1. 5 out of 5

    btan1 (verified owner)

    Love it , Great for Rp servers

  2. 5 out of 5

    Kitsune (verified owner)

    Awesome plugin! Having this feature adds a more realistic touch on armor.


Only logged in customers who have purchased this product may leave a review.

Version 1.4.1 | Updated November 26, 2023
  • Added LoseCondition triggered now by the plugin.
Version 1.4.0 | Updated May 11, 2023
  • Added Add 2 new config, to support new request. "Pop off the armor from the player, if broken" and "The popped of armor will be placed into the player inventory (if false, it will be dropped on the floor) [Only relevant, if "Pop off the armor from the player, if broken" configuration set to true]", which can be used in a combination, to get off the broken armor from the player.
Version 1.3.0 | Updated May 1, 2022
  • Added 3 profile for further scaling to be compatible with like skilltree or shop, to more customize the possibilities
  • Added permission reset when new map save created (usually called wipe clear) (only profiles)
Version 1.2.0 | Updated October 7, 2021
  • Added Add Permission to protect players against the durability lose.
Version 1.1.0 | Updated May 25, 2021
  • Fixed Based on "thunder storm" finding on Codefling, the items broke, but until they are not re-equipped, the stats and the damage reduction in the background is not change, so the broken item protect continuously still. Now it is fixed with a quick re-equip in the background, and the stat is now updated along with the real damage modifications too.
Version | Updated April 27, 2021
  • Added First release on Lone Design page

Discussions

There are no discussions yet.

Leave a reply

Your email address will not be published. Required fields are marked *

Plugin FAQ – How do I use this .zip/.7z file I just purchased on my server?

• First, you want to unzip the file. You can do so by just double-clicking it to open, then drag the contents to the desired location (you may need to install an external unzipping software if you don’t already have one such as 7zip or winrar)
• Next you will find either a structure of folders or just the .cs file itself (it’s the actual plugin file itself).
• After that just install the .cs (plugin file) into your …/oxide/plugins/ folder where you will install plugins you ever need to.

Additionally, here’s a great video that easily covers adding a plugin to your server if you need! https://youtu.be/yWC_p97FhQA

• Installation is not included with any products on the site, however, if needed we may assist if you reach out to our support.

Currently all products on Lone.Design will be contained within a zipped file which is the .7z or .zip that you see. I believe windows 10 and up can unzip on its own without 3rd party tools, but in that case, if you’re unfamiliar with zipped files here are 2 programs I recommend to easily unzip zipped files.

Video On How to Zip and Unzip: https://youtu.be/Ep-L3PjBPCk (TechInsider Youtube Channel)

Zipping/Unzipping Tools
Winrar https://www.rarlab.com (I used to use for years, but works great!)
7zip https://www.7-zip.org/a/7z2107-x64.exe (the one I use currently)

Product Enquiry

Please Login to make enquiry about this product