插件介绍
允许模块化汽车生成可配置的模块、生命值、燃料和发动机部件
Allows configuring the modules, health, fuel, and engine parts that modular cars spawn with.
Supports skinned modules for compatibility with plugins that define custom modules according to their skin ID.
Default configuration (vanilla equivalent):
In the below example, there are two 2-socket presets, two 3-socket presets, and two 4-socket presets.
主要用途
主要用于car、modular等服务端功能。 本插件由 WhiteThunder 发布,当前目录记录版本为 v2.3.1,uMod 累计下载 40,468 次。
适用场景
- 希望扩展原版服务器功能的服主
功能分类
查看 uMod 官方英文简介
Allows modular cars to spawn with configurable modules, health, fuel, and engine parts
指令说明
carspawnsettings.fillcars
(Admin command only) Adds fuel and engine parts to existing cars, according to the configuration of the plugin. This is intended to be used only during first time installation, to update cars that spawned before the plugin loaded.Tip: You can run the carstats command to see the status of all cars in the server.
Tip: You can run the carstats command to see the status of all cars in the server.
配置说明
Default configuration (vanilla equivalent):
{ "Engine parts": { "Tier 1 chance": 0, "Tier 2 chance": 0, "Tier 3 chance": 0, "Min condition percent": 100.0, "Max condition percent": 100.0 }, "Min fuel amount": 0, "Max fuel amount": 0, "Min health percent": 15.0, "Max health percent": 50.0, "Module presets": { "2 sockets": { "Use vanilla presets": true, "Custom presets": [] }, "3 sockets": { "Use vanilla presets": true, "Custom presets": [] }, "4 sockets": { "Use vanilla presets": true, "Custom presets": [] } } }
Engine partsTier * chance (0 - 100) -- These three options control the chance that an engine part slot will be filled with a part of the corresponding quality. For example, setting Tier 1 chance to 100 will guarantee that each engine part slot is filled with at least a low quality engine part. Additionally setting Tier 2 chance to 50 would grant a 50% chance that each slot will receive a medium quality part instead of a low quality part. Each tier gets a separate roll, so the total part chance is multiplicative with dimishing returns. Formula: OverallChance = 100 - 100 * (1 - 0.01 * T3) * (1 - 0.01 * T2) * (1 - 0.01 * T1).Min condition percent / Max condition percent (0 - 100) -- These options determine the condition that each engine part will be assigned. You can set them both to the same value if you don't want randomization.
Min fuel amount / Max fuel amount
These options determine the amount of low grade fuel to put in the car's fuel tank when it spawns. You can set them both to the same value if you don't want randomization.
Module presets
These settings allow you to customize the modules that cars spawn with, using presets. Each car size is configured separately. You can use either vanilla presets, custom presets, or a combination of both. The exact preset used will be randomly selected from the list when a car spawns.Use vanilla presets (true or false) -- While true, vanilla presets will be used in conjunction with any Custom presets you defined. While false, only your Custom Presets will be used.Custom presets -- List of module presets, where each preset is a list of module item short names and Item skin IDs, which determines the module items to add. Using an empty item short name like "" will cause that particular socket to be skipped. Item short names can be found on the uMod item list page. See below for some examples.
Tier * chance (0 - 100) -- These three options control the chance that an engine part slot will be filled with a part of the corresponding quality. For example, setting Tier 1 chance to 100 will guarantee that each engine part slot is filled with at least a low quality engine part. Additionally setting Tier 2 chance to 50 would grant a 50% chance that each slot will receive a medium quality part instead of a low quality part. Each tier gets a separate roll, so the total part chance is multiplicative with dimishing returns. Formula: OverallChance = 100 - 100 * (1 - 0.01 * T3) * (1 - 0.01 * T2) * (1 - 0.01 * T1).
Min condition percent / Max condition percent (0 - 100) -- These options determine the condition that each engine part will be assigned. You can set them both to the same value if you don't want randomization.
Use vanilla presets (true or false) -- While true, vanilla presets will be used in conjunction with any Custom presets you defined. While false, only your Custom Presets will be used.
Custom presets
List of module presets, where each preset is a list of module item short names and Item skin IDs, which determines the module items to add. Using an empty item short name like "" will cause that particular socket to be skipped. Item short names can be found on the uMod item list page. See below for some examples.
In the below example, there are two 2-socket presets, two 3-socket presets, and two 4-socket presets.
"Module presets": { "2 sockets": { "Use vanilla presets": false, "Custom presets": [ [ { "Item short name": "vehicle.1mod.cockpit.with.engine", "Item skin ID": 0 }, { "Item short name": "vehicle.1mod.taxi", "Item skin ID": 0 } ], [ { "Item short name": "vehicle.1mod.engine", "Item skin ID": 0 }, { "Item short name": "vehicle.1mod.cockpit.armored", "Item skin ID": 0 } ] ] }, "3 sockets": { "Use vanilla presets": false, "Custom presets": [ [ { "Item short name": "vehicle.1mod.engine", "Item skin ID": 0 }, { "Item short name": "vehicle.1mod.cockpit.with.engine", "Item skin ID": 0 }, { "Item short name": "vehicle.1mod.taxi", "Item skin ID": 0 } ], [ { "Item short name": "vehicle.1mod.engine", "Item skin ID": 0 }, { "Item short name": "vehicle.1mod.cockpit.armored", "Item skin ID": 0 }, { "Item short name": "vehicle.1mod.passengers.armored", "Item skin ID": 0 } ] ] }, "4 sockets": { "Use vanilla presets": false, "Custom presets": [ [ { "Item short name": "vehicle.1mod.engine", "Item skin ID": 0 }, { "Item short name": "vehicle.1mod.cockpit.with.engine", "Item skin ID": 0 }, { "Item short name": "vehicle.1mod.taxi", "Item skin ID": 0 }, { "Item short name": "vehicle.1mod.taxi", "Item skin ID": 0 } ], [ { "Item short name": "vehicle.1mod.engine", "Item skin ID": 0 }, { "Item short name": "vehicle.1mod.cockpit.armored", "Item skin ID": 0 }, { "Item short name": "vehicle.1mod.passengers.armored", "Item skin ID": 0 }, { "Item short name": "vehicle.1mod.engine", "Item skin ID": 0 } ] ] } }
Fully repaired, high quality parts, 500 low grade.
"Engine parts": { "Tier 1 chance": 0, "Tier 2 chance": 0, "Tier 3 chance": 100, "Min condition percent": 100.0, "Max condition percent": 100.0 }, "Min fuel amount": 500, "Max fuel amount": 500, "Min health percent": 100.0, "Max health percent": 100.0,
Based on vanilla settings and loot tables. Overall 35.5% chance for engine parts in each slot.
"Engine parts": { "Tier 1 chance": 27, "Tier 2 chance": 9, "Tier 3 chance": 3, "Min condition percent": 25.0, "Max condition percent": 75.0 }, "Min fuel amount": 0, "Max fuel amount": 25, "Min health percent": 15.0, "Max health percent": 50.0,
官方配置示例
{
"Engine parts": {
"Tier 1 chance": 0,
"Tier 2 chance": 0,
"Tier 3 chance": 0,
"Min condition percent": 100.0,
"Max condition percent": 100.0
},
"Min fuel amount": 0,
"Max fuel amount": 0,
"Min health percent": 15.0,
"Max health percent": 50.0,
"Module presets": {
"2 sockets": {
"Use vanilla presets": true,
"Custom presets": []
},
"3 sockets": {
"Use vanilla presets": true,
"Custom presets": []
},
"4 sockets": {
"Use vanilla presets": true,
"Custom presets": []
}
}
}
"Module presets": {
"2 sockets": {
"Use vanilla presets": false,
"Custom presets": [
[
{
"Item short name": "vehicle.1mod.cockpit.with.engine",
"Item skin ID": 0
},
{
"Item short name": "vehicle.1mod.taxi",
"Item skin ID": 0
}
],
[
{
"Item short name": "vehicle.1mod.engine",
"Item skin ID": 0
},
{
"Item short name": "vehicle.1mod.cockpit.armored",
"Item skin ID": 0
}
]
]
},
"3 sockets": {
"Use vanilla presets": false,
"Custom presets": [
[
{
"Item short name": "vehicle.1mod.engine",
"Item skin ID": 0
},
{
"Item short name": "vehicle.1mod.cockpit.with.engine",
"Item skin ID": 0
},
{
"Item short name": "vehicle.1mod.taxi",
"Item skin ID": 0
}
],
[
{
"Item short name": "vehicle.1mod.engine",
"Item skin ID": 0
},
{
"Item short name": "vehicle.1mod.cockpit.armored",
"Item skin ID": 0
},
{
"Item short name": "vehicle.1mod.passengers.armored",
"Item skin ID": 0
}
]
]
},
"4 sockets": {
"Use vanilla presets": false,
"Custom presets": [
[
{
"Item short name": "vehicle.1mod.engine",
"Item skin ID": 0
},
{
"Item short name": "vehicle.1mod.cockpit.with.engine",
"Item skin ID": 0
},
{
"Item short name": "vehicle.1mod.taxi",
"Item skin ID": 0
},
{
"Item short name": "vehicle.1mod.taxi",
"Item skin ID": 0
}
],
[
{
"Item short name": "vehicle.1mod.engine",
"Item skin ID": 0
},
{
"Item short name": "vehicle.1mod.cockpit.armored",
"Item skin ID": 0
},
{
"Item short name": "vehicle.1mod.passengers.armored",
"Item skin ID": 0
},
{
"Item short name": "vehicle.1mod.engine",
"Item skin ID": 0
}
]
]
}
}
更新日志
本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面。
安装方法
- 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
- 登录本站后点击"下载",由本站已校验的本地缓存提供作者发布的文件。
- 将 .cs 文件放入服务器的
oxide/plugins目录。 - 观察服务端控制台,确认插件编译并成功加载。
- 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。
使用前注意
- Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
- 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
- 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
- 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。