免费插件

Car Turrets

汽车炮塔

允许玩家将自动炮塔部署到模块化汽车上

carturret

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

插件介绍

允许玩家将自动炮塔部署到模块化汽车上

There are two ways to deploy an auto turret to a car module.

Deploying an auto turret to a car module will consume an auto turret item from the player's inventory. Deploying turrets can be free for players with additional permissions, but an auto turret will still be required in their inventory in order to use the drag-and-drop method.

As an alternative to the allmodules permission, you can grant permissions by module type (these are generated from the config):

The following permissions determine the maximum number of turrets that can be deployed to a car owned by the player, overriding the DefaultLimitPerCar option in the plugin configuration.

主要用途

主要用于car、turret等服务端功能。 本插件由 WhiteThunder 发布,当前目录记录版本为 v1.6.5,uMod 累计下载 18,167 次。

适用场景

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

功能分类

carturret
查看 uMod 官方英文简介

Allows players to deploy auto turrets onto modular cars

权限节点

carturrets.deploy.command

Allows the player to use the carturret command. Note: The player also requires module-specific permissions for that command to work.

carturrets.deploy.inventory

Allows the player to deploy an auto turret to a vehicle module by clicking and dragging an auto turret item onto a vehicle module item in a car's inventory while editing the car at a lift. Note: The player also requires module-specific permissions for this to work.

carturrets.control

Allows remotely controlling car turrets. Only necessary while the RequirePermissionToControlCarTurrets config option is set to true.

carturrets.spawnwithcar

Cars owned by players with this permission will spawn with turrets automatically added to each module they have permission to, up to the limit they are allowed. The chance for each module to spawn with a turret is determined by the plugin configuration under SpawnWithCar->SpawnChanceByModule.Only applicable if the plugin configuration for SpawnWithCar->OtherCarSpawns->Enabled is true, and only necessary if SpawnWithCar->OtherCarSpawns->RequirePermission is true.

carturrets.removall

Allows the player to use the carturrets.removall command.

carturrets.allmodules

Allows the player to deploy turrets to all module types.

Only applicable if the plugin configuration for SpawnWithCar->OtherCarSpawns->Enabled is true, and only necessary if SpawnWithCar->OtherCarSpawns->RequirePermission is true.

As an alternative to the allmodules permission, you can grant permissions by module type (these are generated from the config):

carturrets.vehicle.1mod.cockpit

carturrets.vehicle.1mod.cockpit.armored

carturrets.vehicle.1mod.cockpit.with.engine

carturrets.vehicle.1mod.engine

carturrets.vehicle.1mod.flatbed

carturrets.vehicle.1mod.passengers.armored

carturrets.vehicle.1mod.rear.seats

carturrets.vehicle.1mod.storage

carturrets.vehicle.1mod.taxi

carturrets.vehicle.2mod.flatbed

carturrets.vehicle.2mod.fuel.tank

carturrets.vehicle.2mod.passengers

carturrets.vehicle.2mod.camper

The following permissions determine the maximum number of turrets that can be deployed to a car owned by the player, overriding the DefaultLimitPerCar option in the plugin configuration.

carturrets.limit.2

Allows cars owned by the player to receive at most 2 turrets.

carturrets.limit.3

Allows cars owned by the player to receive at most 3 turrets.

carturrets.limit.4

Allows cars owned by the player to receive at most 4 turrets.

If multiple of these permissions are granted to a player, the highest will be used.

Car ownership is determined by the OwnerID property of the car, which is usually a player's Steam ID, or 0 for no owner. Various plugins can spawn cars with a set owner, such as Spawn Modular Car or Craft Car Chassis, while other plugins allow the owner to change with certain events, such as Claim Vehicle.

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

指令说明

carturret

Deploy an auto turret onto the car module you are aiming at. You must not be building blocked. You must be within several meters of the car.

carturrets.removeall

Removes all turrets from all cars.

相关依赖

  • Vehicle Deployed Locks

配置说明

