Difference between revisions of "Chase.dat"
Jump to navigation
Jump to search
m |
(→Format) |
||
Line 3: | Line 3: | ||
== Format == | == Format == | ||
The format is near identical to its successor, [[RRR]], in San Andreas. Each entry is 28 bytes in size, with the following format: | The format is near identical to its successor, [[RRR]], in San Andreas. Each entry is 28 bytes in size, with the following format: | ||
− | + | ||
− | + | {|class="wikitable" | |
− | + | !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||Gas Pedal Power||Divide by 100.0 to get floating point values | ||
+ | |- | ||
+ | |13||01||INT8||Brake Pedal Power||Divide by 100.0 to get floating point values | ||
+ | |- | ||
+ | |14||01||INT8||Handbrake used flag||Bool: 1 = true, 0 = false | ||
+ | |- | ||
+ | |15||04||FLOAT||XYZ.pos.x||[[Wikipedia:IEEE_754|Standard float]] | ||
+ | |- | ||
+ | |19||04||FLOAT||XYZ.pos.y||Standard float | ||
+ | |- | ||
+ | |23||04||FLOAT||XYZ.pos.z||Standard float | ||
+ | |} | ||
== Script == | == Script == |
Revision as of 20:59, 22 May 2019
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 | Gas Pedal Power | Divide by 100.0 to get floating point values |
13 | 01 | INT8 | Brake Pedal Power | Divide by 100.0 to get floating point values |
14 | 01 | INT8 | Handbrake used flag | Bool: 1 = true, 0 = false |
15 | 04 | FLOAT | XYZ.pos.x | Standard float |
19 | 04 | FLOAT | XYZ.pos.y | Standard float |
23 | 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