免费插件

Diseases 可下载

疾病

向 Rust 添加完全可定制的疾病,让疾病爆发来折磨你的玩家

游戏机制 娱乐玩法 disease covid roleplay

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

插件介绍

向 Rust 添加完全可定制的疾病,让疾病爆发来折磨你的玩家

If you like this plugin, you might be interested in a new plugin I've written called "Injuries and Diseases". With the new plugin not only can player's become infected, but they can suffer injuries as well. Comes with 6 built in status conditions as well as custom vanilla-style indicators. The new plugin is available here go check it out!

I created a Master List for the community to share their custom made disease files. If you are a server admin looking for a pre-made, tested, and balanced disease or if you have a disease file you made and want to share, head on over to this link here and check out the list!

When a new version of this plugin is released there may be significant changes to the config file, language file, or diseases data files. To avoid errors you will want to make sure to verify these files are in the correct format:

Disease file updates occur only on Major and Minor updates. Patch updates will not require you to update your disease file (though it is recommended you change the Version attribute).

主要用途

主要用于游戏机制、娱乐玩法、disease、covid等服务端功能。 本插件由 mr01sam 发布,当前目录记录版本为 v2.1.1,uMod 累计下载 7,033 次。

适用场景

  • 希望改善玩家交互与日常体验的社区服务器

功能分类

游戏机制 娱乐玩法 disease covid roleplay
查看 uMod 官方英文简介

Adds fully customizable diseases to Rust for tormenting your players with outbreaks

权限节点

diseases.use

Required to become infected and utilize user commands

diseases.admin

Allows use of the admin commands

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

指令说明

/disease helpShows a list of all commands available to the player for this plugin.

/disease listPrints a list of the names of all currenlty loaded diseases.

/disease info <disease>Provides a brief description of the specified disease.

/disease stats <disease>Shows stats pertaining to the specified disease.

Shows a list of all commands available to the player for this plugin.

Prints a list of the names of all currenlty loaded diseases.

Provides a brief description of the specified disease.

Shows stats pertaining to the specified disease.

/disease infect <player> <disease>Infects if the player with the given disease if they are elligible.

/disease cure <player> <disease>Instantly cures the player from the disease without providing immunity.

/disease outbreak <disease> <attempts?>Starts an outbreak with the given disease, the outbreak will be constrained to only elligible players based on the disease file.You can optionally specify a number of attempts, for example if given the value 5 it will attempt an outbreak 5 times.

/disease eradicate <disease>Cures all currently infected players of the disease.

/disease config <disease>Prints the disease config file to the screen (useful for debugging a custom disease).

/disease load <disease>Loads a disease file with the same name located in the */oxide/data/Diseases/ directory.

/disease unload <disease>Unloads a currently loaded disease.

Infects if the player with the given disease if they are elligible.

Instantly cures the player from the disease without providing immunity.

Starts an outbreak with the given disease, the outbreak will be constrained to only elligible players based on the disease file.

You can optionally specify a number of attempts, for example if given the value 5 it will attempt an outbreak 5 times.

Cures all currently infected players of the disease.

Prints the disease config file to the screen (useful for debugging a custom disease).

Loads a disease file with the same name located in the */oxide/data/Diseases/ directory.

Unloads a currently loaded disease.

Note:/disease infect, /disease cure, /disease outbreak, and /disease eradicate can all also be called without the /disease prefix as /infect, /cure, /outbreak and /eradicate.

相关依赖

  • Image Library

配置说明

{ "Generate default disease (true/false)": true, "Loaded diseases on startup": [ "Norovirus" ], "Max number of infected entities": 100, "Disease name color in messages": "green", "Face covering items": [ "mask.bandana", "burlap.headwrap", "clatter.helmet", "coffeecan.helmet", "heavy.plate.helmet", "hazmatsuit", "hazmatsuit.spacesuit", "metal.facemask", "halloween.surgeonsuit" ], "Show status chat messages": true, "Infections can spread in safe zones": true, "Broadcast disease death messages": false, "Broadcast outbreaks": false, "HUD indicator list": { "Anchor min": "0.84 0.6", "Anchor max": "0.985 0.9", "Entry height": 0.1, "Anchor min (image)": "0.03 0.1", "Anchor max (image)": "0.14 0.85", "Show image (requires ImageLibrary)": true } }

Generate default diseaseIf set to true the default disease file Norovirus.json will be generated and will be generated and override any previous file of the same name.

