插件介绍
一场瘟疫摧毁了世界人口,避免其他玩家生存
Everyone is infected.
Players build plague over time when near others. Isolation reduces it. Illness levels apply configurable effects such as hunger, thirst, and radiation.
Includes kin system for immunity, full API support, and SimpleStatus integration.
主要用途
主要用于event、gamemode等服务端功能。 本插件由 KrunghCrow 发布,当前目录记录版本为 v2.0.0,uMod 累计下载 8,296 次。
适用场景
- 希望扩展原版服务器功能的服主
功能分类
查看 uMod 官方英文简介
A plague has decimated the world's population, avoid others players to stay alive
权限节点
plagued.admin → Access to admin commands
授权示例:oxide.grant user 玩家名 权限节点;撤销使用 oxide.revoke。
指令说明
/plagued addkin → Add looked-at player as kin
/plagued delkin → Remove looked-at player from kin
/plagued delkin <number> → Remove kin by index
/plagued lskin → List kin
/plagued level → Show plague level and progress
/plagued info → Show plugin info
/plagued debug → Toggle debug
/plagued testmode → Toggle test mode
/plagued forcetick → Force proximity metabolism tick
/plagued addpoints <amount> → Add plague points
/plagued setpoints <amount> → Set total plague points
/plagued setlevel <level> → Set level by threshold
配置说明
{ "Plague Range": 20.0, "Proximity Check Interval Seconds": 5.0, "Metabolism Check Interval Seconds": 5.0, "Plague Point Loss Per Isolation Tick": 1, "Maximum Kin": 2, "Maximum Kin Changes Per Wipe": 3, "Count Sleepers For Exposure": false, "Chat Prefix": "<color=#81F781>[Plagued]</color>", "Notify On Infection Start": true, "Notify On Full Recovery": true, "Notify On Grade Change": true, "Notify On Level Up": true, "Notify On Level Down": true, "Ignore Illness Effects While Godmode": true, "Use Simple Status Support": true, "Simple Status Title": "Plagued", "Simple Status Icon": "assets/icons/radiation.png", "Simple Status Icon Color": "1 1 1 1", "Simple Status Healthy Remove": true, "Simple Status Rank": 0, "Simple Status Background Color": "0.40 0.70 0.10 0.85", "Simple Status Title Color": "1 1 1 1", "Simple Status Text Color": "1 1 1 1", "Simple Status Progress Color": "0.40 0.70 0.10 0.85", "Debug Settings": { "Enable Debug Logging": true, "Log To Server Console": true, "Send Debug Messages To Admin Chat": false }, "Point Gain Settings": { "Use Timed Gain": true, "Timed Gain Interval Seconds": 5.0, "Timed Gain Per Valid Player": 2, "Timed Gain Flat If Any Valid Player": 0, "Use Encounter Gain": false, "Encounter Gain Per New Player": 10, "Encounter Cooldown Seconds": 30.0, "Maximum Counted Players Per Tick": 3 }, "Illness Levels": [ { "Level": 1, "Required Total Points": 50, "Grade": "Early Symptoms", "Calories Loss": 0.0, "Hydration Loss": 0.0, "Maximum Radiation": 0.0, "Radiation Gain Per Tick": 0.0 }, { "Level": 2, "Required Total Points": 250, "Grade": "Hunger", "Calories Loss": 0.5, "Hydration Loss": 0.0, "Maximum Radiation": 0.0, "Radiation Gain Per Tick": 0.0 }, { "Level": 3, "Required Total Points": 500, "Grade": "Thirst", "Calories Loss": 0.5, "Hydration Loss": 0.5, "Maximum Radiation": 0.0, "Radiation Gain Per Tick": 0.0 }, { "Level": 4, "Required Total Points": 900, "Grade": "Dehydrated", "Calories Loss": 0.5, "Hydration Loss": 1.0, "Maximum Radiation": 0.0, "Radiation Gain Per Tick": 0.0 }, { "Level": 5, "Required Total Points": 1400, "Grade": "Starving", "Calories Loss": 1.0, "Hydration Loss": 1.0, "Maximum Radiation": 0.0, "Radiation Gain Per Tick": 0.0 }, { "Level": 6, "Required Total Points": 2000, "Grade": "Low Rads", "Calories Loss": 1.0, "Hydration Loss": 1.0, "Maximum Radiation": 10.0, "Radiation Gain Per Tick": 0.5 }, { "Level": 7, "Required Total Points": 2500, "Grade": "Mild Rads", "Calories Loss": 1.0, "Hydration Loss": 1.0, "Maximum Radiation": 25.0, "Radiation Gain Per Tick": 0.5 }, { "Level": 8, "Required Total Points": 3000, "Grade": "High Rads", "Calories Loss": 1.0, "Hydration Loss": 1.0, "Maximum Radiation": 40.0, "Radiation Gain Per Tick": 0.8 }, { "Level": 9, "Required Total Points": 3500, "Grade": "Zombified", "Calories Loss": 1.0, "Hydration Loss": 1.5, "Maximum Radiation": 50.0, "Radiation Gain Per Tick": 1.0 } ] }
官方配置示例
// Query APIs
object GetPlagueLevelAPI(ulong userId)
object GetTotalPlaguePointsAPI(ulong userId)
object GetCurrentGradeAPI(ulong userId)
object IsPlayerInfectedAPI(ulong userId)
object GetIllnessLevelsAPI()
// Control APIs
object SetTotalPlaguePointsAPI(ulong userId, int amount)
object AddPlaguePointsAPI(ulong userId, int amount)
object SetPlagueLevelByThresholdAPI(ulong userId, int level)
// Kin APIs
object IsKinAPI(ulong playerId, ulong targetId)
object AddKinAPI(ulong playerId, ulong targetId)
object RemoveKinAPI(ulong playerId, ulong targetId)
// Hooks fired by Plagued
void OnPlagueLevelChanged(BasePlayer player, int oldLevel, int newLevel)
void OnPlagueGradeChanged(BasePlayer player, string oldGrade, string newGrade)
void OnPlagueLevelEffectApplied(BasePlayer player, int level, string grade, object levelConfig)
{
"Plague Range": 20.0,
"Proximity Check Interval Seconds": 5.0,
"Metabolism Check Interval Seconds": 5.0,
"Plague Point Loss Per Isolation Tick": 1,
"Maximum Kin": 2,
"Maximum Kin Changes Per Wipe": 3,
"Count Sleepers For Exposure": false,
"Chat Prefix": "<color=#81F781>[Plagued]</color>",
"Notify On Infection Start": true,
"Notify On Full Recovery": true,
"Notify On Grade Change": true,
"Notify On Level Up": true,
"Notify On Level Down": true,
"Ignore Illness Effects While Godmode": true,
"Use Simple Status Support": true,
"Simple Status Title": "Plagued",
"Simple Status Icon": "assets/icons/radiation.png",
"Simple Status Icon Color": "1 1 1 1",
"Simple Status Healthy Remove": true,
"Simple Status Rank": 0,
"Simple Status Background Color": "0.40 0.70 0.10 0.85",
"Simple Status Title Color": "1 1 1 1",
"Simple Status Text Color": "1 1 1 1",
"Simple Status Progress Color": "0.40 0.70 0.10 0.85",
"Debug Settings": {
"Enable Debug Logging": true,
"Log To Server Console": true,
"Send Debug Messages To Admin Chat": false
},
"Point Gain Settings": {
"Use Timed Gain": true,
"Timed Gain Interval Seconds": 5.0,
"Timed Gain Per Valid Player": 2,
"Timed Gain Flat If Any Valid Player": 0,
"Use Encounter Gain": false,
"Encounter Gain Per New Player": 10,
"Encounter Cooldown Seconds": 30.0,
"Maximum Counted Players Per Tick": 3
},
"Illness Levels": [
{
"Level": 1,
"Required Total Points": 50,
"Grade": "Early Symptoms",
"Calories Loss": 0.0,
"Hydration Loss": 0.0,
"Maximum Radiation": 0.0,
"Radiation Gain Per Tick": 0.0
},
{
"Level": 2,
"Required Total Points": 250,
"Grade": "Hunger",
"Calories Loss": 0.5,
"Hydration Loss": 0.0,
"Maximum Radiation": 0.0,
"Radiation Gain Per Tick": 0.0
},
{
"Level": 3,
"Required Total Points": 500,
"Grade": "Thirst",
"Calories Loss": 0.5,
"Hydration Loss": 0.5,
"Maximum Radiation": 0.0,
"Radiation Gain Per Tick": 0.0
},
{
"Level": 4,
"Required Total Points": 900,
"Grade": "Dehydrated",
"Calories Loss": 0.5,
"Hydration Loss": 1.0,
"Maximum Radiation": 0.0,
"Radiation Gain Per Tick": 0.0
},
{
"Level": 5,
"Required Total Points": 1400,
"Grade": "Starving",
"Calories Loss": 1.0,
"Hydration Loss": 1.0,
"Maximum Radiation": 0.0,
"Radiation Gain Per Tick": 0.0
},
{
"Level": 6,
"Required Total Points": 2000,
"Grade": "Low Rads",
"Calories Loss": 1.0,
"Hydration Loss": 1.0,
"Maximum Radiation": 10.0,
"Radiation Gain Per Tick": 0.5
},
{
"Level": 7,
"Required Total Points": 2500,
"Grade": "Mild Rads",
"Calories Loss": 1.0,
"Hydration Loss": 1.0,
"Maximum Radiation": 25.0,
"Radiation Gain Per Tick": 0.5
},
{
"Level": 8,
"Required Total Points": 3000,
"Grade": "High Rads",
"Calories Loss": 1.0,
"Hydration Loss": 1.0,
"Maximum Radiation": 40.0,
"Radiation Gain Per Tick": 0.8
},
{
"Level": 9,
"Required Total Points": 3500,
"Grade": "Zombified",
"Calories Loss": 1.0,
"Hydration Loss": 1.5,
"Maximum Radiation": 50.0,
"Radiation Gain Per Tick": 1.0
}
]
}
更新日志
本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面。
安装方法
- 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
- 登录本站后点击"下载",由本站已校验的本地缓存提供作者发布的文件。
- 将 .cs 文件放入服务器的
oxide/plugins目录。 - 观察服务端控制台,确认插件编译并成功加载。
- 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。
使用前注意
- Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
- 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
- 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
- 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。