Difference between revisions of "Flight.dat"

From GTAMods Wiki
Jump to navigation Jump to search
m
(tabulated and cleaned)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
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 Airtrain (the Boeing jets). The <code>flight2.dat</code> controls the DeadDodo. 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 <code>..\data\paths</code> folder in the GTA III and Vice City directories. The following files control these airbourne vehicles:
 +
{| {{prettytable}}
 +
|
 +
| align="center" width="260" | {{Icon|3}}
 +
| align="center" width="260" | {{Icon|VC}}
 +
|-
 +
| <code>flight.dat</code> || align="center" colspan="2" | Aeroplanes (the Boeing jets)
 +
|-
 +
| <code>flight2.dat</code> || align="center" colspan="2" | "Dead" Dodo
 +
|-
 +
| <code>flight3.dat</code> || "Dead" Dodo used in "S.A.M." || Police Maverick
 +
|-
 +
| <code>flight4.dat</code> || "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==
 
==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.
 
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==
+
== Script ==
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.
+
These opcodes can be used in GTA III to control 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
==Current Usage==
+
* [[0359]] &ndash; checks if the Dodo is destroyed
Not much is known about these files other than what is above.
+
* [[033A]] &ndash; creates the Dodo to follow the path from the <code>flight3.dat</code> file
 +
* [[033B]] &ndash; checks if the Dodo landed on the ground
 +
* [[033C]] &ndash; checks if the Dodo is destroyed
 +
* [[035A]] &ndash; gets the coordinates of both of the Dodos.
  
 
[[Category:Map Formats]][[Category:GTA 3]][[Category:GTA VC]]
 
[[Category:Map Formats]][[Category:GTA 3]][[Category:GTA VC]]

Revision as of 18:50, 22 June 2011

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:

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

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.

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.