免费插件

Turret Loadouts 已缓存至服务器本地

炮塔装载

使用可配置的装载自动为炮塔装满武器、附件和弹药

turret autoturret turrets

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

插件介绍

使用可配置的装载自动为炮塔装满武器、附件和弹药

This plugin does not allow players to define custom loadouts for sam sites, flame turrets and shotgun traps because the only thing worth customizing about them is the amount of ammo, and ammo is currently free with this plugin.

Default configuration:

Any weapon, any ammo, and any attachments.

Any weapon, any ammo, but no attachments.

主要用途

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

适用场景

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

功能分类

turret autoturret turrets
查看 uMod 官方英文简介

Automatically fills turrets with weapons, attachments and ammo, using configurable loadouts

权限节点

turretloadouts.autotoggle

For players with this permission, deploying a turret will automatically power it on, but only if it was filled with a weapon and ammo.

turretloadouts.autotoggle.samsite

For players with this permission, deploying a sam site will automatically power it on.

turretloadouts.manage

Allows the player to use tl, tl help|list, and tl <loadout name>.

turretloadouts.manage.custom

Allows the player to manage custom loadouts using tl save|update|rename|delete, according to their allowed loadout ruleset. Also allows the commands from the turretloadouts.manage permission.

turretloadouts.default.<name>

Assigns the auto turret loadout with the specified name to the player, causing any auto turrets they deploy to be filled with that loadout.Default loadouts are defined in the plugin configuration under DefaultLoadouts. Each one generates a separate permission.Granting multiple default loadouts to a player will cause only the last one to apply, based on the order in the plugin configuration.After assigning a default loadout to a player, that loadout will automatically be active, unless the player has used the tl <loadout name> command to deactivate it or to activate a custom loadout. If you want to force players to use their default loadout always, simply do not give them the turretloadouts.manage or turretloadouts.manage.custom perimssions.Default loadouts ignore rulesets and ammo stack size limits.

Default loadouts are defined in the plugin configuration under DefaultLoadouts. Each one generates a separate permission.

Granting multiple default loadouts to a player will cause only the last one to apply, based on the order in the plugin configuration.

After assigning a default loadout to a player, that loadout will automatically be active, unless the player has used the tl <loadout name> command to deactivate it or to activate a custom loadout. If you want to force players to use their default loadout always, simply do not give them the turretloadouts.manage or turretloadouts.manage.custom perimssions.

Default loadouts ignore rulesets and ammo stack size limits.

This plugin does not allow players to define custom loadouts for sam sites, flame turrets and shotgun traps because the only thing worth customizing about them is the amount of ammo, and ammo is currently free with this plugin.

turretloadouts.samsite.default.<name>

Assigns the sam site loadout with the specified name to the player, causing any sam sites they deploy to have the configured ammo.Sam site loadouts are defined in the plugin configuration under DefaultSamSiteLoadouts. Each one generates a separate permission.Granting multiple default sam site loadouts to a player will cause only the last one to apply, based on the order in the plugin configuration.

turretloadouts.flameturret.default.<name>

Assigns the flame turret loadout with the specified name to the player, causing any flame turrets they deploy to have the configured ammo.Flame turret loadouts are defined in the plugin configuration under DefaultFlameTurretLoadouts. Each one generates a separate permission.Granting multiple default flame turret loadouts to a player will cause only the last one to apply, based on the order in the plugin configuration.

turretloadouts.shotguntrap.default.<name>

Assigns the shotgun trap loadout with the specified name to the player, causing any shotgun traps they deploy to have the configured ammo.Shotgun trap loadouts are defined in the plugin configuration under DefaultShotgunTrapLoadouts. Each one generates a separate permission.Granting multiple default shotgun trap loadouts to a player will cause only the last one to apply, based on the order in the plugin configuration.

Sam site loadouts are defined in the plugin configuration under DefaultSamSiteLoadouts. Each one generates a separate permission.

Granting multiple default sam site loadouts to a player will cause only the last one to apply, based on the order in the plugin configuration.

Flame turret loadouts are defined in the plugin configuration under DefaultFlameTurretLoadouts. Each one generates a separate permission.

Granting multiple default flame turret loadouts to a player will cause only the last one to apply, based on the order in the plugin configuration.

Shotgun trap loadouts are defined in the plugin configuration under DefaultShotgunTrapLoadouts. Each one generates a separate permission.

Granting multiple default shotgun trap loadouts to a player will cause only the last one to apply, based on the order in the plugin configuration.

turretloadouts.ruleset.<name>

