Difference between revisions of "Flight.dat"

From GTAMods Wiki
Jump to navigation Jump to search
(III map!)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
[[File:-VCFlightMap.jpg|thumb|right|Vice City's flight*.dat map]]
+
[[File:IIIFlightMap.jpg|thumb|right|250px|GTA III's flight*.dat map]]
The '''flight*.dat''' files controls the movements of NPC airbourne vehicles in GTA3 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 airbourne vehicles:
+
[[File:VCFlightMap.jpg|thumb|right|250px|Vice City's flight*.dat map]]
 +
The '''flight*.dat''' files controls the movements of NPC airbourne 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 airbourne vehicles:
 
{| {{prettytable}}
 
{| {{prettytable}}
 
|  
 
|  
Line 18: Line 19:
  
 
==Format==
 
==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.
+
{|{{Prettytable}}
 
+
! width="36px"| {{Icon|3}} {{Icon|VC}}
Total entries (Integer)
+
! width="100px"| Type
X, Y, Z
+
! Description
 
+
|-
Example:
+
! colspan="3" | Section 1
1
+
|-
0.0, 0.0, 0.0
+
| <center>A</center> || integer || The number of lines that are to be read from the file.
 +
|-
 +
! colspan="3" | Section 2
 +
|-
 +
| <center>A,B,C</center> || float[3] || X, Y, Z coordinates, each line linked to create a path
 +
|}
  
 
== Script ==
 
== Script ==
These opcodes can be used in GTA III to control and check the Dodo along the flight paths.
+
These opcodes can be used in GTA III to spawn and check the Dodo along the flight paths.
* [[0358]] &ndash; used to create the Dodo to follow the path from the <code>flight4.dat</code> file
+
* [[033A]], spawns a Dodo to follow the path from the <code>flight3.dat</code> file
* [[0359]] &ndash; checks if the Dodo is destroyed
+
* [[033B]], checks if the flight3 Dodo has completed the trip
* [[033A]] &ndash; creates the Dodo to follow the path from the <code>flight3.dat</code> file
+
* [[033C]], checks if the flight3 Dodo has been shot down
* [[033B]] &ndash; checks if the Dodo landed on the ground
+
* [[0358]], spawns a Dodo to follow the path from the <code>flight4.dat</code> file
* [[033C]] &ndash; checks if the Dodo is destroyed
+
* [[0359]], checks if the flight4 Dodo has been shot down
* [[035A]] &ndash; gets the coordinates of both of the Dodos.
+
* [[035A]], gets the coordinates of the flight3 Dodo
 +
* [[03A6]], gets the coordinates of the flight4 Dodo
  
 
[[Category:Map Formats]][[Category:GTA 3]][[Category:GTA VC]]
 
[[Category:Map Formats]][[Category:GTA 3]][[Category:GTA VC]]

Revision as of 00:52, 6 February 2012

GTA III's flight*.dat map
Vice City's flight*.dat map

The flight*.dat files controls the movements of NPC airbourne 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 airbourne vehicles:

GTA III Vice City
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

GTA III Vice City 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