**I know there's a thread about this already, but it's not a proper one, I'm hoping this one will be the permanent home for general airplane discussion.**
Lame boring intro.
Since the GTA3 there have been flyable planes in the GTA Series, yes the wingless Dodo counts! But due to R* wanting a sense of realism and scale they decided to keep planes out of the city since you'd fly across the map in a short amount of time (something like 30 seconds?) at a realistic speed.
While I respect their decision to do so, I feel they've left out a fun activity we all enjoy. Even before the console release, I've stated several times that if it comes out for PC I'll make sure we have planes for IV. Now that it is out for PC and I've got it, others and I are on the path to making planes in GTA IV a reality.
Plane info, how it works.
For starters, GTA IV's coding is much like the previous version, which helped a lot. R* left over bits of coding from previous games, including airplane data which still works in the game.
Enough of the talk, let's get down to business. The single biggest factor into making a vehicle an airplane is to change the TYPE stat in the vehicle.ide file to plane instead of car. This will give the vehicle plane attributes such as being able to fly, pitch, and roll. I have yet to figure out how to apply yaw.
As with GTA SA you can simply add in the secondary handling line for the vehicle you are making a plane. This is the area where the line starts with a $ symbol near the end of the handling.dat file. Just simply copy an existing planes data line for ease and edit it as you like.
I don't care how it works! Just give me code to fly!
First off, REMEMBER TO BACK UP YOUR FILES!
Now, I know a lot of people don't want to know how to make the vehicles into planes, they just want to take advantage of our findings.
As said before, I can NOT get yaw to work, that's the lateral left and right movement, like cars normally make driving down the road. So sadly you'll need a bit of a straight away to get up to speed to take off. Once you are in the air you can roll (regular left/right buttons) and pull up or down (lean forward/backward buttons) to turn in the desired direction.
Flaii posted a video in another where he seemed to be turning on the ground, so maybe he can shed some light on that subject.
Here's what I've done to get the Uranus flying.
Copy this over the URANUS lines in the handling.dat file.
Line 1 (first line)
|URANUS 2000.0 15.0 75 0.0 0.0 0.0 0.0 1 0.30 1.0 250.0 0.5 0.60 0.7 45.0 0.95 0.85 8.0 0.10 0.5 1.2 0.7 0.7 0.20 -0.05 0.0 0.5 0.0 0.0 0.0 0.0 0.0 45000 4000000 400000 0|
Line 2, add this in after the line that starts with "#$FIGHTER"
|$ URANUS 1.0 2.0 0.0 -0.003 0.002 0.10 0.010 -0.0001 0.005 0.0050 0.0 0.1 1.0 1.0 0.0 0.01 0.5 0.5 0.5 0.5 0.5 0.5|
Copy this over the URANUS line in the vehicles.ide file.
|uranus, uranus, plane, URANUS, URANUS, VEH@LOW, VEH@LOW_HI2_HI2, 100, 999, 0.2250, 0.2250, 0.5 1, 1.0 ,1, ext_gang+ext_strong+ext_all|
The code above is slightly different than the one used in this video, but it's basically the same thing.
Well... hard to say!
The single most immediate problem is getting control of the yaw (lateral, left/right movement of the plane). I don't know how! Hopefully some one can help with that.
The next biggest problems won't be up for review until we are able to modify the vehicles themselves and put them in game. My guess is that we may be faced with animation problems (ailerons, rudders, doors/hatches, landing gear). Beyond that I really don't know. I would think it's rather smooth sailing (or should I say flying??) after that.
So, feel free to add to the discussion! This is all to better the enjoyment of GTA IV for us all, the more minds on the subject the better.