Loaded diseases on startupA list of diseases (by name) that will be loaded upon initialization.The disease names should also be in Title Case format with spaces if necessary.Additional diseases can be loaded or unloaded in game with commands (see Commands section).

Max number of infected entitiesCan specify a number that will limit the amount of entities that can be infected at once by all diseases.Useful for servers that want to limit resource usage, as the intensiveness scales with the number of infected players.

Disease name color in messagesThe color of the disease name when it appears in chat status messages.

Face covering itemsA list of items (by their shortName) that count as face covering items that reduce infection.See this link for a list of shortNames for items.

Infections can spread in safe zonesIf set to false then players that are in safe zones will not be able to be infected by spreading or outbreaks.

Broadcast disease death messagesIf set to true then a message will be sent to all players when a player has died of a disease they are inflicted with.

Broadcast outbreaksIf set to true then a message will be sent to all players when an outbreak is occurring.

If set to true the default disease file Norovirus.json will be generated and will be generated and override any previous file of the same name.

A list of diseases (by name) that will be loaded upon initialization.

The disease names should also be in Title Case format with spaces if necessary.

Additional diseases can be loaded or unloaded in game with commands (see Commands section).

Can specify a number that will limit the amount of entities that can be infected at once by all diseases.

Useful for servers that want to limit resource usage, as the intensiveness scales with the number of infected players.

The color of the disease name when it appears in chat status messages.

A list of items (by their shortName) that count as face covering items that reduce infection.

See this link for a list of shortNames for items.

If set to false then players that are in safe zones will not be able to be infected by spreading or outbreaks.

If set to true then a message will be sent to all players when a player has died of a disease they are inflicted with.

If set to true then a message will be sent to all players when an outbreak is occurring.

Anchor minThe anchor min for the HUD indicator list.

Anchor maxThe anchor max for the HUD indicator list.

Entry heightThe height of each entry in the HUD indicator list.

Anchor min (image)The anchor min for the image shown in the HUD indicator list.

官方配置示例


{
  "Generate default disease (true/false)": true,
  "Loaded diseases on startup": [
    "Norovirus"
  ],
  "Max number of infected entities": 100,
  "Disease name color in messages": "green",
  "Face covering items": [
    "mask.bandana",
    "burlap.headwrap",
    "clatter.helmet",
    "coffeecan.helmet",
    "heavy.plate.helmet",
    "hazmatsuit",
    "hazmatsuit.spacesuit",
    "metal.facemask",
    "halloween.surgeonsuit"
  ],
  "Show status chat messages": true,
  "Infections can spread in safe zones": true,
  "Broadcast disease death messages": false,
  "Broadcast outbreaks": false,
  "HUD indicator list": {
    "Anchor min": "0.84 0.6",
    "Anchor max": "0.985 0.9",
    "Entry height": 0.1,
    "Anchor min (image)": "0.03 0.1",
    "Anchor max (image)": "0.14 0.85",
    "Show image (requires ImageLibrary)": true
  }
}

{
  "StatusInfected": "You are infected with {0}",
  "StatusRecovered": "You have recovered from {0}",
  "StatusTreated": "You treated the {0} and will recover faster",
  "StatusCured": "You are not longer suffering from {0}",
  "StatusOutbreak": "An outbreak of {0} has started",
  "Infect": "Infected {0} with {1}",
  "NoInfect": "{0} is already infected with {1} or is immune",
  "Cure": "Cured {0} of {1}",
  "NoCure": "{0} is not infected with {0} or cannot be cured",
  "Outbreak": "Outbreak of {0} infected {1} players",
  "Eradicate": "Cured all players of {0}",
  "NoEradicate": "No players are infected with {0}",
  "Load": "Loaded disease {0}",
  "NoLoad": "Failed to load disease {0}, it is either already loaded or file is invalid",
  "Unload": "Unloaded disease {0}",
  "NoUnload": "Failed to unload disease {0}, it is not currently loaded",
  "List": "Loaded diseases: {0}",
  "NoExist": "The disease {0} is not currently loaded or doesn't exist on this server",
  "NoPlayer": "There is no active player with the name {0}",
  "StatInfected": "Players infected: {0}",
  "StatInfectedTotal": "Total players infected: {0}",
  "StatKilled": "Total players killed: {0}",
  "Death": "{0} died from {1}",
  "Invalid": "Invalid command, try /disease help for a list of commands",
  "Treated": "Treated"
}

更新日志

最新版本: v2.1.1
最后版本发布: 2023-05-02
最后更新(条目): 2026-08-28

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

安装方法

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

使用前注意

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

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