Assigns the ruleset with the specified name to the player, determining which weapons, attachments, ammo types, and ammo quantity that they can save in custom loadouts.Rulesets are defined in the plugin configuration under LoadoutRulesets. Each one generates a separate permission.You must grant players a ruleset permission to allow them to save custom loadouts, in addition to granting the turretloadouts.manage.custom permission.Granting multiple rulesets to a player will cause only the last one to apply, based on the order in the plugin configuration.Updating rulesets or changing a player's ruleset will automatically adjust existing custom loadouts when the player uses them.

Rulesets are defined in the plugin configuration under LoadoutRulesets. Each one generates a separate permission.

You must grant players a ruleset permission to allow them to save custom loadouts, in addition to granting the turretloadouts.manage.custom permission.

Granting multiple rulesets to a player will cause only the last one to apply, based on the order in the plugin configuration.

Updating rulesets or changing a player's ruleset will automatically adjust existing custom loadouts when the player uses them.

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

指令说明

tl

Display your active turret loadout, including weapon, loaded ammo, attachments and reserve ammo.

tl help

Display help information about the commands you are allowed to use.

tl list

List your loadouts, including default and custom.

tl <loadout name>

Activate or deactivate the specified loadout. The active loadout applies when you deploy a turret. Having no active loadout will allow you to deploy a turret without adding any items to it.

tl save <name>

Save a custom loadout with the turret you are aiming at.

tl update <name>

Update an existing custom loadout with the turret you are aiming at.

tl rename <name> <new name>

Rename a custom loadout.

tl delete <name>

Delete a custom loadout.

配置说明

Default configuration:

{ "LockAutoFilledTurrets": false, "MaxLoadoutsPerPlayer": 10, "DefaultLoadouts": [ { "Name": "ak47", "Weapon": "rifle.ak", "Skin": 885146172, "Ammo": { "Name": "ammo.rifle", "Amount": 30 }, "ReserveAmmo": [ { "Name": "ammo.rifle", "Amount": 128 }, { "Name": "ammo.rifle", "Amount": 128 } ] }, { "Name": "m249", "Weapon": "lmg.m249", "Skin": 1831294069, "Attachments": [ "weapon.mod.lasersight", "weapon.mod.silencer" ], "Ammo": { "Name": "ammo.rifle.explosive", "Amount": 100 }, "ReserveAmmo": [ { "Name": "ammo.rifle.incendiary", "Amount": 128 }, { "Name": "ammo.rifle.hv", "Amount": 128 } ] } ], "LoadoutRulesets": [ { "Name": "onlypistols", "AllowedWeapons": [ "pistol.eoka", "pistol.m92", "pistol.nailgun", "pistol.python", "pistol.revolver", "pistol.semiauto", "pistol.water" ], "AllowedAmmo": { "ammo.pistol": 600, "ammo.pistol.hv": 400, "ammo.pistol.fire": 200 } }, { "Name": "norifles", "DisallowedWeapons": [ "rifle.ak", "rifle.bolt", "rifle.l96", "rifle.lr300", "rifle.m39", "rifle.semiauto", "lmg.m249" ] }, { "Name": "unlimited" } ], "DefaultSamSiteLoadouts": [ { "Name": "fullammo", "ReserveAmmo": [ { "Name": "ammo.rocket.sam", "Amount": 128 }, { "Name": "ammo.rocket.sam", "Amount": 128 }, { "Name": "ammo.rocket.sam", "Amount": 128 }, { "Name": "ammo.rocket.sam", "Amount": 128 }, { "Name": "ammo.rocket.sam", "Amount": 128 }, { "Name": "ammo.rocket.sam", "Amount": 128 } ] } ], "DefaultFlameTurretLoadouts": [ { "Name": "fullammo", "ReserveAmmo": [ { "Name": "lowgradefuel", "Amount": 500 } ] } ], "DefaultShotgunTrapLoadouts": [ { "Name": "fullammo", "ReserveAmmo": [ { "Name": "ammo.handmade.shell", "Amount": 128 }, { "Name": "ammo.handmade.shell", "Amount": 128 }, { "Name": "ammo.handmade.shell", "Amount": 128 }, { "Name": "ammo.handmade.shell", "Amount": 128 }, { "Name": "ammo.handmade.shell", "Amount": 128 }, { "Name": "ammo.handmade.shell", "Amount": 128 } ] } ] }

