关于物品 NPC 击中时失去耐久度
此插件允许 NPC 击中并降低装备的盔甲的耐久度。目前,该插件从可用的装备盔甲中随机选择仍然具有耐久度且未损坏的物品,并提取(总、最大耐久度)* 配置的百分比值。PVE 服务器的理想插件,可避免玩家堆叠的齿轮。
可以设置 3 种不同的权限相关值,以支持其他插件或 VIP/RANK 系统。它还具有根据需要从功能中排除武器或工具的功能。
该插件可以工作 3 种不同的模式。
1 – 完全未使用权限 – 将使用配置的正常百分比>。
2 – 玩家可以拥有多个权限,在本例中,始终使用 HIGHER 权限百分比值与类值的组合。
3 – 玩家只能有 1 个权限,在这种情况下,我建议激活“针对多个权限组进行权限检查”和可选的“针对多个权限组的警告(可能会淹没服务器控制台)”配置,设置为 True,如果玩家错误地获得了 2 个不同的权限,插件功能将被跳过,并在服务器控制台上显示警告。
示例:骨骼头盔 – 100 最大耐久度/条件点。LongDurabilityPercent 配置为 1.0%。如果只装备了骨头头盔,则需要 100 次打击才能使物品损坏。
为可配置类别分组的武器:
近战武器:
任何东西,从命中信息的角度来看未处理的内容,以及
“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“
近战武器:
”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“
长武器 :
”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”
此外,BaseHelicopter、BradlyAPC、AutoTurret、Guntraps 和 Beartrap 也被视为减少装甲的伤害来源,它们目前在 Meleeweapon 类别下,它们使用与 MeleeDurabilityPercent
Explosive: Not yet with any for future used.
权限
itemslostdurabilityonnpchit.protectplayer – 防止盔甲损坏。基本上为具有此权限的玩家禁用插件。
itemslostdurabilityonnpchit.profile1 – 权限百分比排名
itemslostdurabilityonnpchit.profile2 – 权限百分比排名
itemslostdurabilityonnpchit.profile3 – 权限百分比排名
配置
此插件的设置和选项可以在 oxide/config 目录下的 ItemsLostDurabilityonNPCHit.json 文件中进行配置。建议使用 JSON 编辑器或验证站点(如 jsonlint.com),以避免格式问题和语法错误。
建议的百分比见下文。任何高于 1.5% 的东西在客户端似乎都感觉太快了。
经验示例:2 件金属物品、1 条标志裙子 从 100% 到所有 3 件物品被 2 次近战破坏 攻击者受到 3 分钟的持续打击,持续 0.5%。
{
“CloseDurabilityPercent”: 0.75,
“ExplosionDurabilityPercent”: 0.0,
“LongDurabilityPercent”: 1.0,
“MeleeDurabilityPercent”: 0.5,
“itemslostdurabilityonnpchit.profile1 权限百分比刻度范围: 0-X, 0.1f 平均值10% of the original durability“: 1.0,
”itemslostdurabilityonnpchit.profile2 权限百分比刻度范围:0-X, 0.1f 表示原始持续性的 10%“: 1.0,
”itemslostdurabilityonnpchit.profile3 权限百分比刻度范围: 0-X, 0.1f 表示原始持续性的 10%“: 1.0,
”针对多个权限组进行权限检查“: false,
”针对多个权限组的警告(可能会淹没服务器控制台)“: false,
“CleanPermission on Wipe”: true,
“Pop off the armor from the player, if broken”: false,
“弹出的盔甲将被放入玩家物品栏中(如果为 false,它将掉落在地板上) [仅相关,如果 \”Pop off the armor, if broken\“ configuration set to true]”: false,
}
本地化
否。
开发 API
编号
钩
子 No.