View Single Post
Author Message
Stugger
Member
Join Date: Sep 2007
Old 11-23-2019 , 05:14   [CSGO] Attack Drones [v1.2 - Nov 23, 2019]
Reply With Quote #1

Description:
This plugin simulates pilot-able dangerzone drones equipped with mini-rockets capable of homing in on enemies within sight; or simply firing towards your crosshairs and exploding on collision or max distance. Admins with the appropriate access can put themselves or other players in a drone of their own. Settings such as disabling homing missiles, changing their speed/damage/interval ..etc can be changed via convars. This is pieced together with various entities so it is not perfect, but it can be pretty fun. This is mostly ripped from my [CS:GO/CS:S/HL2DM] Attack Helicopters plugin, which CS:S and HL2DM players can check out.

Demo Video v1.0:


General Notes:
  • The only supported game is CS:GO
    ------
  • I would not recommend using too many at once. The use limit is set to 12 drones at a time.
  • The admin flag for use is set to ADMFLAG_CHEATS
    ------
  • BUG: For some reason, occasionally some enemy player models will become invisible, they cannot be seen but are still target-able. I couldn't figure out what causes this, I can't tell if it's just a bug with my own game or with bots, but I will continue to try and fix it.

Use Notes:
  • Missiles by default will fire straight towards your crosshairs, if an enemy is in sight of the drone, it will become a homing missile and follow the target (if homing missiles enabled and enemy within homing distance).
  • Any time you exit a drone, the drone will self-destruct, leaving gibs and inflicting damage on nearby enemies, unless disabled via convar.
    ------
  • Unfortunately your radar will be of no use while in a drone.
  • Currently, drones do not take damage and only explode when they are being exited.
  • Changing server gravity may affect the flying physics.

Commands:
Code:
  • sm_drone > OPTIONAL: Add a users name as an argument to put them in a drone instead of yourself. Example: sm_drone someusername12 > Players will be put in a drone at the location they are at. When exiting a drone, you will return to that same location. > Type this command a second time to be teleported back to your activation location in a new drone. > Press E (use) to exit, this will also detonate the drone unless self-destruct is disabled.
ConVars:
Code:
  • sm_drone_self_destruct > Enable or disable drone self-destruct on exit. Default is Enabled
  • sm_drone_turn_force > Controls the force at which the drone will turn left and right with mouse1 and mouse2 buttons. Default is 200 _____________
  • sm_drone_missile_interval > Controls the wait time between firing missiles. Default is 0.7 seconds > Effects regular and homing missiles
  • sm_drone_missile_speed > Controls the travel speed of all missiles. Default is 900 > NOTE: The faster the missile, the sooner(farther away) it explodes when approaching target, this is a bug with one of the entities.
  • sm_drone_missile_damage > Controls the damage dealt by all missiles. Default is 47
  • sm_drone_missile_radius > Controls the explosion damage radius of all missiles. Default is 275 _____________
  • sm_drone_missile_distance > Controls the max distance for regular missiles before self detonation. Default is 5000.0 _____________
  • sm_drone_homing_enabled > Enable or Disable the use of homing missiles on all drones Default is enabled
  • sm_drone_homing_distance > Controls the max distance an enemy can be to be targeted by homing missiles. Default is 2500.0
Controls While Flying:
Code:
  • [SHIFT] (Speed) - Change Camera View
  • [SPACE] (Jump) - Move Upward
  • [CTRL] (Duck) - Move Downward
  • [W] (Forward) - Move Forward
  • [S] (Backward) - Move Backward
  • [A] (Left) - Move Left
  • [D] (Right) - Move Right
  • [MOUSE1] (Primary) - Turn Left
  • [MOUSE2] (Secondary) - Turn Right
  • [R] (Reload) - Fire Missiles
  • [MOUSE1]+[MOUSE2] - Same as Reload - Fire Missiles
My Keybind Setup:
Code:
  • I keep one hand on WASD keys and the other on my arrow keys. This setup makes controlling the drone more accurate, in my opinion anyway.
  • [LEFTARROW] : +Attack (Turn Left)
  • [RIGHTARROW] : +Attack2 (Turn Right)
  • [UPARROW] : +Reload (Fire Missiles)
  • [DOWNARROW] : +Speed (Switch View)
Installation:
  • 1. Tap on "Get Plugin" below
  • 2. Put the downloaded file Drones.smx in your servers plugins folder: SERVER/GAME/addons/sourcemod/plugins/
  • (optional) Put the source file Drones.sp in your servers scripting folder: SERVER/GAME/addons/sourcemod/scripting/

Todo:
Spoiler


CHANGELOG:
Spoiler
Attached Files
File Type: sp Get Plugin or Get Source (Drones.sp - 1323 views - 52.3 KB)

Last edited by Stugger; 11-25-2019 at 02:43. Reason: v1.2
Stugger is offline