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

[CSGO/CSS/HL2] Attack Helicopters [v2.0 - Nov 17, 2019]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Stugger
Member
Join Date: Sep 2007
Plugin ID:
6787
Plugin Version:
2.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Spawn pilotable helicopters capabale of firing homing missiles
    Old 11-01-2019 , 10:40   [CSGO/CSS/HL2] Attack Helicopters [v2.0 - Nov 17, 2019]
    Reply With Quote #1

    Description:
    Using no external resources; this plugin simulates pilotable helicopters in-game equipped with rockets. If an enemy is within targeting distance and sight of the helicopter; rockets will become homing missiles when fired and follow the targeted player until collision with target or solid. If a missile is not homing, they will fire straight until collision with solid or max distance has been reached, and explode. This is pieced together with various entities so it is not perfect, but it can be pretty fun.

    For CS:GO players, you may be more interested in my Attack Drones plugin instead.

    Demo Video v2.0 CS:GO/CS:S

    Demo Video v1.5
    Spoiler


    General Notes:
    • Supported Games: CS:GO, CS:S, HL2DM
    • I would not recommend spawning/using too many at once. The spawn limit is set to 8.
    • The admin flag for use is set to ADMFLAG_CHEATS

    Use Notes:
    • Missiles by default will fire straight ahead, if an enemy is in sight, it will become a homing missile and follow the target (if enabled).
    • You are forced out of the helicopter at round/map end to avoid crash, so you may die from falling.
    • Changing server gravity may affect the flying physics.

    Commands:
    Code:
    • sm_helicopter > Spawn a pilotable helicopter where you are looking. > Press E (use) on the helicopter to enter. > Press E (use) to exit.
    ConVars:
    Code:
    • sm_helicopter_missile_interval > Controls the wait time between firing missiles. Default is 1.2 seconds _____________
    • sm_helicopter_missile_damage > Controls the damage dealt by all missiles. Default is 55
    • sm_helicopter_missile_speed > Controls the travel speed of all missiles. Default is 1100 > NOTE: The faster the missile, the sooner it explodes when approaching target _____________
    • sm_helicopter_missile_distance > Controls the max distance for regular missiles before self detonation. Default is 8000.0 _____________
    • sm_helicopter_homing_enabled > Enable or Disable the use of homing missiles on all helicopters. Default is enabled
    • sm_helicopter_homing_distance > Controls the max distance an enemy can be to be targeted by homing missiles. Default is 4000.0
    CONTROLS WHILE FLYING:
    Code:
    • [SPACE] (Jump) - Move Upwards
    • [CTRL] (Duck) - Move Downwards
    • [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
    Installation:
    • 1. Tap on "Get Plugin" below
    • 2. Put the downloaded file Helicopters.smx in your servers plugins folder: SERVER/GAME/addons/sourcemod/plugins/
    • (optional) Put the source file Helicopters.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 (Helicopters.sp - 1576 views - 53.2 KB)

    Last edited by Stugger; 11-23-2019 at 22:37. Reason: v2.0 - homing missiles
    Stugger is offline
    Bara
    AlliedModders Donor
    Join Date: Apr 2012
    Location: Germany
    Old 11-01-2019 , 13:19   Re: [HL2DM/CSS] Pilotable Helicopters [v1.0 - Nov 1, 2019]
    Reply With Quote #2

    Works "fine" in CSGO, you just need a new model (maybe the drone from danger zone?).
    __________________
    Discord (Bara#5006) | My Plugins (GitHub)
    You like my work? Support is not a crime.

    Last edited by Bara; 11-01-2019 at 13:34.
    Bara is offline
    Stugger
    Member
    Join Date: Sep 2007
    Old 11-01-2019 , 14:15   Re: [HL2DM/CSS] Pilotable Helicopters [v1.0 - Nov 1, 2019]
    Reply With Quote #3

    Quote:
    Originally Posted by Bara View Post
    Works "fine" in CSGO, you just need a new model (maybe the drone from danger zone?).
    Do you have it on a server that I could check out? I may be able to adjust it for CS:GO, also I don’t know of any model paths for CS:GO other than the few shared with CS:S
    Stugger is offline
    8guawong
    AlliedModders Donor
    Join Date: Dec 2013
    Location: BlackMarke7
    Old 11-02-2019 , 09:11   Re: [HL2DM/CSS] Pilotable Helicopters [v1.0 - Nov 1, 2019]
    Reply With Quote #4

    just in case you didn't know... csgo is free to play now
    __________________
    8guawong is offline
    andi67
    Veteran Member
    Join Date: Mar 2007
    Location: Somewhere near you!!!
    Old 11-02-2019 , 15:03   Re: [HL2DM/CSS] Pilotable Helicopters [v1.0 - Nov 1, 2019]
    Reply With Quote #5

    In CSGO there is a helimodel , path is :

    "models/props_vehicles/helicopter_rescue.mdl"

    for the rotor do:

    SetVariantString("fly_generic");
    AcceptEntityInput(ent , "SetAnimation", -1, -1, 0);
    __________________
    Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
    >>You need Models for DODS/CSS/CSGO , than click here!!!<<

    Last edited by andi67; 11-02-2019 at 15:53.
    andi67 is offline
    Bara
    AlliedModders Donor
    Join Date: Apr 2012
    Location: Germany
    Old 11-02-2019 , 15:55   Re: [HL2DM/CSS] Pilotable Helicopters [v1.0 - Nov 1, 2019]
    Reply With Quote #6

    Interesting, but Rescue Helicopter is pretty big :/
    __________________
    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-03-2019 , 02:22   Re: [HL2DM/CSS] Pilotable Helicopters [v1.0 - Nov 1, 2019]
    Reply With Quote #7

    Quote:
    Originally Posted by 8guawong View Post
    just in case you didn't know... csgo is free to play now
    I know, but I can’t run the CSGO SRCDS server for some reason..


    Quote:
    Originally Posted by andi67 View Post
    In CSGO there is a helimodel , path is :

    "models/props_vehicles/helicopter_rescue.mdl"

    for the rotor do:

    SetVariantString("fly_generic");
    AcceptEntityInput(ent , "SetAnimation", -1, -1, 0);
    Thanks, I incorporated the CSGO models and sounds in v1.5 that I’ll be releasing soon, but I can’t test it so I won’t know if everything works right.

    Quote:
    Originally Posted by Bara View Post
    Interesting, but Rescue Helicopter is pretty big :/
    The physics model is separate from the visual (prop_dynamic) model, you can set the physics model to something proportionate and smaller than the helicopter, and set the visual model as the helicopter with a smaller scale to fit the physics model. You’d most likely have to adjust the thrusters and play around with different physics models to get a nice fit though. This is the stuff I would do if I could test this in CSGO.
    Stugger is offline
    Stugger
    Member
    Join Date: Sep 2007
    Old 11-03-2019 , 17:54   Re: [HL2DM/CSS] Attack Helicopters [v1.3 - Nov 3, 2019]
    Reply With Quote #8

    Quote:
    Originally Posted by Stugger View Post
    • V1.3 (November 3, 2019)
      • Simulated missiles in all games.
      • Targeting missiles.
      • Attempted to include CS:GO compatibility.
      • Added more sounds and adjusted animations.
      • Improved flying physics (Some leniency in rotation/banking).
      • Cleaned code.
    Stugger is offline
    Stugger
    Member
    Join Date: Sep 2007
    Old 11-08-2019 , 19:34   Re: [CSGO/HL2] Attack Helicopters [v1.5 - Nov 8, 2019]
    Reply With Quote #9

    Quote:
    Originally Posted by Stugger View Post
    • V1.5 (November 8, 2019)
      • Full CS:GO Support
      • Fixed-rotation thirdperson mode while flying.
      • Rocket trails are now team-colored.
      • Some tuning to the missile system and flying physics.
      • Ironed out a couple bugs.
    Stugger is offline
    zrayz
    Junior Member
    Join Date: Nov 2011
    Location: Russia
    Old 11-10-2019 , 08:06   Re: [CSGO/HL2] Attack Helicopters [v1.5 - Nov 8, 2019]
    Reply With Quote #10

    Cool plugin. Can you made Homing type for missiles? https://forums.alliedmods.net/showthread.php?t=108964 - this plugin have fun missiles which very difficult to evade.
    __________________

    zrayz is offline
    Reply


    Thread Tools
    Display Modes

    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 08:56.


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