Version 2.0 of Custom Drones. Some of the information in this readme is outdated, I will be updating the information as I re-implement them into version 2.0. This version is now stable.
This rewrite completely changes everything about the codebase with several QoL changes. Setting up basic drones can now be done without any other plugins; weapons now have native functionality and do not need to be handled in sub-plugins anymore. A new WeaponType_Custom specification has been added to have weapons function as they did before.
Spawnable drones that can be piloted by players. Example HL2 Hunter Chopper config/plugin provided. Drone plugins are placed under plugins/drones/.
sm_drone- Opens a menu with all available drones
- Configuration files so you can make your own custom drones
- Create your own logic for drones through other plugins (example included)
- Define a model and destroyed model for each drone
- Set health, speed, and acceleration for each drone
- Set up to 4 weapons with individual parameters
- Support for AI controlled drones
- Choose how the drone operates:
- Flying
- Helo
- Hover
- Ground
- Flying drones move in the direction the camera is facing
- Cannot fly below specific speeds
- Use this movement for jet-like drones
- Hovering drones that can fly and move in any direction
- Movement input controls drone movement
- Use this movement for helicopters
- Hovering drones that stay at ground level
- Movement input controls drone movement
- Use this movement for hovercraft
- Drones utilize a
phys_thrusterfor movement
This plugin comes with several forwards and natives to use with other plugins. Refer to scripting/include/customdrones.inc for more detailed explanations.
FDroneStaticsstatic class for general drone natives- Weapons using
WeaponType_Customcan utilize these natives to provide custom functionality FireBulletsFires bullets from the given weaponFireRocketsFires rockets from the given weaponFireGrenadesFires grenades from the given weaponFireActiveWeaponFires the current active weapon controlled by the given seat
- Weapons using
CD2_OnDroneCreated- Called when a drone initially spawnsCD2_OnDroneDestroyed- Called when a drone is destroyedCD2_OnDroneRemoved- Called when a drone is removed from the world after being destroyedCD2_OnWeaponChanged- Called when a player cycles weapons on a droneCD2_OnWeaponFire- Called when a weapon on a drone is firedCD2_OnPlayerEnterDrone- Called when a player enters a droneCD2_OnPlayerExitDrone- Called when a player exits a drone
- Players may not properly die when the piloted drone is destroyed
- Using a kill bind while in a drone forces you to respawn
- Native support abilities (healing, ammo regeneration, etc)
- Multiple seats on drones for passengers and additional weapons