The flight*.dat files control the movements of NPC flying vehicles in Grand Theft Auto III and Grand Theft Auto: Vice City. These files are located in the
\data\paths folder in both the games' directories. The following files control these flying vehicles:
||DeadDodo used in "S.A.M."||Police Maverick|
||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.
|Section 1: Number of path nodes|
|A||integer||The number of lines that are to be read from the file.|
|Section 2: Path nodes|
|A,B,C||float||X, Y, Z coordinates, each line linked to create a path|
flight.dat in GTA III, if the point is below the ground, the game internally replaces the z-coordinate with the ground z at that point. In GTA Vice City, the game internally replaces any z-coordinate below 14.0 with 14.0. This is primarily used to determine the landing and takeoff points and allow aircraft to taxi on the surface.
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
- 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
- 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
|Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.|
See Grand Theft Wiki:Copyright for more information.