Chase.dat
Jump to navigation
Jump to search
CHASE*.DAT is a set of binary files in GTA III that controls the cars seen in the introduction cutscene of the game. The files are located in the .\data\paths
folder.
Contents
Format
The format is near identical to its successor, RRR, in San Andreas. Each entry is 28 bytes in size, with the following format:
Offset (decimal) | Size (in bytes) | Type | Description | Notes |
---|---|---|---|---|
00 | 02 | INT16 | velocity in direction X | Divide by 16383.5 to get floating point values |
02 | 02 | INT16 | velocity in direction Y | Divide by 16383.5 to get floating point values |
04 | 02 | INT16 | velocity in direction Z | Divide by 16383.5 to get floating point values |
06 | 01 | INT8 | XYZ.right.x | Divide by 127.0 to get floating point values |
07 | 01 | INT8 | XYZ.right.y | Divide by 127.0 to get floating point values |
08 | 01 | INT8 | XYZ.right.z | Divide by 127.0 to get floating point values |
09 | 01 | INT8 | XYZ.top.x | Divide by 127.0 to get floating point values |
10 | 01 | INT8 | XYZ.top.y | Divide by 127.0 to get floating point values |
11 | 01 | INT8 | XYZ.top.z | Divide by 127.0 to get floating point values |
12 | 01 | INT8 | Steering Angle | Divide by 20.0 to get floating point values |
13 | 01 | INT8 | Gas Pedal Power | Divide by 100.0 to get floating point values |
14 | 01 | INT8 | Brake Pedal Power | Divide by 100.0 to get floating point values |
15 | 01 | INT8 | Handbrake used flag | Bool: 1 = true, 0 = false |
16 | 04 | FLOAT | XYZ.pos.x | Standard float |
20 | 04 | FLOAT | XYZ.pos.y | Standard float |
24 | 04 | FLOAT | XYZ.pos.z | Standard float |
Script
The following opcodes are related to the chase files.
- 0354, starts the chase scene
- 0355, stops the chase scene
- 040A, removes car from chase
- 0439, gets car from chase