LockAutoFilledTurrets (true or false) -- While true, turrets that are automatically filled will be locked so that players cannot add or remove the weapon, attachments or ammo.Locked turrets will not drop items when destroyed or removed. Compatible with the Remover Tool plugin.Locked turrets can still be picked up.When a locked turret runs out of ammo, a player can power it down to automatically remove the turret's weapon and unlock its inventory. This allows the player to use the turret like normal (otherwise it would be useless).When a locked sam site, flame turret or shotgun trap runs out of ammo, it will have to be picked up and placed again. If this becomes an issue, simply set the ammo amounts to ridiculously high values so that they never run out.

MaxLoadoutsPerPlayer

The maximum number of custom loadouts that each player can have at once.

DefaultLoadouts

List of default loadouts for auto turrets.Name -- Name that will be used to automatically generate a permission of the format turretloadouts.default.<name>.Weapon -- Short name of the weapon item to add to the turret.Skin -- Numeric skin id that should be applied to the weapon. Exclude this option or set to 0 for the default skin.Peacekeeper (true or false) -- While true, the turret will be placed in peacekeeper mode.Attachments -- List of attachment item short names to add to the weapon.Ammo (Name, Amount) -- Ammo type (short name) and amount to load into the weapon initially. You can safely set this to higher than the weapon can hold and the weapon will not be given extra ammo.ReserveAmmo -- List of ammo types (short names) and amounts to add to the turret inventory.

LoadoutRulesets

List of rulesets that control which weapons, attachments and ammo players can save in their custom loadouts.Name -- Name that will be used to automatically generate a permission of the format turretloadouts.ruleset.<name>.AllowedWeapons -- List of weapon item short names to allow in custom loadouts. Overrides DisallowedWeapons.Exclude this option to allow all weapons or to use DisallowedWeapons instead.Setting to [] will allow no weapons (which is useless).DisallowedWeapons -- List of weapon item short names to disallow in custom loadouts. Ignored if AllowedWeapons is present.AllowedAttachments -- List of attachment item short names to allow in custom loadouts. Overrides DisallowedAttachments.Exclude this option to allow all attachments, or to use DisallowedAttachments instead.Setting to [] will allow no attachments.DisallowedAttachments -- List of attachment item short names to disallow in custom loadouts. Ignored if AllowedAttachments is present.AllowedAmmo -- Mapping of ammo item short names to total amounts to allow per custom loadout. This includes both the loaded ammo and reserve ammo. For example, if you allow 200 rifle ammo, a player may save a loadout with 30 ammo in the weapon and at most 170 in reserve.Exclude this option to allow unlimited ammo of all types.Setting to {} will allow no ammo.Setting an ammo type to -1 will allow unlimited ammo of that type.If this option is used, only the ammo types specified will be allowed. Unspecified ammo types will max at 0.

DefaultSamSiteLoadouts

List of default loadouts for sam sites. Each loadout has the following options.Name -- Name that will be used to automatically generate a permission of the format turretloadouts.samsite.default.<name>.ReserveAmmo -- List of ammo types (short names) and amounts to add to the sam site inventory.

DefaultFlameTurretLoadouts

List of default loadouts for flame turrets. Each loadout has the following options.Name -- Name that will be used to automatically generate a permission of the format turretloadouts.flameturret.default.<name>.ReserveAmmo -- List of ammo types (short names) and amounts to add to the flame turret inventory.

DefaultShotgunTrapLoadouts

List of default loadouts for shotgun traps.Name -- Name that will be used to automatically generate a permission of the format turretloadouts.shotguntrap.default.<name>.ReserveAmmo -- List of ammo types (short names) and amounts to add to the shotgun trap inventory.

Locked turrets will not drop items when destroyed or removed. Compatible with the Remover Tool plugin.

Locked turrets can still be picked up.

When a locked turret runs out of ammo, a player can power it down to automatically remove the turret's weapon and unlock its inventory. This allows the player to use the turret like normal (otherwise it would be useless).

When a locked sam site, flame turret or shotgun trap runs out of ammo, it will have to be picked up and placed again. If this becomes an issue, simply set the ammo amounts to ridiculously high values so that they never run out.

Name

Name that will be used to automatically generate a permission of the format turretloadouts.default.<name>.

Weapon

Short name of the weapon item to add to the turret.

Skin

Numeric skin id that should be applied to the weapon. Exclude this option or set to 0 for the default skin.

Peacekeeper (true or false) -- While true, the turret will be placed in peacekeeper mode.

Attachments

List of attachment item short names to add to the weapon.

Ammo (Name, Amount) -- Ammo type (short name) and amount to load into the weapon initially. You can safely set this to higher than the weapon can hold and the weapon will not be given extra ammo.

