Loop Model

From Burnout Wiki
LoopModel
aka {{{othernames}}}
No Example
Resource names Unknown
Type ID 0x10000
Category Game-specific
(Burnout Paradise)
Memory
distribution
Main Memory only
Imports Unknown
Imported by Unknown
Editor
available?
No

Loop models match engine RPM to sounds via a graph.

Structures

Note: PC (Remastered) loop models are 64-bit, unlike with other resource types.

BrnSound::Vehicles::Engines::LoopModelData

32-bit

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

64-bit

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

Note: Field order changes between 32 and 64 bit, unlike with other resource types.

32-bit

Offset Length Type Name Description Comments
0x0 0x4 Name mWaveName Name hash
0x4 0x4 Graph* mpaGraphs
0x8 0x1 uint8_t mu8NumOfGraphs
0x9 0x3 Padding

64-bit

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

32-bit

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

64-bit

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

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