Loop models match engine RPM to sounds via a graph.
Note: PC (Remastered) loop models are 64-bit, unlike with other resource types.
BrnSound::Vehicles::Engines::LoopModelData[edit | edit source]
Offset |
Length |
Type |
Name |
Description |
Comments
|
0x0 |
0x4 |
uint32_t |
muVersion |
Version number |
7 in all known versions
|
0x4 |
0x4 |
uint32_t |
muSignature |
Magic |
YDNA
|
0x8 |
0x4 |
Partial* |
mpaPartials |
|
|
0xC |
0x4 |
uint32_t |
muNumOfPartials |
|
|
0x10 |
0x4 |
uint32_t |
muSizeInBytes |
Resource size |
|
Offset |
Length |
Type |
Name |
Description |
Comments
|
0x0 |
0x4 |
uint32_t |
muVersion |
Version number |
7 in all known versions
|
0x4 |
0x4 |
uint32_t |
muSignature |
Magic |
YDNA
|
0x8 |
0x8 |
Partial* |
mpaPartials |
|
|
0x10 |
0x4 |
uint32_t |
muNumOfPartials |
|
|
0x14 |
0x4 |
uint32_t |
muSizeInBytes |
Resource size |
|
BrnSound::Vehicles::Engines::Partial[edit | edit source]
Note: Field order changes between 32 and 64 bit, unlike with other resource types.
Offset |
Length |
Type |
Name |
Description |
Comments
|
0x0 |
0x4 |
Name |
mWaveName |
Name hash |
|
0x4 |
0x4 |
Graph* |
mpaGraphs |
|
|
0x8 |
0x1 |
uint8_t |
mu8NumOfGraphs |
|
|
0x9 |
0x3 |
|
|
padding |
|
Offset |
Length |
Type |
Name |
Description |
Comments
|
0x0 |
0x8 |
Graph* |
mpaGraphs |
|
|
0x8 |
0x4 |
Name |
mWaveName |
Name hash |
|
0xC |
0x1 |
uint8_t |
mu8NumOfGraphs |
|
|
0xD |
0x3 |
|
|
padding |
|
BrnSound::Vehicles::Engines::Graph[edit | edit source]
Offset |
Length |
Type |
Name |
Description |
Comments
|
0x0 |
0x4 |
Point* |
mpaPoints |
Points on graph |
|
0x4 |
0x1 |
uint8_t |
mu8NumOfPoints |
|
|
0x5 |
0x1 |
int8_t |
mi8XAxis |
|
|
0x6 |
0x1 |
int8_t |
mi8YAxis |
|
|
0x7 |
0x1 |
int8_t |
mPad |
|
|
Offset |
Length |
Type |
Name |
Description |
Comments
|
0x0 |
0x8 |
Point* |
mpaPoints |
Points on graph |
|
0x8 |
0x1 |
uint8_t |
mu8NumOfPoints |
|
|
0x9 |
0x1 |
int8_t |
mi8XAxis |
|
|
0xA |
0x1 |
int8_t |
mi8YAxis |
|
|
0xB |
0x1 |
int8_t |
mPad |
|
|
0xC |
0x4 |
|
|
padding |
|
BrnSound::Vehicles::Engines::Point[edit | edit source]
Offset |
Size |
Type |
Name |
Description |
More Information |
Comments
|
0x0 |
0x4 |
float32_t |
mfXpos |
X position on graph |
|
|
0x4 |
0x4 |
float32_t |
mfYpos |
Y position on graph |
|
|