+ Reply to Thread
Results 1 to 10 of 10

Thread: Gun Drone Suggestion

  1. #1
    Lurker keel75 is on a distinguished road keel75's Avatar
    Join Date
    Sep 2008
    Posts
    9

    Default Gun Drone Suggestion

    I was thinking, could someone make a drone that would follow you and shoot whatever you shoot? Not just shoot everything because that would be kind of evil on a server. It would just be cool to have a flying drone behind you, ready to assist when you attack. For example, the Tau Gun Drone from Warhammer 40K: Tau Gun Drone by AzArch - Google 3D Warehouse

    Can someone maybe just tell me how to make one? Like on a 1x1 PHX plate? Because then I could just make the drone's body myself and stick the phx plate in.
    This! Is! SPARTA!!!

  2. #2
    Official Bastard of Wire



    Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin's Avatar
    Join Date
    Aug 2008
    Location
    Colorado Springs
    Posts
    2,561

    Default Re: Gun Drone Suggestion



    I Require More Minions! Join us on the IRC and the /sekret/!
    List of Reasons to idle on the IRC: Wire QDB

  3. #3
    Wirererer dpidcoe will become famous soon enough dpidcoe's Avatar
    Join Date
    Apr 2008
    Location
    san diego
    Posts
    253

    Default Re: Gun Drone Suggestion

    Are you suggesting that someone script an entity to do this or asking for help building one? I doubt anyone would script one since the point of gmod is to build stuff like that.

    Assuming that you are asking for ideas on how to build one, my suggestion to you is that you grab someones thruster based mouse aimed turret, slap a vector thruster in the middle set to use XYZ world, and hook it up to an expression to point a vector to somewhere near a players head.

  4. #4
    Lurker keel75 is on a distinguished road keel75's Avatar
    Join Date
    Sep 2008
    Posts
    9

    Default Re: Gun Drone Suggestion

    Sorry I couldn't reply earlier. My computer broke but now it's fixed. Ok, well, I just am wondering if anyone could tell me how to build one. Not script. And I really don't know that much about wire so it would probably be easier if someone tells me each step and posts a few pictures maybe.
    This! Is! SPARTA!!!

  5. #5
    Wire Sofaking Bobsymalone will become famous soon enough Bobsymalone's Avatar
    Join Date
    Jul 2008
    Posts
    777

    Default Re: Gun Drone Suggestion

    Quote Originally Posted by keel75 View Post
    Sorry I couldn't reply earlier. My computer broke but now it's fixed. Ok, well, I just am wondering if anyone could tell me how to build one. Not script. And I really don't know that much about wire so it would probably be easier if someone tells me each step and posts a few pictures maybe.
    Drones can vary in complexity, I doubt you'll get a step-by-step on it. Learn how to stabalise things, learn how to make things aim, learn how to make things chase other things. A drone is an application of these things (and more).

  6. #6
    Wire Sofaking Officer Tibbles has a spectacular aura about Officer Tibbles has a spectacular aura about Officer Tibbles has a spectacular aura about Officer Tibbles's Avatar
    Join Date
    Aug 2008
    Location
    Barnus Philbert Boulevard
    Posts
    813

    Default Re: Gun Drone Suggestion

    Drones can vary in complexity, I doubt you'll get a step-by-step on it. Learn how to stabalise things, learn how to make things aim, learn how to make things chase other things. A drone is an application of these things (and more).
    You is Wrong.


    Okay I have drawded you an example of how one would look and included the expression 2 coding.

    Installation
    Go to your Expression folder, found in C:/ProgramFiles/Steam/Steamapps/YOURNAME/Garrysmod/Garrysmod/Data/Expression2
    And create a new text document (NOT RICH TEXT DOCUMENT) and name it appropriately. Copy and Paste the code into that Text File and click save!
    Now you have the expression!

    Introduction
    The first thing do deciding how to build a drone is how you are going to build it. Here you have a number of options.
    -Hover Ball
    -All Thruster Powered (Delta)
    -Vector Thruster

    For my example, I'm using Vector Thruster. Here's the code.

    Code:
    @name Vector Turret Proccessor
    @inputs Tf:entity On
    @outputs Vector:vector Dis Mul 
    interval(100)
    Pos = entity():pos()
    Vector = Pos - Tf:pos()
    Dis = Vector:length()
    if(On) {Mul=1000000000}
    


    Setup

    Tf:entity goes to Target Finder [ENTITY] Output.
    On goes to Numpad Input Toggle

    Vector:vector goes to a Vector Thruster [VECTOR] Input
    Mul goes the a Vector Thruster Mul Input


    Wire the standard thruster to whatever you want to control it going Forward / Backward. For example
    Wire a Greater Than Chip A to the Dis Output on the Expression 2 Chip, and Greater Than Chip B to a Constant Value of 50.
    So that way, if the distance from the drone to the target is Greater than that of 50, then it will turn the thruster on and propel the drone towards the target. But if the target is Less Than 50 units from the drone, then the thrust is nullified.

    Make sure that the Vector Thruster settings are XYZ World and it is Bi Directional

    Hit up the entire plate with Physical Property, Gravity Toggle box unchecked.

    Here is a Picasso style painting I made to guide you. (Its Attached)

    Another form is uses Hoverballs, this can be done by putting four Hoverballs in their respective corners. You would have a Beacon Sensor on the front outputting Bearing, and XYZ World.

    Here's an untested code that I've whipped together for you.

    Code:
    N@Tracker CPU
    I@Bearing Distance Target WorldZ PlateZ
    O@Thrust FThrust ZVel
    Thrust = $Bearing*5+Bearing*On
    If Distance > 100 -> FThrust = 1*On;
    If Distance < 100 -> FThrust = -1*On;
    If Target == 1 -> On = 1;
    If Target == 0 -> On = 0;
    WorldZ>PlateZ->ZVel=1;
    WorldZ<PlateZ->ZVel=-1;
    WorldZ==PlateZ->ZVel=0;
    
    Should be self explanatory

    This should help you out a bunch.

    If you still fail to understand this, here's a picture of a cucumber!
    Attached Images
    Last edited by Officer Tibbles; 12-07-2008 at 08:54 PM.

  7. #7
    Lurker keel75 is on a distinguished road keel75's Avatar
    Join Date
    Sep 2008
    Posts
    9

    Default Re: Gun Drone Suggestion

    Thank you. If I fail to construct this I may just be an idiot.
    This! Is! SPARTA!!!

  8. #8
    Lurker keel75 is on a distinguished road keel75's Avatar
    Join Date
    Sep 2008
    Posts
    9

    Default Re: Gun Drone Suggestion

    I failed. When I try to place the expression (the vector one) it says unexpected character ({) at line 5.
    What should I do. Even if you tell me how to fix that I still think I won't be able to make it.
    Also my folder in data is called ExpressionGate, can I just put it in there?
    Last edited by keel75; 12-07-2008 at 09:42 PM.
    This! Is! SPARTA!!!

  9. #9
    Wirererer taz_doh is an unknown quantity at this point taz_doh's Avatar
    Join Date
    May 2007
    Location
    Quebec
    Posts
    153

    Default Re: Gun Drone Suggestion

    this folder was for the e-gate1
    you need to create a new one for the egate2
    VIVE LE QUEBEC
    sorry if I write some non-existent words

  10. #10
    Wire Sofaking Officer Tibbles has a spectacular aura about Officer Tibbles has a spectacular aura about Officer Tibbles has a spectacular aura about Officer Tibbles's Avatar
    Join Date
    Aug 2008
    Location
    Barnus Philbert Boulevard
    Posts
    813

    Default Re: Gun Drone Suggestion

    Uhhhhg...

    Okay dude, here's what your going to need to do.

    Uninstall wiremod completely, even the model packs, and re-install it using SVN.

    This way all the folders are already in place and you have the most recent version of wire.

    SVN Guide can be found...... Here!
    http://www.wiremod.com/forum/wiremod...svn-guide.html

    Follow that, then...

    Following my instructions on the drone, paste that expression into the pre-made.......

    EXPRESSION 2<------ Folder


    And then you should be done.
    Last edited by Officer Tibbles; 12-08-2008 at 08:40 AM.

+ Reply to Thread

Similar Threads

  1. The Drone-It Launcher
    By Vivid in forum Finished contraptions
    Replies: 7
    Last Post: 03-01-2009, 12:20 PM
  2. WASP - Proxy Attack Drone
    By Gunnanmon in forum Finished contraptions
    Replies: 5
    Last Post: 11-03-2008, 05:15 PM
  3. Spy drone of sorts
    By miron in forum Ideas & Suggestions
    Replies: 1
    Last Post: 01-29-2008, 02:38 PM
  4. drone launcher
    By luke9511 in forum Technical Support
    Replies: 9
    Last Post: 10-03-2007, 03:12 AM
  5. Z axis following drone
    By -XI- in forum Technical Support
    Replies: 8
    Last Post: 07-06-2007, 11:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots