Drive tanks, shoot stuff

Supported Games
GameServerKingsGameServerKings

This plugin is incompatible with Bradley Control!

If you have BradleyControl installed all tanks spawned via this plugin with be moved by BradleyControl to another location

At this stage this is more of a admin toy than anything practical

Collision Destruction

Weapon Systems

Permissions

  • tankcommander.use - Required to drive a tank
  • tankcommander.admin - Required to spawn a tank

Chat Commands

  • /spawntank - Spawn a tank

Console Commands

Console commands are mostly to use as a command purchase in GUI Shop or ServerRewards.

  • spawntank <playerID> - Spawn a tank on the specified players location
  • spawntank <x> <y> <z> - Spawn a tank at the specified location

Usage

Entering and exiting tank

Once you spawn a tank stand next to it and press the USE key. You can exit it at any time by pressing the same button.

Passengers

If a tank has a operator other players can enter as a passenger by walking up along side it and pressing the USE key.

There is a hard limit of 4 passengers (plus driver) per tank

There are a few options regarding this in the config, such as FriendsAPI/Clans support, Maximum passengers and a option to disable this system.

Inventory

While there is no operator in a tank you can access it's inventory by standing next to it and pressing the RELOAD key. This will be used for planned features in the future.

You can adjust the size of the inventory in the config.

Configuration

Configuration Options

Button Configuration - These are buttons you can set for various functions. More functions will be added in the future such as firing weapons etc.

Available button types to use here are: JUMP, DUCK, SPRINT, USE, FIRE_PRIMARY, FIRE_SECONDARY, RELOAD, FIRE_THIRD

Crushable Types - Various entity types you can kill by running them over with the tank

Crushable Force - The amount of impact force between the tank and the object you are trying to crush to destroy it

Default Configuration

{
  "Movement Settings": {
    "Forward torque (nm)": 1500.0,
    "Rotation torque (nm)": 1800.0,
    "Brake torque (nm)": 50.0,
    "Time to reach maximum acceleration (seconds)": 3.0,
    "Boost torque (nm)": 300.0
  },
  "Button Configuration": {
    "Enter/Exit vehicle": "USE",
    "Toggle light": "RELOAD",
    "Open inventory": "RELOAD",
    "Speed boost": "SPRINT",
    "Fire Cannon": "FIRE_PRIMARY",
    "Fire Coaxial Gun": "FIRE_SECONDARY",
    "Fire MG": "FIRE_THIRD"
  },
  "Crushable Types": {
    "Can crush buildings": true,
    "Can crush resources": true,
    "Can crush loot containers": true,
    "Can crush animals": true,
    "Can crush players": true,
    "Amount of force required to crush various building grades": {
      "Twigs": 1000.0,
      "Wood": 2000.0,
      "Stone": 3000.0,
      "Metal": 5000.0,
      "TopTier": 7000.0
    },
    "Amount of force required to crush external walls": 3000.0,
    "Amount of force required to crush resources": 1500.0
  },
  "Passenger Options": {
    "Allow passengers": true,
    "Number of allowed passengers (Max 4)": 4,
    "Require passenger to be a friend (FriendsAPI)": true,
    "Require passenger to be a clan mate (Clans)": true
  },
  "Inventory Options": {
    "Enable inventory system": true,
    "Drop inventory on death": true,
    "Drop loot on death": false,
    "Inventory size (max 36)": 36
  },
  "Weapon Options": {
    "Cannon": {
      "Enable weapon system": true,
      "Require ammunition in inventory": false,
      "Ammunition type (item shortname)": "ammo.rocket.hv",
      "Fire rate (seconds)": 1.75,
      "Aim cone (smaller number is more accurate)": 0.025,
      "Damage": 90.0
    },
    "Coaxial": {
      "Enable weapon system": true,
      "Require ammunition in inventory": false,
      "Ammunition type (item shortname)": "ammo.rifle.hv",
      "Fire rate (seconds)": 0.06667,
      "Aim cone (smaller number is more accurate)": 0.75,
      "Damage": 10.0
    },
    "Machine Gun": {
      "Enable weapon system": true,
      "Require ammunition in inventory": false,
      "Ammunition type (item shortname)": "ammo.rifle.hv",
      "Fire rate (seconds)": 0.1,
      "Aim cone (smaller number is more accurate)": 1.25,
      "Damage": 10.0
    }
  },
  "Version": {
    "Major": 0,
    "Minor": 2,
    "Patch": 0
  }
}

MIT License


Copyright (c) 2019 k1lly0u


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.