I guess the helicopter entity wasn't my last release.
Here is a new one, it's the F35 Jet fighter.
It has 4 different weapons.
Turret, missiles, bombs and homing missiles.
Shoots ordinary bullets. Works on both air and ground targets.
The turret might not seem to be very powerful but you shouldn't underestimate it.
You can use countermeasures on homing missiles but you can't dodge a bullet.
The missiles just goes straight forward. Works best on ground targets since it's hard to hit other
planes because they don't stay still very often. There is also a cool down on the missiles.
It will regenerate after a little while.
They drop to the ground and explode, there is not much more to say.
They also have a cool down like the missiles but it takes more time for them to regenerate.
Works best on ground targets.
You start locking on a target, wait for the jet to lock completely then you just launch the missiles.
The missiles will follow it's target until it hits it unless they are using countermeasures.
There is a slight chance that the missiles will ignore the countermeasures.
If someone have shot a homing missile that is locked you your jet you will hear an alarm.
You can lock on any type of vehicle (including seats) and players.
Works on both air and ground targets.
Health & Alarms
You don't have any type of instrument to indicate the health of the jet so you will have to depend on the alarms and your feeling instead.
There is three different alarm stages.
In the first stage (health below 200) you will just hear a buzzing noise. You will also notice that the jet will shake a little bit.
In the second stage (health below 100) you will hear a more intense alarm, the jet will also start to shake more violently.
In the third and last stage (health below 50) the alarm will be very intense and the jet will start to fall to the ground.
You don't have much time because the plane will start to damage itself (because of all the fires). You can escape certain death by bailing out (requires Bail Out addon) or you can try to get your revenge before you die.
How do i install it?
Put it in your addons folder.
Directory: "Steam\steamapps\ACCOUNT NAME\garrysmod\garrysmod\addons"
Why are the crosshair moving?
There is a slight update delay. The crosshair also adjust depending on distance.
Example: The missile weapon has two crosshair.
When you are close to a wall they will separate, they show the exact location on where the missiles will hit. If you are far away it will almost look like there only is one crosshair.
Is there a way to toggle the landing gear?
The jet figures that out by itself so you don't have to bother pressing a button everytime you want to
make them go up or down.
How do I lock on a target?
Select the homing missiles, put the crosshair on your target, press "suit zoom".
If you couldn't successfully lock on the target just try again.
When the target is locked you can fire the missiles.
Can i edit your code and make my own jet?
Yes you may but just don't release a copy that will replace the addon.
Make it as a separate entity and change the model.
I have added more comments than I usually do, I hope it will help.
Also made a small guide about making your own jet in the code.
W & S
A & D
Secondary Fire + A or D
Use current weapon
Lock on target (while using homing missiles)
Tips & tricks
The efficiency of the rudders are depending on the speed of the jet.
Some becomes more sensitive at slow speeds and the other way around.
You only need to use full throttle while taking of or if you need to get somewhere fast.
60% - 75% throttle is recommended to keep a high speed and you will still be able to do tight turns.
It may sometimes be hard to lock on a target that's in the air.
Don't give up, just try until it works. Switching to the turret may also be a good idea.
Are you hearing an annoying and stressful alarm?
Someone may have shot a homing missile at you.
Use countermeasures, the missiles will most likely follow them instead of you.
Keep in mind that the timing is very important, use the countermeasures early and the missiles will ignore them.
Decreasing the speed will make the jet shake less if you are damaged.
Want to have a third person view?
Just weld a camera on the jet.
You will still be able to see the crosshair.
Having problem getting out from it?
Hold down the use button and the jet will force the player to leave the seat.
The download also includes a jet without weapons that everyone can use.
Only admins can spawn the jet that has weapons.
Bohemia Interactive and Codemasters (model)
CHL407 (the guy who ported the planes and bombs)
Karmah (model gibbs)
All the beta testers who helped me