免费插件

Vehicle Decay Protection

车辆防腐蚀保护

保护车辆在内部、TC 附近、最近使用或使用车主权限时免遭腐烂

vehicledecay

原作者:WhiteThunder · 查看 uMod 官方页面 ↗

插件介绍

保护车辆在内部、TC 附近、最近使用或使用车主权限时免遭腐烂

Vehicle Decay Protection allows you to scale or nullify vehicle decay damage multiple ways.

Vehicle decay is already somewhat configurable in the vanilla game using the following convars.

Minicopters, Scrap Transport Helicopters, and Attack Helicopters:

Player-buildable boats:

主要用途

主要用于vehicle、decay等服务端功能。 本插件由 WhiteThunder 发布,当前目录记录版本为 v2.9.0,uMod 累计下载 75,137 次。

适用场景

  • 希望扩展原版服务器功能的服主

功能分类

vehicledecay
查看 uMod 官方英文简介

Protects vehicles from decay when inside, near TCs, when recently used, or using owner permissions

权限节点

Note: This plugin has four different features for protecting vehicles against decay. Only one of those features uses permissions: "no decay based on vehicle ownership". If you simply want to make vehicles not decay if they have been recently used, or if you want to scale decay for vehicles under a roof or near a tool cupboard, those features DO NOT use permissions, so skip ahead to the configuration section of the plugin.

Granting the following permissions to a player will cause their owned vehicles to not decay under any circumstances. You can grant permissions by vehicle type, or for all vehicles with a single permission.

vehicledecayprotection.nodecay.allvehicles (all in one)

vehicledecayprotection.nodecay.attackhelicopter

vehicledecayprotection.nodecay.ballista

vehicledecayprotection.nodecay.batteringram

vehicledecayprotection.nodecay.catapult

vehicledecayprotection.nodecay.duosubmarine

vehicledecayprotection.nodecay.hotairballoon

vehicledecayprotection.nodecay.kayak

vehicledecayprotection.nodecay.minicopter

vehicledecayprotection.nodecay.modularcar

vehicledecayprotection.nodecay.motorbike.sidecar

vehicledecayprotection.nodecay.motorbike

vehicledecayprotection.nodecay.pedalbike

vehicledecayprotection.nodecay.pedaltrike

vehicledecayprotection.nodecay.playerboat

vehicledecayprotection.nodecay.ptboat

vehicledecayprotection.nodecay.rhib

vehicledecayprotection.nodecay.ridablehorse

vehicledecayprotection.nodecay.rowboat

vehicledecayprotection.nodecay.scraptransporthelicopter

vehicledecayprotection.nodecay.siegetower

vehicledecayprotection.nodecay.sled.xmas

vehicledecayprotection.nodecay.sled

vehicledecayprotection.nodecay.snowmobile

vehicledecayprotection.nodecay.solosubmarine

vehicledecayprotection.nodecay.tomaha

vehicledecayprotection.nodecay.tugboat

Note: Vehicles are never assigned an owner by the vanilla game, with the exception of deployable vehicles like Kayaks, so you will need another plugin to assign ownership to most vehicles in order to benefit from the nodecay permissions.

Vehicle ownership is determined by the OwnerID property of the vehicle, which is usually a player's Steam ID, or 0 for no owner. Most plugins that spawn vehicles for a player will assign that player as the owner. For vehicles spawned by the vanilla game, it's recommended to use one of the following plugins to grant vehicle ownership.

Vehicle Vendor Options - Automatically assigns ownership of vehicles purchased at vanilla NPC vendors if the player has permission

Claim Vehicle - Allows players with permission to claim ownership of unowned vehicles using a command on cooldown

Vehicle Deployed Locks - Optionally assigns ownership to vehicles when a lock is deployed onto them

Alternatively, if the vehicle has a code lock or key lock attached to it via Vehicle Deployed Locks, this plugin will also check the nodecay permissions of the lock owner, if the lock is locked.

Tug Boats are a special case. As long as any authorized user has the nodecay permission, the tugboat will not decay.

授权示例:oxide.grant user 玩家名 权限节点;撤销使用 oxide.revoke

配置说明

Default configuration (equivalent to vanilla):

