免费插件

Booby Traps

诱杀装置

带有各种陷阱的诱杀箱和门

trapsdoorsboxes

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

插件介绍

带有各种陷阱的诱杀箱和门

Booby trap boxes and doors with a variety of different traps for players with permission.

The admin commands also work in console without the /.

Autotrap will assign a random enabled trap to loot/supply drops as it spawns. The chance for each can be adjust in the config (setting chance to 40 gives it a 1 in 40 chance of trapping the loot.)

You can also enable/disable loot and supply drop autotraps.

主要用途

主要用于traps、doors、boxes等服务端功能。 本插件由 k1lly0u 发布,当前目录记录版本为 v0.2.20,uMod 累计下载 12,705 次。

适用场景

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

功能分类

trapsdoorsboxes
查看 uMod 官方英文简介

Booby trap boxes and doors with a variety of traps

指令说明

/trap

Displays the help menu and traps available to the player

/trap costs

Shows the costs for that trap type

/trap set

Set a trap on the object the player is looking at

/trap remove

Remove a trap if it is set by the player

/trap check

Check the object the player is looking at for any traps set by themselves

配置说明

Autotrap will assign a random enabled trap to loot/supply drops as it spawns. The chance for each can be adjust in the config (setting chance to 40 gives it a 1 in 40 chance of trapping the loot.)

You can also enable/disable loot and supply drop autotraps.

Example:

