Twin Barrel 1.2.5

What it does
Makes the double-barrel shotgun fire both barrels on one trigger pull. When a player with
twinbarrel.use fires with both shells loaded, the second shell is spent (the magazine drops to 0)
and every hit from that gun in the next 1.5 seconds has its damage multiplied, by 2 by default. This
applies to anything the pellets hit. With only one shell loaded the gun fires a normal shot. Reload
is the normal game reload. Players without the permission get the vanilla gun.
Admins (server admin flag or auth level 1 or higher) always count as permitted, and are granted
twinbarrel.admin and twinbarrel.use automatically when they connect.

Install
Drop plugins/TwinBarrel.cs into carbon/plugins (Carbon) or oxide/plugins (Oxide).

Commands
/twinbarrel - opens the staff panel: on/off switch and Save. Staff only (twinbarrel.admin or admin).
/twinbarrelkit - gives a double-barrel shotgun and 32 handmade shells for testing. twinbarrel.kit,
    twinbarrel.admin or admin.
twinbarrel.admin - console command used by the panel buttons. Needs an in-game staff player; it does
    nothing from the server console or RCON.

Permissions
twinbarrel.use - the twin shot.
twinbarrel.admin - the staff panel and the test kit.
twinbarrel.kit - the test kit only.

Config highlights
Config file: carbon/configs/TwinBarrel.json
Enabled = true - master switch. The panel switch changes it; press Save to write it to the file.
DamageMultiplier = 2.0 - damage scale on each hit of a twin shot, limited to 1 to 4.
HitWindowSeconds = 1.5 - how long after the trigger pull hits count as the twin shot (limited to 0.2
    to 5).
GrantDefaultGroupUse = false - true gives twinbarrel.use to the default group on load.
DebugLog = false - logs each twin shot and each boosted hit to the console.
PanelTitle = "TwinBarrel — Double Shot" - title shown on the staff panel.

Tested
Tested alone on Carbon 2.0.259.0 with Rust build 25454815 on 2026-09-28; runs without the rest of the MiX Server Pack.

Feedback
Questions, bugs and ideas: MixMods Discord, discord.gg/MZCdmvFrQ, message B1.

Licence
Free to run and change on your own servers. See LICENCE.txt.