ReserveAmmo

List of ammo types (short names) and amounts to add to the turret inventory.

Name

Name that will be used to automatically generate a permission of the format turretloadouts.ruleset.<name>.

AllowedWeapons

List of weapon item short names to allow in custom loadouts. Overrides DisallowedWeapons.Exclude this option to allow all weapons or to use DisallowedWeapons instead.Setting to [] will allow no weapons (which is useless).

DisallowedWeapons

List of weapon item short names to disallow in custom loadouts. Ignored if AllowedWeapons is present.

AllowedAttachments

List of attachment item short names to allow in custom loadouts. Overrides DisallowedAttachments.Exclude this option to allow all attachments, or to use DisallowedAttachments instead.Setting to [] will allow no attachments.

DisallowedAttachments

List of attachment item short names to disallow in custom loadouts. Ignored if AllowedAttachments is present.

官方配置示例


{
  "LockAutoFilledTurrets": false,
  "MaxLoadoutsPerPlayer": 10,
  "DefaultLoadouts": [
    {
      "Name": "ak47",
      "Weapon": "rifle.ak",
      "Skin": 885146172,
      "Ammo": {
        "Name": "ammo.rifle",
        "Amount": 30
      },
      "ReserveAmmo": [
        {
          "Name": "ammo.rifle",
          "Amount": 128
        },
        {
          "Name": "ammo.rifle",
          "Amount": 128
        }
      ]
    },
    {
      "Name": "m249",
      "Weapon": "lmg.m249",
      "Skin": 1831294069,
      "Attachments": [
        "weapon.mod.lasersight",
        "weapon.mod.silencer"
      ],
      "Ammo": {
        "Name": "ammo.rifle.explosive",
        "Amount": 100
      },
      "ReserveAmmo": [
        {
          "Name": "ammo.rifle.incendiary",
          "Amount": 128
        },
        {
          "Name": "ammo.rifle.hv",
          "Amount": 128
        }
      ]
    }
  ],
  "LoadoutRulesets": [
    {
      "Name": "onlypistols",
      "AllowedWeapons": [
        "pistol.eoka",
        "pistol.m92",
        "pistol.nailgun",
        "pistol.python",
        "pistol.revolver",
        "pistol.semiauto",
        "pistol.water"
      ],
      "AllowedAmmo": {
        "ammo.pistol": 600,
        "ammo.pistol.hv": 400,
        "ammo.pistol.fire": 200
      }
    },
    {
      "Name": "norifles",
      "DisallowedWeapons": [
        "rifle.ak",
        "rifle.bolt",
        "rifle.l96",
        "rifle.lr300",
        "rifle.m39",
        "rifle.semiauto",
        "lmg.m249"
      ]
    },
    {
      "Name": "unlimited"
    }
  ],
  "DefaultSamSiteLoadouts": [
    {
      "Name": "fullammo",
      "ReserveAmmo": [
        {
          "Name": "ammo.rocket.sam",
          "Amount": 128
        },
        {
          "Name": "ammo.rocket.sam",
          "Amount": 128
        },
        {
          "Name": "ammo.rocket.sam",
          "Amount": 128
        },
        {
          "Name": "ammo.rocket.sam",
          "Amount": 128
        },
        {
          "Name": "ammo.rocket.sam",
          "Amount": 128
        },
        {
          "Name": "ammo.rocket.sam",
          "Amount": 128
        }
      ]
    }
  ],
  "DefaultFlameTurretLoadouts": [
    {
      "Name": "fullammo",
      "ReserveAmmo": [
        {
          "Name": "lowgradefuel",
          "Amount": 500
        }
      ]
    }
  ],
  "DefaultShotgunTrapLoadouts": [
    {
      "Name": "fullammo",
      "ReserveAmmo": [
        {
          "Name": "ammo.handmade.shell",
          "Amount": 128
        },
        {
          "Name": "ammo.handmade.shell",
          "Amount": 128
        },
        {
          "Name": "ammo.handmade.shell",
          "Amount": 128
        },
        {
          "Name": "ammo.handmade.shell",
          "Amount": 128
        },
        {
          "Name": "ammo.handmade.shell",
          "Amount": 128
        },
        {
          "Name": "ammo.handmade.shell",
          "Amount": 128
        }
      ]
    }
  ]
}

{
  "Name": "unlimited"
}

更新日志

最新版本: v1.2.0
最后版本发布: 2024-03-27
最后更新(条目): 2026-08-26

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

安装方法

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

使用前注意

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

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