{ "RequirePermissionToControlCarTurrets": false, "DefaultLimitPerCar": 4, "EnableTurretPickup": true, "OnlyPowerTurretsWhileEngineIsOn": false, "TargetPlayers": true, "TargetNPCs": true, "TargetAnimals": true, "SpawnWithCar": { "NaturalCarSpawns": { "Enabled": false }, "OtherCarSpawns": { "Enabled": false, "RequirePermission": false }, "SpawnChanceByModule": { "vehicle.1mod.cockpit": 0, "vehicle.1mod.cockpit.armored": 0, "vehicle.1mod.cockpit.with.engine": 0, "vehicle.1mod.engine": 0, "vehicle.1mod.flatbed": 0, "vehicle.1mod.passengers.armored": 0, "vehicle.1mod.rear.seats": 0, "vehicle.1mod.storage": 0, "vehicle.1mod.taxi": 0, "vehicle.2mod.flatbed": 0, "vehicle.2mod.fuel.tank": 0, "vehicle.2mod.passengers": 0, "vehicle.2mod.camper": 0 } }, "AutoTurretPositionByModule": { "vehicle.1mod.cockpit": { "x": 0.0, "y": 1.39, "z": -0.3 }, "vehicle.1mod.cockpit.armored": { "x": 0.0, "y": 1.39, "z": -0.3 }, "vehicle.1mod.cockpit.with.engine": { "x": 0.0, "y": 1.39, "z": -0.85 }, "vehicle.1mod.engine": { "x": 0.0, "y": 0.4, "z": 0.0 }, "vehicle.1mod.flatbed": { "x": 0.0, "y": 0.06, "z": 0.0 }, "vehicle.1mod.passengers.armored": { "x": 0.0, "y": 1.38, "z": -0.31 }, "vehicle.1mod.rear.seats": { "x": 0.0, "y": 1.4, "z": -0.12 }, "vehicle.1mod.storage": { "x": 0.0, "y": 0.61, "z": 0.0 }, "vehicle.1mod.taxi": { "x": 0.0, "y": 1.38, "z": -0.13 }, "vehicle.2mod.flatbed": { "x": 0.0, "y": 0.06, "z": -0.7 }, "vehicle.2mod.fuel.tank": { "x": 0.0, "y": 1.28, "z": -0.85 }, "vehicle.2mod.passengers": { "x": 0.0, "y": 1.4, "z": -0.9 }, "vehicle.2mod.camper": { "x": 0.0, "y": 1.4, "z": -1.6 } } }

RequirePermissionToControlCarTurrets (true or false) -- Determines whether players require the carturrets.control permission to remotely control turrets attached to cars. While false, anybody can control car turrets. While a player is prohibited from controlling car turrets, they can still view the turrets perspective.

DefaultLimitPerCar

