Oxide Sync is live: your plugins install and update themselves →
Turret No Power Toggle cover art
FeaturedGameplay

Turret No Power Toggle

by Base Inspector · v3.1.1 · updated Nov 8, 2026

Permitted players can toggle their own auto turrets on/off without electricity using /turret (requires TC auth + owner).

No dependencies: works on its own.

$10 · single server

Buy now · $10

Installs itself with Oxide Sync. Pick your servers at checkout and it's live within a minute. Every future update included. How it works

  • Full C# source
  • Free updates
  • Signed releases
  • Oxide / uMod compatible

TurretNoPowerToggle (v3.1.1)

Overview

TurretNoPowerToggle allows permitted players to toggle their own Auto Turrets ON or OFF without requiring electricity.

The plugin enforces: - Turret ownership - Tool Cupboard (TC) authorization - Optional raid block and combat block restrictions (NoEscape) - Performance-optimized entity handling


Features

  • Toggle turret without wiring
  • /turret command with on/off/toggle modes
  • Optional NoEscape integration
  • Deployed-layer-only raycast (performance optimized)
  • Typed entity hook (AutoTurret only)
  • Automatic cleanup on turret destruction
  • No reflection or heavy processing

Requirements

  • Oxide/uMod for Rust
  • Optional: NoEscape (for raid/combat block support)

Permission

Permission Description


turretnopowertoggle.use Allows use of the /turret command

Grant permission:

oxide.grant user <name_or_steamid> turretnopowertoggle.use
oxide.grant group <group> turretnopowertoggle.use

Commands

Command Description


/turret Toggle the turret you're looking at /turret on Force turret ON /turret off Force turret OFF /turret toggle Toggle current state /turret help Display help message

Command Requirements

  • Must look directly at an Auto Turret
  • Must be within configured distance (default: 4m)
  • Must own the turret
  • Must have TC authorization
  • Must not be raid-blocked or combat-blocked (if enabled)

Configuration

Default config:

{
  "MaxUseDistance": 4.0,
  "VirtualPowerAmount": 10,
  "BlockOnRaidBlock": true,
  "BlockOnCombatBlock": true
}

Config Settings

Setting Description


MaxUseDistance Maximum raycast distance VirtualPowerAmount Simulated input power fed to turret BlockOnRaidBlock Prevent toggle during raid block BlockOnCombatBlock Prevent toggle during combat block


How It Works

When forced ON:

turret.UpdateFromInput(VirtualPowerAmount, 0);

When forced OFF:

turret.UpdateFromInput(0, 0);

The plugin tracks forced turrets using:

HashSet<ulong> _forcedOn

Keyed by:

turret.net.ID.Value

Cleanup occurs automatically in:

OnEntityKill(AutoTurret turret)

Performance Notes

  • Typed hook: OnEntityKill(AutoTurret turret)
  • Deployed layer-only raycast
  • O(1) HashSet lookups
  • No timers
  • No scanning loops
  • No Update processing

Safe for high-population servers.


Troubleshooting

If turret does not toggle:

  • Check permission
  • Confirm ownership
  • Confirm TC auth
  • Confirm not raid/combat blocked
  • Ensure within distance
  • Ensure looking directly at turret

Version History

3.1.1

  • Fixed ulong compile issue
  • Verified performance optimizations
  • Documentation updated

Author

Base Inspector

You may also like