Garry's Mod

Garry's Mod

Not enough ratings
How to make an airplane with wiremod and fin 2
By Abridged Mangoes
This guide will mostly teach you the basics of making a fin aircraft, e2 knowledge is required for this guide to work.
I am going off of experience of me messing around in the game with the fin tool and managing to get something to work for this guide
2
   
Award
Favorite
Favorited
Unfavorite
Getting the base finished
This is the picture of the finished base, everything MUST be symmetrical
The two wings and the 2 tail props must have a fin efficiency of 200 (play with the fin efficiency if your airplane is too responsive or not flying, weight matters a lot in the fin props)
The green and black props on the wings are the props that change the roll of the aircraft, they are advanced-ball-socket'd to a prop that is directly pointing upwards, that prop is free to move forward and backward via the axis tool with a wire hydraulic to change the angle of the prop. Those two props at the front of the base prop are what control the two props I was talking about earlier.
The blue prop at the very front is a counter weight, change the weight of it to balance it out across the wings, when you suspend it from the wings with 2 props you must see that the aircraft is perfectly level, if it is tail heavy then make the blue prop have more weight, if the front is heavy then lower the weight of the blue prop.
Your base prop should be heavier than the wings by 200 units (example: wings are 200, then base is 400)


This is the tail of the aircraft. You must make sure that both of the back props have fin applied on it.
The tail must have half the weight of the wings, or less or more, just whatever works is what you should apply it to. (Basically saying you should mess around with the weight)
The prop that is vertical is welded to the base prop and immovable, the horizontal yellow prop is axis'd to the base and advanced-ball-socketed to the yellow prop that is vertical and has a wire hydraulic going from the base to that prop, the hydraulic controls the pitch of the horizontal prop.
Controls of your aircraft
If you prefer mouse aimed, then this paragraph is for you.
You must make an E2 that outputs the pitch of the pilot's angles so that when you move your mouse up and down it should change the pitch value, and then make a pod controller that outputs roll (like Roll=(A-D)*3) and you should also make W and S your throttle keys, so W increases throttle and S decreases.

If you prefer WASD, this is for you
You need to make an E2 that has 2 outputs and 4 inputs, Pitch and Roll outputs, W A S D inputs
Your code should look something like this:
"runOnTick(1)
Pitch=(W-S)*3
Roll=(A-D)*3"

You want to go to your aircraft then set everything perfectly level, so the tail is level and the props on the wings are straight, then you get the length of the hydraulics and add that before your pitch and roll outputs
So if your tail had its length at 36 when it was straight, then you would do "Pitch=36-((W-S)*3)*-1" or "Pitch=36-(EyeAngle:pitch())*-1", if your pitch and roll inputs are inverted, then set the -1 to a regular 1 to fix it
NOTE TO MOUSE AIMER'S: if your pitch/roll is way too sensitive, then you can divide your eye angles by a number, then you keep dividing by a bigger number until it feels right
Next, you obviously need to wire your stuff :p
Wiring and info
You must make sure that when you unfreeze it, the hydraulic doesn't cause your stuff to spazz out, if it does spazz out, then make the damping less or increase the constant or decrease it, but you should make the damping and constant as high as you can without making it spazz out


Now, you need to wire the hydraulics in the front of the plane to the 2 length outputs of your e2, your code should look something like this:
Example: default value of hydraulics is 36
"@inputs Roll
@outputs RightLength LeftLength
runOnTick(1)
RightLength=36-(Roll*-1)
LeftLength=36+(Roll*-1)"
And if your controls for roll are inverted, then change both of the "-1"'s to "1"
Now you wire the right hydraulic's "Length" input to the "RightLength" output of your E2, and wire the left hydraulics "Length" input to the "LeftLength" output of your E2
You want to wire your "Roll" input of your E2 to the "Roll" output of your eyeangles/wasd E2 you made earlier for controlling the aircraft.

For the tail, you want your code to look like this:
Example: default value of hydraulic is 36
"@inputs Pitch
@outputs BackLength
runOnTick(1)
BackLength=36-(Pitch*-1)"
again, if your pitch is inverted then you change the "-1" into "1"
And after that, you want to wire the hydraulic at the tail to your "BackLength" output of the E2, then wire "Pitch" of your E2 into the "Pitch" output of your eyeangles/wasd E2

Please, if you have any questions or want any help with this please put them in the comments so that I can get to you and help you out.
4 Comments
76561198081846857  [author] Nov 6, 2021 @ 5:28pm 
ya?
hello to you too sir
LadyHelixx Nov 6, 2021 @ 3:49pm 
hi
76561198081846857  [author] Nov 5, 2021 @ 2:41pm 
Carnage
Filipes Nov 5, 2021 @ 8:19am 
hmm