"BeancanGrenade": { "AdminOnly": false, // Enables this trap to be used by admins only "Costs": [ // The costs to set this trap { "Amount": 2, // Item amount "Shortname": "grenade.beancan" // Item shortname } ], "DamageAmount": 30.0, // The amount of damage this trap will yield "Duration": 0.0, // The amount of time this trap will run for (if applicable) "Enabled": true, // Enable/Disable this trap type "FuseTimer": 2.0, // The time from when the trap is activated till it goes off "Radius": 4.0 // The radius of damage dealt from this trap },

Note: Not all options will be relevant to each trap type! For example, as shown above, the field "duration" does not apply to the beancan trap.

Duration is only applicable to the Radiation trap, it is the length of time the radiation will be active

DamageAmount does not apply to the Landmine or Beartrap trapsThe amount of traps that will be laid is the amount you set the cost to in the config

{ "AutotrapSettings": { "AirdropChance": 40, // Chance to random trap supply drops "LootContainerChance": 40, // Chance to random trap loot containers "UseAirdrops": true, // Enable/Disable supply drop auto traps "UseLootContainers": true //Enable/Disable loot container auto traps }, "Options": { "CanTrapBoxes": true, // Allow storage containers to be trapped by players "CanTrapDoors": true, // Allow doors to be trapped by players "CanTrapLoot": false, // Allow random loot containers to be trapped by players "CanTrapSupplyDrops": true, // Allows supply drops to be trapped by players "NotifyPlayersWhenTrapTriggered": true, // Notify players they have activated a trap "NotifyRandomSetTraps": true, // Print console messages when a random trap is set "OverrideCostsForAdmins": true, // Allow admins to set traps for no costs "PlayTrapWarningSoundFX": true, // Triggers the trap sound effect when the object is opened/damaged "RequireBuildingPrivToTrap": true, // Requires the player to have building privilege to place a trap "RequireOwnershipToTrap": true // Requires ownership of the object to place a trap }, "TrapTypes": { "BeancanGrenade": { "AdminOnly": false, "Costs": [ { "Amount": 2, "Shortname": "grenade.beancan" } ], "DamageAmount": 30.0, "Duration": 0.0, "Enabled": true, "FuseTimer": 2.0, "Radius": 4.0 }, "Beartrap": { "AdminOnly": false, "Costs": [ { "Amount": 10, "Shortname": "trap.bear" } ], "DamageAmount": 0.0, "Duration": 0.0, "Enabled": true, "FuseTimer": 2.0, "Radius": 2.0 }, "Explosive": { "AdminOnly": false, "Costs": [ { "Amount": 2, "Shortname": "explosive.timed" } ], "DamageAmount": 110.0, "Duration": 0.0, "Enabled": true, "FuseTimer": 3.0, "Radius": 10.0 }, "Fire": { "AdminOnly": false, "Costs": [ { "Amount": 50, "Shortname": "lowgradefuel" } ], "DamageAmount": 1.0, "Duration": 0.0, "Enabled": true, "FuseTimer": 3.0, "Radius": 2.0 }, "Grenade": { "AdminOnly": false, "Costs": [ { "Amount": 2, "Shortname": "grenade.f1" } ], "DamageAmount": 75.0, "Duration": 0.0, "Enabled": true, "FuseTimer": 3.0, "Radius": 5.0 }, "Landmine": { "AdminOnly": false, "Costs": [ { "Amount": 10, "Shortname": "trap.landmine" } ], "DamageAmount": 0.0, "Duration": 0.0, "Enabled": true, "FuseTimer": 2.0, "Radius": 2.0 }, "Radiation": { "AdminOnly": true, "Costs": [], "DamageAmount": 20.0, "Duration": 20.0, "Enabled": true, "FuseTimer": 3.0, "Radius": 10.0 }, "Shock": { "AdminOnly": true, "Costs": [], "DamageAmount": 95.0, "Duration": 0.0, "Enabled": true, "FuseTimer": 2.0, "Radius": 2.0 } } }

官方配置示例

"BeancanGrenade": {
      "AdminOnly": false, // Enables this trap to be used by admins only
      "Costs": [ // The costs to set this trap
        {
          "Amount": 2, // Item amount
          "Shortname": "grenade.beancan" // Item shortname
        }
      ],
      "DamageAmount": 30.0, // The amount of damage this trap will yield
      "Duration": 0.0, // The amount of time this trap will run for (if applicable)
      "Enabled": true, // Enable/Disable this trap type
      "FuseTimer": 2.0, // The time from when the trap is activated till it goes off
      "Radius": 4.0 // The radius of damage dealt from this trap
    },
{
  "AutotrapSettings": {
    "AirdropChance": 40, // Chance to random trap supply drops
    "LootContainerChance": 40, // Chance to random trap loot containers
    "UseAirdrops": true, // Enable/Disable supply drop auto traps
    "UseLootContainers": true //Enable/Disable loot container auto traps
  },
  "Options": {
    "CanTrapBoxes": true, // Allow storage containers to be trapped by players
    "CanTrapDoors": true, // Allow doors to be trapped by players
    "CanTrapLoot": false, // Allow random loot containers to be trapped by players
    "CanTrapSupplyDrops": true, // Allows supply drops to be trapped by players
    "NotifyPlayersWhenTrapTriggered": true, // Notify players they have activated a trap
    "NotifyRandomSetTraps": true, // Print console messages when a random trap is set
    "OverrideCostsForAdmins": true, // Allow admins to set traps for no costs
    "PlayTrapWarningSoundFX": true, // Triggers the trap sound effect when the object is opened/damaged
    "RequireBuildingPrivToTrap": true, // Requires the player to have building privilege to place a trap
    "RequireOwnershipToTrap": true // Requires ownership of the object to place a trap
  },
  "TrapTypes": {
    "BeancanGrenade": {
      "AdminOnly": false,
      "Costs": [
        {
          "Amount": 2,
          "Shortname": "grenade.beancan"
        }
      ],
      "DamageAmount": 30.0,
      "Duration": 0.0,
      "Enabled": true,
      "FuseTimer": 2.0,
      "Radius": 4.0
    },
    "Beartrap": {
      "AdminOnly": false,
      "Costs": [
        {
          "Amount": 10,
          "Shortname": "trap.bear"
        }
      ],
      "DamageAmount": 0.0,
      "Duration": 0.0,
      "Enabled": true,
      "FuseTimer": 2.0,
      "Radius": 2.0
    },
    "Explosive": {
      "AdminOnly": false,
      "Costs": [
        {
          "Amount": 2,
          "Shortname": "explosive.timed"
        }
      ],
      "DamageAmount": 110.0,
      "Duration": 0.0,
      "Enabled": true,
      "FuseTimer": 3.0,
      "Radius": 10.0
    },
    "Fire": {
      "AdminOnly": false,
      "Costs": [
        {
          "Amount": 50,
          "Shortname": "lowgradefuel"
        }
      ],
      "DamageAmount": 1.0,
      "Duration": 0.0,
      "Enabled": true,
      "FuseTimer": 3.0,
      "Radius": 2.0
    },
    "Grenade": {
      "AdminOnly": false,
      "Costs": [
        {
          "Amount": 2,
          "Shortname": "grenade.f1"
        }
      ],
      "DamageAmount": 75.0,
      "Duration": 0.0,
      "Enabled": true,
      "FuseTimer": 3.0,
      "Radius": 5.0
    },
    "Landmine": {
      "AdminOnly": false,
      "Costs": [
        {
          "Amount": 10,
          "Shortname": "trap.landmine"
        }
      ],
      "DamageAmount": 0.0,
      "Duration": 0.0,
      "Enabled": true,
      "FuseTimer": 2.0,
      "Radius": 2.0
    },
    "Radiation": {
      "AdminOnly": true,
      "Costs": [],
      "DamageAmount": 20.0,
      "Duration": 20.0,
      "Enabled": true,
      "FuseTimer": 3.0,
      "Radius": 10.0
    },
    "Shock": {
      "AdminOnly": true,
      "Costs": [],
      "DamageAmount": 95.0,
      "Duration": 0.0,
      "Enabled": true,
      "FuseTimer": 2.0,
      "Radius": 2.0
    }
  }
}

更新日志

最新版本: v0.2.20
最后版本发布: 2026-07-02
最后更新(条目): 2026-08-26

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

安装方法

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

使用前注意

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

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