ProtectiveVest
ProtectiveVest ProtectiveVest

1.99 EUR

Checkout
ProtectiveVest

Project details

Project: ProtectiveVest
dev language: c# oxide
Plugin language: en (incl. de, fr, es, it, tr, ru, uk)
Author: @RustFlash


Description

ProtectiveVest adds consumable vests that players activate from their hotbar via a hold-to-equip action.
After a successful equip, 1 vest is consumed and the player gains temporary bonus max HP (and is healed up to that new max).

The effect lasts until death. Optionally, you can configure the vest to be consumed/removed once health drops below a threshold, so players can activate another vest again.


Features

  • Hold-to-equip from hotbar (no chat commands)
  • Consumes 1 item on successful activation
  • Adds bonus max health and heals up to the new max immediately
  • Optional auto reset below HP (removes the active vest once HP drops below a configured threshold)
  • Built-in equip progress UI with multiple styles
  • One active vest at a time (no stacking)

Commands

  • No commands.

Permissions

  1. protectivevest.use — Allows using protective vests.

How it works (Player flow)

  1. Put a configured vest item into your belt/hotbar.
  2. Select it as your active item.
  3. Hold the USE key until equip completes. Releasing USE cancels.
  4. When completed, 1 item is consumed and the vest bonus is applied.

Equip cancellation rules (important)

Equip will cancel if the player:

  • releases USE
  • switches active item / changes away from the vest item
  • moves the item out of the belt
  • changes the item (UID/skin/shortname mismatch) while holding

Configuration

The plugin defines multiple vest entries by ItemShortName + SkinID.

Example config

{
  "UI": {
    "Style": "HorizontalBar",
    "Enabled": true,
    "UpdateIntervalSeconds": 0.10,
    "BackgroundAlpha": 0.65,
    "BarAlpha": 0.90
  },
  "Vests": [
    {
      "Name": "Aramid Armor Vest",
      "ItemShortName": "wood.armor.jacket",
      "SkinID": 3643174653,
      "BonusHealth": 50.0,
      "EquipDurationSeconds": 5.0
    }
  ],
  "AutoResetBelowHealth": 100.0,
  "ActiveVestsCheckIntervalSeconds": 0.75
}

UI

Settings

  • UI.Enabled
    Enable/disable the equip progress UI (equip still works when disabled).

  • UI.Style
    UI style name. Valid values are:

    • HorizontalBar
    • CircularProgress
    • MinimalCorner
    • LargeCenter

    If an invalid style is set, it falls back to HorizontalBar.

  • UI.UpdateIntervalSeconds
    How often the UI updates while holding USE. (Minimum is enforced internally.)

  • UI.BackgroundAlpha / UI.BarAlpha
    Opacity values (0–1).

UI styles (names + what they look like)

UI.Style Placement (rough) What it shows
HorizontalBar Bottom-center Label + filling progress bar
CircularProgress Center Percentage + circular segments
MinimalCorner Top-right Compact label + thin bar
LargeCenter Center Larger panel, label + bar + percent

Internal UI element names (for devs / debugging)

If you want to reference or debug the CUI elements, the plugin uses these fixed IDs:

  • UI root: ProtectiveVest.UI
  • Bar container: ProtectiveVest.UI.Bar

Vests

Each vest entry supports:

  • Name — Display name in messages/UI
  • ItemShortName — Rust item shortname
  • SkinID — Skin ID to identify a specific skinned item
  • BonusHealth — Bonus max HP granted on activation
  • EquipDurationSeconds — Time (seconds) required to hold USE to equip

Notes:

  • BonusHealth and EquipDurationSeconds are clamped internally to prevent broken values.

Auto reset (optional: “remove vest when low HP”)

  • AutoResetBelowHealth
    If <= 0, this feature is disabled.
    If > 0, the plugin periodically checks active vest users and removes the active vest when their HP drops below the threshold.

  • ActiveVestsCheckIntervalSeconds
    How often the plugin checks active vests (only used if AutoResetBelowHealth > 0).


Localization

Built-in translations are included for:

  • en (default)
  • de
  • fr
  • es
  • it
  • tr
  • ru
  • uk

Notes / FAQ

Why can’t I wear the vest like normal armor?

Configured vest items are blocked from being worn. They’re meant to be consumed from the hotbar.

Can players stack multiple vests?

No. Only one vest can be active at a time.

When does the effect end?

  • On death (and it is cleared on respawn/disconnect).
  • Optionally earlier if AutoResetBelowHealth is enabled and HP drops below the configured threshold.

load, run, enjoy 💝