/
ObjectLayout.bt
62 lines (51 loc) · 1.48 KB
/
ObjectLayout.bt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//------------------------------------------------
//--- 010 Editor v11.0 Binary Template
//
// File: Sonic Riders Object Layout File (ID 000305 / Obj 00000)
// Authors: Sewer56
// Version: 1.0.0
//------------------------------------------------
struct Vector3
{
float x;
float y;
float z;
};
struct SetObjectMode
{
// Flags
int gamecube : 1;
int playstation : 1;
int xbox : 1;
// Mode Flags
int race : 1; // Show in race
int tag : 1; // Show in tag
int survival : 1; // Show in survival race
// Mission Flags
int mission_1 : 1;
int mission_2 : 1;
int mission_3 : 1;
int mission_4 : 1;
int mission_5 : 1;
int mission_6 : 1;
int mission_7 : 1;
};
struct SetObject
{
ushort id;
byte maxPlayerCountToShow; // "view" in Riders Proto
char portalChar; // Still need to 100% confirm with beta this is to do with culling
SetObjectMode objMode;
int attribute; // Typically 0. Object attribute type. Referred to as "attr" in beta.
Vector3 position;
Vector3 rotation; // Degrees
Vector3 scale; // Multiplier, so 1,1,1 is normal scale.
};
// File Structure
ushort objectCount;
ushort unknownMagic; // 32768
int objectCountMultiplyBy46Add8;
SetObject objects[objectCount];
// I have no idea what this does; seems to have no effect on gameplay.
// 1, 2, 4 are known valid values. Sometimes there are 5 and 6 so likely flags.
ushort unknownObjectFlags[objectCount];