Allows players to loot auto turrets while powered

Supported Games
GameServerKingsGameServerKings

Features

  • Allows players to loot auto turrets while powered
  • Allows changing between Attack All and Peacekeeper mode as well
  • Requires the player to be authorized to the turret and not be building blocked
  • Does not allow authorizing, deauthorizing or rotating while powered
  • Ignores NPC turrets

Side effects

This plugin works by tricking clients into believing each auto turret is off, by setting a single flag client-side. This allows looting powered turrets, but results in several other side effects which unfortunately cannot be prevented. However, depending on the type of server, some of these could be considered bonus features.

  • The turret does not make a humming sound, but it still makes mechanical sounds as it rotates
  • The turret's red or green laser is turned off
    • This prevents players from seeing the turret around corners (or sometimes through doors or walls) unless it has a laser sight or flashlight attachment
    • This also prevents players from being able to visually determine whether the turret is in peacekeeper mode

Permissions

  • alwayslootableturrets.owner -- Turrets deployed by players with this permission can be looted while powered. Not required if the plugin is configured with RequireOwnerPermission set to false (default).

Configuration

Default configuration:

{
  "RequireOwnerPermission": false
}
  • RequireOwnerPermission (true or false) -- While true, only auto turrets deployed by players with the alwayslootableturrets.owner permission will be lootable while powered. While false, all auto turrets can be looted while powered.
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.