flight.dat
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 GTA III and Vice City directories. The following files control these airbourne vehicles:
flight.dat |
Aeroplanes (the Boeing jets) | |
flight2.dat |
"Dead" Dodo | |
flight3.dat |
"Dead" Dodo used in "S.A.M." | Police Maverick |
flight4.dat |
"Dead" Dodo used in "A Drop In The Ocean" |
These airbourne vehicles are not solid so you cannot collide into them and there are no drivers in them. "Dead" Dodos can be destroyed by shooting a rocket through the plane.
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.
Example the structure of file:
Total entries (Integer) X, Y, Z
Example of a record file:
1 0.0, 0.0, 0.0
Script
These opcodes can be used in GTA III to control and check the Dodo along the flight paths.
- 0358 – used to create the Dodo to follow the path from the
flight4.dat
file - 0359 – checks if the Dodo is destroyed
- 033A – creates the Dodo to follow the path from the
flight3.dat
file - 033B – checks if the Dodo landed on the ground
- 033C – checks if the Dodo is destroyed
- 035A – gets the coordinates of both of the Dodos.