Difference between revisions of "Chase.dat"
Jump to navigation
Jump to search
m |
(added image) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | [[File:Chase0.png|thumb|right|250px|Path from <code>CHASE0.DAT</code>]] | ||
'''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 <code>{{dir|3}}\data\paths</code> folder. | '''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 <code>{{dir|3}}\data\paths</code> folder. | ||
== 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||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||[[Wikipedia:IEEE_754|Standard float]] | ||
+ | |- | ||
+ | |20||04||FLOAT||XYZ.pos.y||Standard float | ||
+ | |- | ||
+ | |24||04||FLOAT||XYZ.pos.z||Standard float | ||
+ | |} | ||
== Script == | == Script == | ||
The following opcodes are related to the chase files. | The following opcodes are related to the chase files. | ||
− | * 0354, starts the chase scene | + | * {{Icon|3}} [[0354]], starts the chase scene |
− | * 0355, stops the chase scene | + | * {{Icon|3}} [[0355]], stops the chase scene |
− | * 040A, removes car from chase | + | * {{Icon|3}} [[040A]], removes car from chase |
− | * 0439, gets car from chase | + | * {{Icon|3}} [[0439]], gets car from chase |
== See also == | == See also == |
Latest revision as of 02:54, 26 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 | 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