{ "Enable permission": true, "Vehicles": { "Ridable Horse": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 2.0, "Decay multiplier near tool cupboard": 1.0, "Protect from decay after recent use (minutes)": 10.0, "Decay interval (seconds)": 60.0 }, "Ballista": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.1, "Decay multiplier near tool cupboard": 1.0, "Protect from decay after recent use (minutes)": 5.0, "Decay interval (seconds)": 60.0 }, "Battering Ram": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.1, "Decay multiplier near tool cupboard": 1.0, "Protect from decay after recent use (minutes)": 5.0, "Decay interval (seconds)": 60.0 }, "Catapult": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.1, "Decay multiplier near tool cupboard": 1.0, "Protect from decay after recent use (minutes)": 5.0, "Decay interval (seconds)": 60.0 }, "Siege Tower": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.1, "Decay multiplier near tool cupboard": 1.0, "Protect from decay after recent use (minutes)": 5.0, "Decay interval (seconds)": 60.0 }, "Modular Car": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.1, "Decay multiplier near tool cupboard": 1.0, "Protect from decay after recent use (minutes)": 10.0, "Decay interval (seconds)": 60.0 }, "Motor Bike": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.0, "Decay multiplier near tool cupboard": 1.0, "Protect from decay after recent use (minutes)": 45.0, "Decay interval (seconds)": 60.0 }, "Motor Bike Sidecar": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.0, "Decay multiplier near tool cupboard": 1.0, "Protect from decay after recent use (minutes)": 45.0, "Decay interval (seconds)": 60.0 }, "Pedal Bike": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.0, "Decay multiplier near tool cupboard": 1.0, "Protect from decay after recent use (minutes)": 45.0, "Decay interval (seconds)": 60.0 }, "Pedal Trike": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.0, "Decay multiplier near tool cupboard": 1.0, "Protect from decay after recent use (minutes)": 45.0, "Decay interval (seconds)": 60.0 }, "Player Boat": { "Allow the plugin to influence decay": false, "Decay multiplier while inside": 0.0, "Decay multiplier near tool cupboard": 1.0, "Decay interval (seconds)": 60.0 }, "Snowmobile": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.0, "Decay multiplier near tool cupboard": 1.0, "Protect from decay after recent use (minutes)": 45.0, "Decay interval (seconds)": 60.0 }, "Tomaha": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.0, "Decay multiplier near tool cupboard": 1.0, "Protect from decay after recent use (minutes)": 45.0, "Decay interval (seconds)": 60.0 }, "Sled": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 1.0, "Decay multiplier near tool cupboard": 1.0, "Decay interval (seconds)": 60.0 }, "Sled Xmas": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 1.0, "Decay multiplier near tool cupboard": 1.0, "Decay interval (seconds)": 60.0 }, "Kayak": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.0, "Decay multiplier near tool cupboard": 1.0, "Decay interval (seconds)": 60.0 }, "Rowboat": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.0, "Decay multiplier near tool cupboard": 1.0, "Decay interval (seconds)": 60.0 }, "RHIB": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.0, "Decay multiplier near tool cupboard": 1.0, "Decay interval (seconds)": 60.0 }, "PT Boat": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.0, "Decay multiplier near tool cupboard": 1.0, "Decay interval (seconds)": 60.0 }, "Tugboat": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 1.0, "Decay multiplier near tool cupboard": 1.0, "Decay interval (seconds)": 60.0 }, "Solo Submarine": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.0, "Decay multiplier near tool cupboard": 1.0, "Decay interval (seconds)": 60.0 }, "Duo Submarine": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.0, "Decay multiplier near tool cupboard": 1.0, "Decay interval (seconds)": 60.0 }, "Hot Air Balloon": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 0.0, "Decay multiplier near tool cupboard": 1.0, "Protect from decay after recent use (minutes)": 10.0, "Decay interval (seconds)": 60.0 }, "Minicopter": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 1.0, "Decay multiplier near tool cupboard": 1.0, "Protect from decay after recent use (minutes)": 10.0, "Decay interval (seconds)": 60.0 }, "Scrap Transport Helicopter": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 1.0, "Decay multiplier near tool cupboard": 1.0, "Protect from decay after recent use (minutes)": 10.0, "Decay interval (seconds)": 60.0 }, "Attack Helicopter": { "Allow the plugin to influence decay": true, "Decay multiplier while inside": 1.0, "Decay multiplier near tool cupboard": 1.0, "Protect from decay after recent use (minutes)": 10.0, "Decay interval (seconds)": 60.0 } } }

Enable permission (true or false) -- Determines whether the permission feature is enabled. If you are not using permissions to prevent vehicle decay, set this to false to improve performance.

Each vehicle type has the following options:

Allow the plugin to influence decay (true or false) -- Determines whether the plugin will influence decay for this vehicle type. If you don't want to alter decay for a given vehicle type, you may set this to false to ensure that vanilla decay is used.

Decay multiplier while inside

Determines how much to scale decay damage for vehicles that are inside (under a roof). Set to 0.0 to completely nullify decay damage to vehicles while they are inside. Setting to 1.0 will improve performance by avoiding even checking if the vehicle is inside.

Decay multiplier near tool cupboard

Determines how much to scale decay damage for vehicles that are near any tool cupboard (regardless of whether the vehicle owner is authorized). Defaults to 1.0 which has no effect. Set to 0.0 to completely nullify decay damage near tool cupboards.

Protect from decay after recent use (minutes) -- Determines how many minutes to protect vehicles from decay after they have been used.Note: This option does not appear in the config for boats because there are already vanilla convars for that:motorrowboat.decaystartdelayminutes -- Applies to Row Boats, RHIBs, PT Boats, Kayaks, Duo Submarines, and Solo Submarines.tugboat.tugdecaystartdelayminutes -- Applies to Tug Boats.

