Difference between revisions of "Chase.dat"

From GTAMods Wiki
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:
6b - int[3] - velocity in x,y,z direction
+
 
3b - int[3] - right x,y,z
+
{|class="wikitable"
3b - int[3] - top x,y,z
+
!Offset (decimal)
1b - int - steering angle
+
!Size (in bytes)
1b - int - gas pedal power
+
!Type
1b - int - brake pedal power
+
!Description
1b - int - handbrake used
+
!Notes
12b - flt[3] - x,y,z position
+
|-
 +
|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.

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.

  • GTA III 0354, starts the chase scene
  • GTA III 0355, stops the chase scene
  • GTA III 040A, removes car from chase
  • GTA III 0439, gets car from chase

See also

External link