The maximum number of auto turrets allowed per car. Cars owned by players with additional permissions may have a higher value. Regardless of this value, the number of auto turrets cannot exceed the number of modules on the car.Note: You can also reduce the practical limit of auto turrets per car by restricting which modules they can be deployed to. For example, if you only allow auto turrets to be deployed to flatbed modules, a 2-socket car can have at most one auto turret (assuming it's driveable). For longer cars, players will have to choose between more turrets and other utilities. You can also restrict turrets to only 2-socket modules.

EnableTurretPickup (true or false) -- While false, car turrets cannot be picked up with a hammer or with the RemoverTool pugin, and removing a module from a car will destroy the turret without adding an auto turret item to the player inventory.

OnlyPowerTurretsWhileEngineIsOn (true or false) -- While true, turrets will not be powered unless the engine is on.

TargetPlayers (true or false) -- Whether car-mounted turrets should target real players.

TargetNPCs (true or false) -- Whether car-mounted turrets should target NPCs.

TargetAnimals (true or false) -- Whether car-mounted turrets should target NPC animals such as bears.

SpawnWithCar

Settings for automatically adding turrets to cars when they spawn.NaturalCarSpawnsEnabled (true or false) -- While true, cars that spawn naturally along roads will automatically have turrets added to them, up to the limit determined by DefaultLimitPerCar, and according to the chances in SpawnChanceByModule.OtherCarSpawns.Enabled (true or false) -- While true, cars spawned by plugins (such as Spawn Modular Car or Vehicle Airdrops) will have turrets added to them automatically, up to the limit determined by DefaultLimitPerCar or based on the permissions of the car owner if applicable, and according to the chances in SpawnChanceByModule.RequirePermission (true or false) -- While true, cars spawned by plugins will only have turrets added to them if the car is owned by a player with the carturrets.spawnwithcar permission.SpawnChanceByModule -- For each module type (based on item short name), these values determine the percent chance (0 - 100) that modules of that type will automatically have a turret added to them when the car spawns.

AutoTurretPositionByModule

For each module type (based on item short name), these values determine how an auto turret will be positioned relative to its parent module. These defaults were tested with modules in various positions with turrets facing forwards and backwards. Some modules, especially the small engine cockpit module, simply don't have an ideal position due to having a very small roof, but careful placement of modules and turrets can avoid any visual issues.

Note: You can also reduce the practical limit of auto turrets per car by restricting which modules they can be deployed to. For example, if you only allow auto turrets to be deployed to flatbed modules, a 2-socket car can have at most one auto turret (assuming it's driveable). For longer cars, players will have to choose between more turrets and other utilities. You can also restrict turrets to only 2-socket modules.

NaturalCarSpawnsEnabled (true or false) -- While true, cars that spawn naturally along roads will automatically have turrets added to them, up to the limit determined by DefaultLimitPerCar, and according to the chances in SpawnChanceByModule.

OtherCarSpawns.Enabled (true or false)

While true, cars spawned by plugins (such as Spawn Modular Car or Vehicle Airdrops) will have turrets added to them automatically, up to the limit determined by DefaultLimitPerCar or based on the permissions of the car owner if applicable, and according to the chances in SpawnChanceByModule.RequirePermission (true or false) -- While true, cars spawned by plugins will only have turrets added to them if the car is owned by a player with the carturrets.spawnwithcar permission.

SpawnChanceByModule

For each module type (based on item short name), these values determine the percent chance (0 - 100) that modules of that type will automatically have a turret added to them when the car spawns.

Enabled (true or false) -- While true, cars that spawn naturally along roads will automatically have turrets added to them, up to the limit determined by DefaultLimitPerCar, and according to the chances in SpawnChanceByModule.

Enabled (true or false) -- While true, cars spawned by plugins (such as Spawn Modular Car or Vehicle Airdrops) will have turrets added to them automatically, up to the limit determined by DefaultLimitPerCar or based on the permissions of the car owner if applicable, and according to the chances in SpawnChanceByModule.

RequirePermission (true or false) -- While true, cars spawned by plugins will only have turrets added to them if the car is owned by a player with the carturrets.spawnwithcar permission.

官方配置示例

{
  "RequirePermissionToControlCarTurrets": false,
  "DefaultLimitPerCar": 4,
  "EnableTurretPickup": true,
  "OnlyPowerTurretsWhileEngineIsOn": false,
  "TargetPlayers": true,
  "TargetNPCs": true,
  "TargetAnimals": true,
  "SpawnWithCar": {
    "NaturalCarSpawns": {
      "Enabled": false
    },
    "OtherCarSpawns": {
      "Enabled": false,
      "RequirePermission": false
    },
    "SpawnChanceByModule": {
      "vehicle.1mod.cockpit": 0,
      "vehicle.1mod.cockpit.armored": 0,
      "vehicle.1mod.cockpit.with.engine": 0,
      "vehicle.1mod.engine": 0,
      "vehicle.1mod.flatbed": 0,
      "vehicle.1mod.passengers.armored": 0,
      "vehicle.1mod.rear.seats": 0,
      "vehicle.1mod.storage": 0,
      "vehicle.1mod.taxi": 0,
      "vehicle.2mod.flatbed": 0,
      "vehicle.2mod.fuel.tank": 0,
      "vehicle.2mod.passengers": 0,
      "vehicle.2mod.camper": 0
    }
  },
  "AutoTurretPositionByModule": {
    "vehicle.1mod.cockpit": {
      "x": 0.0,
      "y": 1.39,
      "z": -0.3
    },
    "vehicle.1mod.cockpit.armored": {
      "x": 0.0,
      "y": 1.39,
      "z": -0.3
    },
    "vehicle.1mod.cockpit.with.engine": {
      "x": 0.0,
      "y": 1.39,
      "z": -0.85
    },
    "vehicle.1mod.engine": {
      "x": 0.0,
      "y": 0.4,
      "z": 0.0
    },
    "vehicle.1mod.flatbed": {
      "x": 0.0,
      "y": 0.06,
      "z": 0.0
    },
    "vehicle.1mod.passengers.armored": {
      "x": 0.0,
      "y": 1.38,
      "z": -0.31
    },
    "vehicle.1mod.rear.seats": {
      "x": 0.0,
      "y": 1.4,
      "z": -0.12
    },
    "vehicle.1mod.storage": {
      "x": 0.0,
      "y": 0.61,
      "z": 0.0
    },
    "vehicle.1mod.taxi": {
      "x": 0.0,
      "y": 1.38,
      "z": -0.13
    },
    "vehicle.2mod.flatbed": {
      "x": 0.0,
      "y": 0.06,
      "z": -0.7
    },
    "vehicle.2mod.fuel.tank": {
      "x": 0.0,
      "y": 1.28,
      "z": -0.85
    },
    "vehicle.2mod.passengers": {
      "x": 0.0,
      "y": 1.4,
      "z": -0.9
    },
    "vehicle.2mod.camper": {
      "x": 0.0,
      "y": 1.4,
      "z": -1.6
    }
  }
}
{
  "Generic.Error.NoPermission": "You don't have permission to do that.",
  "Generic.Error.BuildingBlocked": "Error: Cannot do that while building blocked.",
  "Deploy.Error.NoCarFound": "Error: No car found.",
  "Deploy.Error.NoModules": "Error: That car has no modules.",
  "Deploy.Error.NoPermissionToModule": "You don't have permission to do that to that module type.",
  "Deploy.Error.ModuleAlreadyHasTurret": "Error: That module already has a turret.",
  "Deploy.Error.UnsupportedModule": "Error: That module is not supported.",
  "Deploy.Error.TurretLimit": "Error: That car may only have {0} turret(s).",
  "Deploy.Error.NoSuitableModule": "Error: No suitable module found.",
  "Deploy.Error.NoTurret": "Error: You need an auto turret to do that.",
  "Remove.Error.TurretHasItems": "Error: That module's turret must be empty.",
  "RemoveAll.Success": "Removed all {0} car turrets.",
  "Info.PowerRequiresEngine": "The turret will power on when the car engine starts."
}

更新日志

最新版本: v1.6.5
最后版本发布: 2025-11-06
最后更新(条目): 2026-07-19

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

安装方法

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

使用前注意

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

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