Decay interval (seconds) -- Determines how often each vehicle can take decay damage. Raise this value to deal decay damage less frequently and to improve performance. The plugin will automatically compensate for slower schedules by dealing higher amounts of decay damage, so you don't have to worry about this affecting damage over time.

Note: This option does not appear in the config for boats because there are already vanilla convars for that:motorrowboat.decaystartdelayminutes

Applies to Row Boats, RHIBs, PT Boats, Kayaks, Duo Submarines, and Solo Submarines.tugboat.tugdecaystartdelayminutes -- Applies to Tug Boats.

motorrowboat.decaystartdelayminutes

Applies to Row Boats, RHIBs, PT Boats, Kayaks, Duo Submarines, and Solo Submarines.

tugboat.tugdecaystartdelayminutes

Applies to Tug Boats.

官方配置示例

{
  "Enable permission": true,
  "Vehicles": {
    "Ridable Horse": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 2.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Protect from decay after recent use (minutes)": 10.0,
      "Decay interval (seconds)": 60.0
    },
    "Ballista": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.1,
      "Decay multiplier near tool cupboard": 1.0,
      "Protect from decay after recent use (minutes)": 5.0,
      "Decay interval (seconds)": 60.0
    },
    "Battering Ram": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.1,
      "Decay multiplier near tool cupboard": 1.0,
      "Protect from decay after recent use (minutes)": 5.0,
      "Decay interval (seconds)": 60.0
    },
    "Catapult": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.1,
      "Decay multiplier near tool cupboard": 1.0,
      "Protect from decay after recent use (minutes)": 5.0,
      "Decay interval (seconds)": 60.0
    },
    "Siege Tower": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.1,
      "Decay multiplier near tool cupboard": 1.0,
      "Protect from decay after recent use (minutes)": 5.0,
      "Decay interval (seconds)": 60.0
    },
    "Modular Car": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.1,
      "Decay multiplier near tool cupboard": 1.0,
      "Protect from decay after recent use (minutes)": 10.0,
      "Decay interval (seconds)": 60.0
    },
    "Motor Bike": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Protect from decay after recent use (minutes)": 45.0,
      "Decay interval (seconds)": 60.0
    },
    "Motor Bike Sidecar": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Protect from decay after recent use (minutes)": 45.0,
      "Decay interval (seconds)": 60.0
    },
    "Pedal Bike": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Protect from decay after recent use (minutes)": 45.0,
      "Decay interval (seconds)": 60.0
    },
    "Pedal Trike": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Protect from decay after recent use (minutes)": 45.0,
      "Decay interval (seconds)": 60.0
    },
    "Player Boat": {
      "Allow the plugin to influence decay": false,
      "Decay multiplier while inside": 0.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Decay interval (seconds)": 60.0
    },
    "Snowmobile": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Protect from decay after recent use (minutes)": 45.0,
      "Decay interval (seconds)": 60.0
    },
    "Tomaha": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Protect from decay after recent use (minutes)": 45.0,
      "Decay interval (seconds)": 60.0
    },
    "Sled": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 1.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Decay interval (seconds)": 60.0
    },
    "Sled Xmas": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 1.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Decay interval (seconds)": 60.0
    },
    "Kayak": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Decay interval (seconds)": 60.0
    },
    "Rowboat": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Decay interval (seconds)": 60.0
    },
    "RHIB": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Decay interval (seconds)": 60.0
    },
    "PT Boat": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Decay interval (seconds)": 60.0
    },
    "Tugboat": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 1.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Decay interval (seconds)": 60.0
    },
    "Solo Submarine": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Decay interval (seconds)": 60.0
    },
    "Duo Submarine": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Decay interval (seconds)": 60.0
    },
    "Hot Air Balloon": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 0.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Protect from decay after recent use (minutes)": 10.0,
      "Decay interval (seconds)": 60.0
    },
    "Minicopter": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 1.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Protect from decay after recent use (minutes)": 10.0,
      "Decay interval (seconds)": 60.0
    },
    "Scrap Transport Helicopter": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 1.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Protect from decay after recent use (minutes)": 10.0,
      "Decay interval (seconds)": 60.0
    },
    "Attack Helicopter": {
      "Allow the plugin to influence decay": true,
      "Decay multiplier while inside": 1.0,
      "Decay multiplier near tool cupboard": 1.0,
      "Protect from decay after recent use (minutes)": 10.0,
      "Decay interval (seconds)": 60.0
    }
  }
}
object OnVehicleDecayReplace(BaseEntity entity)

更新日志

最新版本: v2.9.0
最后版本发布: 2026-03-08
最后更新(条目): 2026-07-19

本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面

安装方法

  1. 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
  2. 登录本站后点击"下载",由 uMod 官方地址获取作者发布的文件。
  3. 将 .cs 文件放入服务器的 oxide/plugins 目录。
  4. 观察服务端控制台,确认插件编译并成功加载。
  5. 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。

使用前注意

  • Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
  • 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
  • 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
  • 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
来源说明

中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。