-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathSKL(rs).bt
120 lines (110 loc) · 1.61 KB
/
SKL(rs).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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
//------------------------------------------------
//--- 010 Editor v7.0 Binary Template
//
// File: SKL.bt
// Authors: Alexandr Evdokimov
// Version: 0.5
// Purpose: Rainbow Six SKL File
//
// History:
// 2017 v0.5 Initial release
//
//------------------------------------------------
typedef struct {
struct {
FLOAT x;
FLOAT y;
FLOAT z;
} XAXIS;
struct {
FLOAT x;
FLOAT y;
FLOAT z;
} YAXIS;
struct {
FLOAT x;
FLOAT y;
FLOAT z;
} ZAXIS;
struct {
FLOAT Y;
FLOAT X;
FLOAT Z;
} POSITION;
} TRANSFORMATION_MATRIX;
UINT BoneCount;
typedef struct {
// relative
struct {
FLOAT X;
FLOAT Y;
FLOAT Z;
} POSITION_REL;
//
struct {
FLOAT X;
FLOAT Y;
FLOAT Z;
FLOAT W;
} ROTATION_REL;
//
TRANSFORMATION_MATRIX Matrix;
// absolute
struct {
FLOAT X;
FLOAT Y;
FLOAT Z;
} POSITION_ABS;
//
struct {
FLOAT X;
FLOAT Y;
FLOAT Z;
FLOAT W;
} ROTATION_ABS;
//
FLOAT X;
FLOAT Y;
FLOAT Z;
FLOAT W;
//
UINT Length;
CHAR Name[Length];
//Printf("\"" + Name + "\", ");
UINT BoneIndex;
BYTE A;
if (A == 1)
{
//
FLOAT X;
FLOAT Y;
FLOAT Z;
//
FLOAT Unknown;
//
FLOAT X;
FLOAT Y;
FLOAT Z;
//
FLOAT X;
FLOAT Y;
FLOAT Z;
//
FLOAT Unknown;
}
} BONE <optimize=false, name=getBoneName>;
string getBoneName(BONE &Bone)
{
return Bone.Name;
}
void ReadBone()
{
BYTE Cycle;
if (Cycle == 1)
ReadBone();
BYTE Cycle;
if (Cycle == 1)
ReadBone();
BONE Bone;
};
ReadBone();