Difference between revisions of "Flight.dat"

From GTAMods Wiki
Jump to navigation Jump to search
Line 1: Line 1:
The '''flight.dat''' files controls the movements of NPC airbourne vehicles in GTA3 and Vice City. These files are located in the maps/data folder in the GTA3 or Vice City directory. The <code>flight.dat</code> controls the Boeing jets. The <code>flight2.dat</code> controls the Dodo. The <code>flight3.dat</code> controls the Dodo used in "S.A.M." in GTA3 and the Police Maverick in Vice City. The <code>flight4.dat</code> 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.
+
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 <code>flight.dat</code> controls the Boeing jets. The <code>flight2.dat</code> controls the Dodo. The <code>flight3.dat</code> controls the Dodo used in "S.A.M." in GTA3 and the Police Maverick in Vice City. The <code>flight4.dat</code> 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==
 
==Format==

Revision as of 14:23, 8 April 2007

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 Boeing jets. The flight2.dat controls the Dodo. 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.