Car spawner with added features

Supported Games

A minimised version of my Car Commander plugin.

Features

  • Automated car spawns via spawn file
  • Auto-spawn limits
  • Increased bullet damage to cars (about 1hp per bullet as opposed to the default of 0.005hp)
  • Explosion on death
  • Vehicle health UI
  • Water level detection to prevent players from dumping cars under water
  • Disable or restrict player held items whilst driving a car
  • Permissions to drive spawned cars

Permissions

  • carcommanderlite.admin - Required to use the "clearcars" command and overrides all other permissions
  • carcommanderlite.use - Required to drive spawned vehicles
  • carcommanderlite.canspawn - Required to use the chat spawner

Chat Commands

  • /spawncar <opt:save> - Spawns a car infront of the user with the optional argument <save> to save the car through restarts
  • /clearcars - Removes all saved cars

Console Commands

  • spawncar <player ID> <opt:save> - Spawns a car infront of the target player with the optional argument <save> to save the car through restarts
  • spawncar <x> <y> <z> <opt:save> - Spawns a car at the specified co-ordinates with the optional argument <save> to save the car through restarts
  • clearcars - Removes all saved cars

NOTE: Unsaved cars will not persist through restarts!

Configuration

{
  "Active Item Options": {
    "Disable all held items": true,
    "List of disallowed held items (item shortnames)": [
      "explosive.timed",
      "rocket.launcher",
      "surveycharge",
      "explosive.satchel"
    ]
  },
  "Spawnable Options": {
    "Enable automatic vehicle spawning": true,
    "Maximum spawned vehicles at any time": 5,
    "Spawnfile name": "",
    "Time between autospawns (seconds)": 1800
  },
  "UI Options": {
    "Health settings": {
      "Background alpha": 0.05,
      "Background color (hex)": "#F2F2F2",
      "Display to player": true,
      "Position - X maximum": 0.83,
      "Position - X minimum": 0.69,
      "Position - Y maximum": 0.135,
      "Position - Y minimum": 0.1,
      "Status alpha": 0.6,
      "Status color (hex)": "#ce422b"
    }
  }
}

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.