TurretRetaliation
Raiding v1.0.0

TurretRetaliation

by bmgjet · updated 2 hours ago · 2 downloads · ☆☆☆☆☆ no reviews

Turrets fight back when attacked no matter the distance.

# Turret Retaliation

Make auto turrets fight back over any range when attacked.

Turret Retaliation gives auto turrets the ability to immediately retaliate against players who attack them, even if the attacker is well outside the turret's normal detection range. The plugin temporarily extends the turret's range, improves its accuracy based on distance, and can prioritize the attacker before automatically restoring the turret's original settings.

Perfect for making offline raids and long-range turret sniping much more dangerous.

---

Features

  • 🎯 Turrets instantly retaliate when attacked.
  • 🌍 Works over any distance by dynamically extending turret range.
  • 🔥 Automatically improves turret accuracy for long-range engagements.
  • 👤 Can prioritize the attacker as the current target.
  • 🔄 Optionally rotates the turret directly toward the attacker.
  • ⏱ Automatically restores all original turret settings after a configurable delay.
  • 🛡 Can ignore authorized players and NPCs if desired.
  • ⚙ Fully configurable through the JSON configuration file.
---

How It Works

When a player damages an auto turret:

1. The turret detects the attacker.
2. Its detection range is temporarily increased to reach the attacker.
3. Accuracy is automatically adjusted based on distance.
4. The attacker can be forced to the top of the target list.
5. The turret immediately begins returning fire.
6. After the configured delay, every modified setting is restored back to normal.

The plugin safely restores the turret's original values, making it compatible with servers that modify turret range or accuracy through other plugins. :contentReference[oaicite:0]{index=0}

---

Configuration

{
  "How long before turret returns to non-retaliation (Sec).": 4,
  "How mch extra distance to add onto retailiation scan (Player distance + this).": 10,
  "Rotate to position of attacker.": true,
  "Attack any one that attacks turret (false = ignores npc and authed players).": true,
  "Prioritise attacker by moving them to first in target list.": true,
  "Distance to define as medium distance. (foundation size = 3)": 50,
  "Accuracy to use for medium distance AimCone. (4 = default, 2 = 2X as accurate)": 2.0,
  "Distance to define as long distance.": 100,
  "Accuracy to use for long distance AimCone. (1 = 4X as accurate)": 1.0,
  "Distance to define as faraway distance.": 150,
  "Accuracy to use for faraway distance AimCone. (0.5 = 8X as accurate)": 0.5
}

---

Configuration Options

| Option | Description |
|--------|-------------|
| Return Delay | Time before the turret returns to its normal behaviour. |
| Extra Distance | Additional range added beyond the attacker's distance to ensure they remain targetable. |
| Rotate To Attacker | Instantly points the turret toward the attacker. |
| Attack All | If disabled, ignores NPCs and authorized players. |
| Prioritise Attacker | Forces the attacker to become the turret's primary target. |
| Medium / Long / Far Distance | Distance thresholds used for dynamic accuracy adjustments. |
| AimCone Values | Controls how accurate the turret becomes at each distance. Lower values increase accuracy. |

---

Why Use Turret Retaliation?

Vanilla Rust allows players to safely harass turrets from outside their detection range. Turret Retaliation removes this exploit by ensuring that attacking a turret always has consequences.

Whether players are using bows, rifles, explosives, or other long-range weapons, they'll quickly discover that auto turrets can fight back.

---

Compatibility

  • ✔ Works with existing Auto Turrets.
  • ✔ Restores all modified values after retaliation.
  • ✔ Designed to coexist with plugins that modify turret settings.
  • ✔ No permissions required.
  • ✔ No commands required.
---

Support

If you encounter issues or have suggestions for new features, feel free to join the Discord server or open an issue.