Calytic
Allows customizing and configuring the way turrets work

Supported Games
GameServerKingsGameServerKings

Turret Config allows you to configure the way turrets work, full option list below.

Features

  • Turret Health Options
  • Player Damage Modifier
  • Animal Override (disable attacking animals)
  • Animal Whitelist (disable attacking specific animals)
  • Admin override (adminOverride) - automatically adds admins to authorization list of turrets
  • Sleep override (sleepOverride) - avoid targeting sleeping players

Auto Turret Features

  • Bullet Damage Modifier
  • Accuracy (aimCone)
  • Targeting Distance (sightRange)
  • Speed of bullets (bulletSpeed)
  • Ammunition type and gun sound
  • Infinite ammunition for turrets (do not put ammunition in "infinite auto turrets", it is irrecoverable)

Flame Turret Features

  • Flame Damage Modifier
  • Arc (arc)
  • Trigger Duration (triggerDuration)
  • Flame Range (flameRange)
  • Flame Radius (flameRadius)
  • Fuel Used Per Second (fuelPerSec)

Permissions

  • turretconfig.default
    Aside from providing the ability to change default turret properties, TurretConfig also provides the ability to change turret properties for specific players or groups. A server owner may configure as many or as few custom turret options, and assign the configured permissions. turretconfig.default is included by default to demonstrate how to do this.

  • turretconfig.infiniteammo -- Gives turrets built by player infinite ammo

Console Commands

  • turrets.reload -- Apply configuration to all turrets

Configuration

Some options for the ammoType:

ammo.pistol
ammo.shotgun
ammo.rifle.hv
ammo.rifle.incendiary
ammo.rifle.explosive
ammo.pistol.hv
ammo.pistol.fire

Note: Multiple ammunition types are not supported. You may only choose one type.

FAQ

Why isn't the maximum health of the turret changing?

This is controlled client side, the maximum health is actually changing however it will not appear that way to the client. Currently there is no fix for this until Facepunch updates the network protocol to support it.

I changed the ammo type but the its not working right

Changing the ammunition type will only change the type of ammunition that the turret consumes and the firing sound. It will not change the firing animation or add any effects typically associated with other ammunition types (such as HV or explosive rounds)

Known Issues

  • Ammunition already in auto turrets or put into auto turrets is lost when infinite ammunition is enabled.

MIT License


Copyright (c) 2019 Calytic


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.