flight.dat

From GTAMods Wiki
Revision as of 21:36, 24 January 2010 by Gta-mysteries (talk | contribs)
Jump to navigation Jump to search

The flight.dat files controls the movements of NPC airbourne vehicles in GTA3 and Vice City. These files are located in the data/paths folder in the GTA3 or Vice City directory. The flight.dat controls the Airtrain (the Boeing jets). The flight2.dat controls the DeadDodo. The flight3.dat controls the Dodo used in "S.A.M." in GTA3 and the Police Maverick in Vice City. The flight4.dat controls the Dodo used in "A Drop In The Ocean" in GTA3. These airbourne vehicles are not solid so you cannot collide into them and there are no drivers in them.

Format

The file starts with the number of coordinates that will be used in the file. The rest of the file are X, Y, and Z coordinates linked as a path in the game.

Using It

The following is for GTA3 only. Opcode 0358 is used to create the Dodo in GTA3 to follow the path from the flight4.dat file. Opcode 0359 checks if the Dodo is destroyed. Opcode 033A creates the Dodo in GTA3 to follow the path from the flight3.dat file. Opcode 033B checks if the Dodo landed on the ground and opcode 033C checks if the Dodo is destroyed. Opcode 035A gets the coordinates of both of the Dodos.

Current Usage

Not much is known about these files other than what is above.