1. Post #1
    I love Lemon Punch
    Sakarias88's Avatar
    January 2006
    1,268 Posts


    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.

    Turret
    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.

    Missiles
    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.

    Bombs
    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.

    Homing Missiles
    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.

    Screen shots

    Target locked


    Bombs


    Video

    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?
    Nope.
    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.

    [release]
    Controls:

    W & S
    Pitch

    A & D
    Roll

    Secondary Fire + A or D
    Yaw

    Primary Fire
    Use current weapon

    Jump
    Increase throttle

    Walk
    Decrease throttle

    Sprint
    Change weapon

    Score board
    Use countermeasures

    Suit Zoom
    Lock on target (while using homing missiles)
    [/release]

    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.

    OLD

    The download also includes a jet without weapons that everyone can use.
    Only admins can spawn the jet that has weapons.

    NEW Update


    SERVER FIX


    Credits
    Sakarias88
    Bohemia Interactive and Codemasters (model)
    CHL407 (the guy who ported the planes and bombs)
    Karmah (model gibbs)
    All the beta testers who helped me
    Reply With Quote Edit / Delete Reply Sweden Show Events Useful x 33Friendly x 6Artistic x 4Agree x 3Lua King x 2Informative x 2Optimistic x 1Bad Spelling x 1 (list)

  2. Post #2
    Dakarun's Avatar
    August 2008
    895 Posts
    Sweet, downloading now!

    I hope isn't your last release, you make great stuff.
    Reply With Quote Edit / Delete Reply Netherlands Show Events Agree Agree x 16 (list)

  3. Post #3
    Gold Member
    nardix's Avatar
    December 2007
    2,308 Posts
    This is awesome, I'll bug my profanwolf to use it.

  4. Post #4
    DarkReaper's Avatar
    April 2007
    204 Posts
    Downloading now, i love things like this :D
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Agree Agree x 5 (list)

  5. Post #5
    retsila's Avatar
    June 2007
    154 Posts
    Super awesome! Gonna try it out right now!

    I agree with Daka, hope this isn't your last release!
    Reply With Quote Edit / Delete Reply Netherlands Show Events Agree Agree x 4 (list)

  6. Post #6
    Srslyrofled's Avatar
    September 2009
    17 Posts

    W & A
    Pitch

    A & D
    Roll
    A does roll AND pitch? :P im guessing you mean S
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Funny Funny x 1 (list)

  7. Post #7
    I love Lemon Punch
    Sakarias88's Avatar
    January 2006
    1,268 Posts
    A does roll AND pitch? :P im guessing you mean S
    Correct.
    My mistake.
    Reply With Quote Edit / Delete Reply Sweden Show Events Agree Agree x 3Friendly Friendly x 2 (list)

  8. Post #8
    Gold Member
    DMGaina's Avatar
    May 2007
    2,805 Posts
    I love your stuff man, do you want to marry me?

    I gonna try it out today with Darkhazz.

    Also: Didn't you said that the Helicopter is going to be your last release? I am proud you made this Jet tough. : )
    Reply With Quote Edit / Delete Reply Germany Show Events Friendly Friendly x 4Bad Spelling Bad Spelling x 1Optimistic Optimistic x 1 (list)

  9. Post #9
    I love Lemon Punch
    Sakarias88's Avatar
    January 2006
    1,268 Posts
    I love your stuff man, do you want to marry me?

    I gonna try it out today with Darkhazz.

    Also: Didn't you said that the Helicopter is going to be your last release? I am proud you made this Jet tough. : )
    Thanks.
    And I just love your videos.
    Reply With Quote Edit / Delete Reply Sweden Show Events Friendly Friendly x 11Agree Agree x 1 (list)

  10. Post #10
    Gold Member
    UberGamer's Avatar
    December 2008
    2,279 Posts
    I love you so much.

    Marry me, not Gaina!

    ...I'll give you free cake.
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Dumb Dumb x 1 (list)

  11. Post #11
    rctfanatic's Avatar
    July 2009
    407 Posts
    I was gliding over some water, the plane touched the surface, and it disappeared and I got this error message

    entities/sent_sakariasjet_nonadmin/init.lua:373: Tried to use invalid object (type IPhysicsObject) (Object was NULL or not of the right type)

    Then, I tried to spawn another, it fell through the world, the game crashed, and a window opened saying

    IVP Failed at U:\hl2_rel\src\ivp\ivp_utility\ivu_vhash.cxx 157

    Thought you should know...

  12. Post #12
    I love Lemon Punch
    Sakarias88's Avatar
    January 2006
    1,268 Posts
    I was gliding over some water, the plane touched the surface, and it disappeared and I got this error message

    entities/sent_sakariasjet_nonadmin/init.lua:373: Tried to use invalid object (type IPhysicsObject) (Object was NULL or not of the right type)

    Then, I tried to spawn another, it fell through the world, the game crashed, and a window opened saying

    IVP Failed at U:\hl2_rel\src\ivp\ivp_utility\ivu_vhash.cxx 157

    Thought you should know...
    I have noticed that to but it happened to normal props and other ents as well when you threw them in the water so I thought it wasn't the jets fault but the map.
    Changed map and it worked. The new Freespace_Revolution map has that "bug" or whatever you could call it.

  13. Post #13
    rctfanatic's Avatar
    July 2009
    407 Posts
    I have noticed that to but it happened to normal props and other ents as well when you threw them in the water so I thought it wasn't the jets fault but the map. Changed map and it worked. The new Freespace_Revolution map has that "bug" or whatever you could call it.
    I was on gm_flatgrass_revolution, I don't think it's the map.

  14. Post #14
    I love Lemon Punch
    Sakarias88's Avatar
    January 2006
    1,268 Posts
    I was on gm_flatgrass_revolution, I don't think it's the map.
    To be hones i have no idea what the problem is.
    My guess is just that it's the maps fault.

    It's like this.
    You put the jet in the water and then it suddenly dissapears (or gets removed).
    The entity tries the fetch it's own physics object and I just can't find it because something removed it.

    This error shouldn't even be possible. (check the code below)
    The firs line is line 370 (means that line 373 is line 4 in the code below).
    	if self.Entity:WaterLevel() == 0 && self.DieOnce == 0 then
    	
    		local entphys = self.Entity:GetPhysicsObject()
    		local speed = self.Entity:GetPhysicsObject():GetVelocity():Length()
    

    What does this mean?
    It means that the entity runs code when it's submerged which it shouldn't.
    It also can't find it's own physics object.

    Why?
    Only God knows.
    Reply With Quote Edit / Delete Reply Sweden Show Events Agree Agree x 3Funny Funny x 1 (list)

  15. Post #15
    rctfanatic's Avatar
    July 2009
    407 Posts
    What if you just add a code to purposely remove the jet when it touches water, therefore bypassing this mess?
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 1 (list)

  16. Post #16
    jonney934's Avatar
    December 2007
    238 Posts
    Have you ever considered using fin like simulations for the plane? Just so that if we rolled to the right it would turn to the right in a much more realistic matter.
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 1 (list)

  17. Post #17
    Into The Lasagnaverse
    brickbox's Avatar
    October 2008
    1,589 Posts
    Hey do you think you can make a passenger jet next?
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 6 (list)

  18. Post #18
    DanielPinoy's Avatar
    May 2009
    1,048 Posts
    this is really awesome sakarias, installing in my server now :D
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 1 (list)

  19. Post #19
    koh97's Avatar
    September 2009
    234 Posts
    Wow! Amazing vehicles you make! How about diffrent breakable cars and you can also shoot out of? Or machine gun bunkers. I mean theres tons of crappy low poly terribley made unrealstic veicals that you sit upside down but with that coding talent you could make something much better. I think you would be able to make some modern war team deathmatch gamemode for gmod! I mean someone would make the sweps, gamemode and work it all out but you already made awesome veicals right? Well, bravo any ways mode or no game mode this is one epic heckofa plane. And wouldn't the might be made Hawx mod floating around work so much better if they just modified your coding a little?
    Reply With Quote Edit / Delete Reply United States Show Events Bad Spelling Bad Spelling x 5 (list)

  20. Post #20
    Dr Pepper's Avatar
    October 2008
    3,543 Posts
    ^^You don't have to right an essay buddy

    Also I love you
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 4Bad Spelling Bad Spelling x 2Friendly Friendly x 1 (list)

  21. Post #21
    koh97's Avatar
    September 2009
    234 Posts
    Its not a essay! Fine, I am obessesed with things in gmod that shoot things..... no work for me to do but blow crap up and so on...... Well, I'd give this guy a useful and then give a man-hug in a non-homosexual way. Also Mr. Dr. Pepper you spelled 'write' wrong...
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 1 (list)

  22. Post #22
    Gold Member
    itak365's Avatar
    March 2009
    2,809 Posts
    Sakarias LIVES!!!!!!!! Also, nice work. Can't wait to see something like a Huey adaptation of you helicopter, or an F4 Phantom adaptation of your jet.
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 1 (list)

  23. Post #23
    KillerLOLcat's Avatar
    September 2008
    11 Posts
    This is awesome! Thank you for not making the helicpoter your last project!
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 2 (list)

  24. Post #24
    Official Garry's Cheese Wheel Rider
    AgentJ's Avatar
    July 2007
    384 Posts
    You made a perfect bailout system
    a fabulous heli
    an amazing plane
    plus loads of other amazing sweps/entities
    Your on your way to making perfect set script codes for anyone to easily make their spawn able vehicles of their dreams
    Now make me an APC/Tank/AATank
    The models would be easy to get
    and Im sure it would be far easier to script a ground vehicle
    than one that flies!
    Then
    you may rest Lua King
    :)
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 3 (list)

  25. Post #25
    Gold Member
    evilweazel's Avatar
    June 2009
    11,628 Posts
    Another awesome release, I remember when I saw one of your swep videos a while ago, made me get GMod :)

  26. Post #26
    GunfighterJ's Avatar
    February 2009
    669 Posts
    Awsome release. I'm downloading it as I write this. Is there anyway that you could add in VTOL (Vertical Take-Off and Landing) capabilities?

  27. Post #27
    Dennab
    February 2009
    26 Posts
    I love this mod been using it a lot!
    You should keep it up your a top moder on my list.
    just a suggestion try a F-22 raptor, or a blackhawk heli.

  28. Post #28
    insert long title here
    SEKCobra's Avatar
    January 2009
    15,173 Posts
    Ive known you would come back
    Reply With Quote Edit / Delete Reply Austria Show Events Bad Spelling Bad Spelling x 1 (list)

  29. Post #29
    ray243's Avatar
    January 2008
    1,847 Posts
    Sakarias88, just in case, the guy who ported the model is CHL407. CHL407 is also the guy who ported the other planes and bombs.

    http://www.facepunch.com/showthread....itary+models+2

    Thank you Sakarias88, on behalf of CHL407. You made an excellent addon to CHL407's excellent model pack.


    I was hoping you would do it for StarChick971, he was responsible for porting the planes from Tom Clancy Hawx. It is better looking, and also have several bombs, rockets and missiles. He was hoping for someone like you to do it, but nobody seems to like him. :(

    I feel sad for StarChick971.......

    Edited:

    The one who made the model is the Company which made Operation Flashpoint, The Companies are Bohemia Interactive and Codemasters.
    Reply With Quote Edit / Delete Reply Singapore Show Events Informative Informative x 2 (list)

  30. Post #30
    I love Lemon Punch
    Sakarias88's Avatar
    January 2006
    1,268 Posts
    Sakarias88, just in case, the guy who ported the model is CHL407. CHL407 is also the guy who ported the other planes and bombs.

    http://www.facepunch.com/showthread....itary+models+2

    Thank you Sakarias88, on behalf of CHL407. You made an excellent addon to CHL407's excellent model pack.


    I was hoping you would do it for StarChick971, he was responsible for porting the planes from Tom Clancy Hawx. It is better looking, and also have several bombs, rockets and missiles. He was hoping for someone like you to do it, but nobody seems to like him. :(

    I feel sad for StarChick971.......

    Edited:

    The one who made the model is the Company which made Operation Flashpoint, The Companies are Bohemia Interactive and Codemasters.
    Updated credits.
    Couldn't use the StarChick971 models because they had spaces in the names and that makes the ent unable to find the models.
    Reply With Quote Edit / Delete Reply Sweden Show Events Friendly Friendly x 2 (list)

  31. Post #31
    Marine123's Avatar
    January 2008
    458 Posts
    Wow. Just, wow. Welcome back sakarias, have a burger. :burger:
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 2 (list)

  32. Post #32
    TehPeeMast3r's Avatar
    October 2008
    811 Posts
    We missed you Sakarias :swoon:
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 6 (list)

  33. Post #33
    Gold Member
    Resistance777's Avatar
    January 2009
    2,336 Posts
    this is a really good addon.
    Reply With Quote Edit / Delete Reply Korea, Republic of Show Events Agree Agree x 1 (list)

  34. Post #34
    Main Force Patrolin'
    madmax678's Avatar
    August 2006
    5,274 Posts
    Nice work!

    I nominate a AC-130 (Spooky) for a next one,
    thats if you are doing a next one ;(
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Agree Agree x 1 (list)

  35. Post #35

    August 2009
    7 Posts
    ya cool addon i have the helicopter vehicle to and Ive already added the plane and tested it next thing im going to do is battle them plane vs helicopter vehicle
    Reply With Quote Edit / Delete Reply United States Show Events Informative Informative x 1 (list)

  36. Post #36
    oooESTEBANooo's Avatar
    May 2009
    146 Posts
    Amazing!
    But why you used the scoreboard and zuit zoom keys instead of the reloading and flashlight keys? That way it wouldn't be a problem to check the scoreboard or feeling dizzy because of the zooming effect
    Reply With Quote Edit / Delete Reply Argentina Show Events Agree Agree x 1Bad Spelling Bad Spelling x 1 (list)

  37. Post #37
    spartan471's Avatar
    March 2009
    21 Posts
    Maybe this is our ticket to getting a fully working passenger jet?

  38. Post #38
    ray243's Avatar
    January 2008
    1,847 Posts
    Updated credits.
    Couldn't use the StarChick971 models because they had spaces in the names and that makes the ent unable to find the models.
    Thanks for replying. I give you a heart.

    Also, this mod needs some upgrades. Hopefully, I can learn lua and make some rockets, guided bombs or cluster bombs.

  39. Post #39
    alexojm's Avatar
    May 2009
    3,483 Posts
    This looks amazing. I thout that your last invention the helicopter was the best thing ever and now this :D I allways wanted you to make something just like this and amazingly you did. My pc is sadly being realy slow today and it has been 20 mins and only 10% loading youtube video so i canot wait till that is done and i am using it on gmod. Thank you alot me :)

  40. Post #40
    I love Lemon Punch
    Sakarias88's Avatar
    January 2006
    1,268 Posts
    Amazing!
    But why you use the scoreboard and zuit zoom keys instead of the reloading and flashlight keys? That way it won't be a problem seen the scoreboard or feeling dizy of the zooming effect
    The reload key is broken but I guess I could have used the flash light key.