Start Here:
Wiremod Tutorials - Wiremod Forums
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!!!
Start Here:
Wiremod Tutorials - Wiremod Forums
Ö͎̗̫̙̝̹͓̤̙́ͣͤ̈́̋̽̋͜f̺̦̠̻̜̼̮͓̖́̓̄̿̓̌̓̍̔f̵̳̻̜̹̤̱̊͒ͤ͌ ̅ͭͮ̾͟i̗͖̎͗̇ͯ̈̀̌̽c̯̮̉ͮ̾͟͡i̵̺̻̠̘̤̫͕ͯͭ̅͊ͤͦͧa̷͇̖̲ͥ͗ͪ̎ͤ ̽̾ͫl̶̈́̉̉͂̿̎ͯͥ̐҉̗͙̦̻̪ ̪̻͕̗̝͈̘͓ͬ̋̕͟B͚̲̍͢ā̸̪͔͖̟ͫͨ͜͝s͈͔͔͖͇͍̗͛ͯ̑̂͟t̮̤̬̩̅ͧ̎͑͗ ̃̕͟a̸̧̻̖̘̞̪̲͈͕̲͊ͭͪ͆̉r̯̩̮̬̥̤̗̙̃͌̑͊͢͞ď̠̦̲̥͢͡ ̵̶̢̱̲̺͈̘̳͕ͤͅo̯̞̙̦͖̪̽ͩ͊ͅf̵̦͈̣͙̰̎͋̿́ͅ ̛͕̹̫̰̱̾̓ͪ̌̽̊͘͡W̨̬̲̤̖̽̿͛ͨ͛̃̎͐̏i̛̼̳̝̺̝̭͙͋̑͑ͬ͠ṙ̼͔̪ͯͨͭ ̕e̸̗͕̰̒̃ͩͬ̾͆́ͅͅ
I Require More Minions! Join us on the IRC !
List of Reasons to idle on the IRC: Wire QDB
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.
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!!!
You is Wrong.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).
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.
Should be self explanatoryCode: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;
This should help you out a bunch.
If you still fail to understand this, here's a picture of a cucumber!
![]()
Last edited by Officer Tibbles; 12-07-2008 at 09:54 PM.
Thank you. If I fail to construct this I may just be an idiot.
This! Is! SPARTA!!!
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 10:42 PM.
This! Is! SPARTA!!!
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
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 09:40 AM.
Bookmarks