WhiteThunder
Allows RC drones to hover in place when a player disconnects control at a computer station

Supported Games
GameServerKingsGameServerKings

Features

  • Allows RC drones to automatically hover in place when a player (who has permission) disconnects control at a computer station.
  • Does not apply if the drone is on the ground when the player disconnects control.

Without this plugin, RC drones will fall to the ground when the controlling player disconnects from the computer station.

Permissions

  • dronehover.use -- When a player has this permission, disconnecting from a drone at a computer station will cause that drone to hover in place.

Recommended compatible plugins

Drone balance:

  • Drone Settings -- Allows changing speed, toughness and other properties of RC drones.
  • Targetable Drones -- Allows RC drones to be targeted by Auto Turrets and SAM Sites.
  • Limited Drone Range -- Limits how far RC drones can be controlled from computer stations.

Drone fixes and improvements:

  • Better Drone Collision -- Overhauls RC drone collision damage so it's more intuitive.
  • Auto Flip Drones -- Auto flips upside-down RC drones when a player takes control.
  • Drone Hover (This plugin) -- Allows RC drones to hover in place while not being controlled.

Drone attachments:

  • Drone Lights -- Adds controllable search lights to RC drones.
  • Drone Turrets -- Allows players to deploy auto turrets to RC drones.
  • Drone Storage -- Allows players to deploy a small stash to RC drones.
  • Ridable Drones -- Allows players to ride RC drones by standing on them or mounting a chair.

Developer Hooks

OnDroneHoverStart

object OnDroneHoverStart(Drone drone, BasePlayer optionalPilot)
  • Called when a drone is about to start hovering
  • Returning false will prevent the drone from hovering
  • Returning null will result in the default behavior
  • The BasePlayer argument will be null if the drone is resuming hovering after a server restart

OnDroneHoverStarted

void OnDroneHoverStarted(Drone drone, BasePlayer optionalPilot)
  • Called after a drone has started hovering
  • No return behavior
  • The BasePlayer argument will be null if the drone resumed hovering after a server restart
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.