Raised This Month: $51 Target: $400
 12% 

[CSGO] Attack Drones [v1.2 - Nov 23, 2019]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Stugger
Member
Join Date: Sep 2007
Plugin ID:
6817
Plugin Version:
1.2
Plugin Category:
Admin Commands
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Pilot drones armed with miniature missiles capable of homing in on enemies
    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 - 1308 views - 52.3 KB)

    Last edited by Stugger; 11-25-2019 at 02:43. Reason: v1.2
    Stugger is offline
    Bara
    AlliedModders Donor
    Join Date: Apr 2012
    Location: Germany
    Old 11-23-2019 , 09:15   Re: [CSGO] Attack Drones [v1.0 - Nov 23, 2019]
    Reply With Quote #2

    Looks pretty nice.
    Natives (and maybe forwards on drone join/leave) would be nice for this, then we could use this in other plugins like TTT.
    __________________
    Discord (Bara#5006) | My Plugins (GitHub)
    You like my work? Support is not a crime.
    Bara is offline
    Stugger
    Member
    Join Date: Sep 2007
    Old 11-23-2019 , 16:45   Re: [CSGO] Attack Drones [v1.0 - Nov 23, 2019]
    Reply With Quote #3

    Quote:
    Originally Posted by Stugger View Post
    • V1.2 (November 23, 2019)
      • Added self destruct convar (enable/disable self-destruct on exit)
      • Some attempts to remedy invisible enemy glitch
      • Adjusted thrusters for more accurate movement and fixed a turning bug
    Quote:
    Originally Posted by Bara View Post
    Looks pretty nice.
    Natives (and maybe forwards on drone join/leave) would be nice for this, then we could use this in other plugins like TTT.
    I will have to look into that! I really don't know anything about natives or much about sourcepawn in general really.

    Last edited by Stugger; 11-25-2019 at 02:43.
    Stugger is offline
    Bara
    AlliedModders Donor
    Join Date: Apr 2012
    Location: Germany
    Old 11-23-2019 , 17:11   Re: [CSGO] Attack Drones [v1.0 - Nov 23, 2019]
    Reply With Quote #4

    Quote:
    Originally Posted by Stugger View Post
    I will have to look into that! I really don't know anything about natives or much about sourcepawn in general really.
    I could help you with it, feel free to contact me on Discord (Bara#5006).
    __________________
    Discord (Bara#5006) | My Plugins (GitHub)
    You like my work? Support is not a crime.
    Bara is offline
    Stugger
    Member
    Join Date: Sep 2007
    Old 12-18-2019 , 01:19   Re: [CSGO] Attack Drones [v1.0 - Nov 23, 2019]
    Reply With Quote #5

    Quote:
    Originally Posted by Bara View Post
    I could help you with it, feel free to contact me on Discord (Bara#5006).
    Hey sorry, been busy lately and I no longer have a CSGO server to test on, I appreciate it though!

    So I guess as a message to everyone I most likely won’t be updating this any further for the foreseeable future!
    Stugger is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 01-13-2021 , 12:46   Re: [CSGO] Attack Drones [v1.2 - Nov 23, 2019]
    Reply With Quote #6

    Added check for Zombie:Reloaded Franug edition (zombies can't use drones).
    And some improvements for code.
    Attached Files
    File Type: sp Get Plugin or Get Source (Drones 1.2.1_zombiereloaded.sp - 284 views - 50.7 KB)
    __________________
    Grey83 is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 15:16.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode