免费插件

NPC Drop Gun

NPC 空投枪

迫使 NPC 在死亡后掉落武器和其他战利品

npcsloot

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

插件介绍

迫使 NPC 在死亡后掉落武器和其他战利品

Plugin might not work / have issues if you are using it among other plugins which alter NPC loot / death behaviour (such as BotSpawn, for example).

Makes NPCs such as scientists and bandits to drop weapon they use, ammo for it and some meds after death. Works with all types of NPCs (Outpost/Junkpile/Bandit Camp/Chinook/Cargoship). Amounts, drop chances and condition of the weapon are configurable.

Thanks to TTRRust for help with adding ammo to the corpse.

主要用途

主要用于npcs、loot等服务端功能。 本插件由 2CHEVSKII 发布,当前目录记录版本为 v2.0.9,uMod 累计下载 87,510 次。

适用场景

  • PVE、活动服或任务玩法服务器

功能分类

npcsloot
查看 uMod 官方英文简介

Forces NPCs to drop their weapon and other loot after death

配置说明

You can setup the chance of drop for every category or disable some of them.

Also allows You to set the amount of ammo, medical syringes and condition of guns dropped after NPC death.

By default ammo and medical syringes count chosen randomly between 2 values set in the cfg file, if You want something of it to be exact value - just set both corresponding numbers to that value (ex. minAmmo: 30, maxAmmo: 30)

Condition is relative to each item, so it's set between 0 and 100 (%)

Chance of item drop is between 0.0 (0%) and 1.0 (100%), independent for each category

There is an option to remove default NPC loot

Weapons can be spawned in inventory instead of dropping them on the ground

All the items can be dropped on the ground if bot's inventory is full (if you are using custom loot for bots)

Random skin can be assigned to dropped weapon

Ammo inside the dropped weapon can be configured

Attachments can be randomly assigned to weapon from the given list

Min/max attachment count and spawn chance are configurable

{ "Guns": { "Gun condition": { "Min": 5, "Max": 95 }, "Attachment count": { "Min": 0, "Max": 2 }, "Attachment list": [ "weapon.mod.8x.scope", "weapon.mod.flashlight", "weapon.mod.holosight", "weapon.mod.lasersight", "weapon.mod.muzzleboost", "weapon.mod.muzzlebrake", "weapon.mod.silencer", "weapon.mod.simplesight", "weapon.mod.small.scope" ], "Assign random skin": true, "Drop chance": 1.0 }, "Ammo": { "Amount to drop": { "Min": 10, "Max": 55 }, "Drop chance": 0.8 }, "Meds": { "Amount to drop": { "Min": 1, "Max": 3 }, "Drop chance": 0.4 }, "Put weapon into corpse": false, "Remove default loot from corpse": false, "Drop spawned items near corpse (otherwise just delete them)": true }

官方配置示例

{
  "Guns": {
    "Gun condition": {
      "Min": 5,
      "Max": 95
    },
    "Attachment count": {
      "Min": 0,
      "Max": 2
    },
    "Attachment list": [
      "weapon.mod.8x.scope",
      "weapon.mod.flashlight",
      "weapon.mod.holosight",
      "weapon.mod.lasersight",
      "weapon.mod.muzzleboost",
      "weapon.mod.muzzlebrake",
      "weapon.mod.silencer",
      "weapon.mod.simplesight",
      "weapon.mod.small.scope"
    ],
    "Assign random skin": true,
    "Drop chance": 1.0
  },
  "Ammo": {
    "Amount to drop": {
      "Min": 10,
      "Max": 55
    },
    "Drop chance": 0.8
  },
  "Meds": {
    "Amount to drop": {
      "Min": 1,
      "Max": 3
    },
    "Drop chance": 0.4
  },
  "Put weapon into corpse": false,
  "Remove default loot from corpse": false,
  "Drop spawned items near corpse (otherwise just delete them)": true
}

更新日志

最新版本: v2.0.9
最后版本发布: 2026-03-07
最后更新(条目): 2026-07-18

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

安装方法

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

使用前注意

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

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