Difference between revisions of "Flight.dat"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
[[File:IIIFlightMap.jpg|thumb|right|250px|GTA III's flight*.dat map]] | [[File:IIIFlightMap.jpg|thumb|right|250px|GTA III's flight*.dat map]] | ||
[[File:VCFlightMap.jpg|thumb|right|250px|Vice City's flight*.dat map]] | [[File:VCFlightMap.jpg|thumb|right|250px|Vice City's flight*.dat map]] | ||
− | The '''flight*.dat''' files controls the movements of NPC | + | The '''flight*.dat''' files controls the movements of NPC flying vehicles in GTA III and Vice City. These files are located in the <code>..\data\paths</code> folder in the GTA III and Vice City directories. The following files control these flying vehicles: |
− | {| | + | {|class="wikitable" |
| | | | ||
− | | | + | | style="text-align: center; width: 16em;" | {{Icon|3}} |
− | | | + | | style="text-align: center; width: 16em;" | {{Icon|VC}} |
|- | |- | ||
| <code>flight.dat</code> || align="center" colspan="2" | Airtrain | | <code>flight.dat</code> || align="center" colspan="2" | Airtrain | ||
Line 16: | Line 16: | ||
| <code>flight4.dat</code> || DeadDodo used in "A Drop In The Ocean" | | <code>flight4.dat</code> || DeadDodo used in "A Drop In The Ocean" | ||
|} | |} | ||
− | These | + | These flying vehicles are not solid so you cannot collide into them and there are no drivers in them. DeadDodos can be destroyed by shooting a rocket through the plane. In an early GTA III commercial, the Airtrain is seen being destroyed by the rocket. This feature can be enabled through {{U|Silent}}'s [http://www.gtagarage.com/mods/show.php?id=26526 "Destroyable Airtrain"] mod. |
− | ==Format== | + | == Format == |
− | {| | + | {| class="wikitable" |
− | ! | + | ! style="width: 4em;" | {{Icon|3}} {{Icon|VC}} |
− | ! | + | ! style="width: 8em;" | Type |
! Description | ! Description | ||
|- | |- | ||
! colspan="3" | Section 1 | ! colspan="3" | Section 1 | ||
|- | |- | ||
− | | | + | | {{a|c}} | A || integer || The number of lines that are to be read from the file. |
|- | |- | ||
! colspan="3" | Section 2 | ! colspan="3" | Section 2 | ||
|- | |- | ||
− | | | + | | {{a|c}} | A,B,C || float[3] || X, Y, Z coordinates, each line linked to create a path |
|} | |} | ||
Revision as of 05:44, 3 February 2015
The flight*.dat files controls the movements of NPC flying vehicles in GTA III 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 flying vehicles:
flight.dat |
Airtrain | |
flight2.dat |
DeadDodo | |
flight3.dat |
DeadDodo used in "S.A.M." | Police Maverick |
flight4.dat |
DeadDodo used in "A Drop In The Ocean" |
These flying vehicles are not solid so you cannot collide into them and there are no drivers in them. DeadDodos can be destroyed by shooting a rocket through the plane. In an early GTA III commercial, the Airtrain is seen being destroyed by the rocket. This feature can be enabled through Silent's "Destroyable Airtrain" mod.
Format
Type | Description | |
---|---|---|
Section 1 | ||
A | integer | The number of lines that are to be read from the file. |
Section 2 | ||
A,B,C | float[3] | X, Y, Z coordinates, each line linked to create a path |
Script
These opcodes can be used in GTA III to spawn and check the Dodo along the flight paths.
- 033A, spawns a Dodo to follow the path from the
flight3.dat
file - 033B, checks if the flight3 Dodo has completed the trip
- 033C, checks if the flight3 Dodo has been shot down
- 0358, spawns a Dodo to follow the path from the
flight4.dat
file - 0359, checks if the flight4 Dodo has been shot down
- 035A, gets the coordinates of the flight3 Dodo
- 03A6, gets the coordinates of the flight4 Dodo