This commit is contained in:
krystalgamer 2024-07-29 17:42:44 +02:00
parent 30a3189e16
commit 9d3880c81b
3 changed files with 26 additions and 0 deletions

View File

@ -453,3 +453,16 @@ void validate_CCamera(void){
VALIDATE(CCamera, field_2E8, 0x2E8);
}
void validate_SCamera(void)
{
VALIDATE_SIZE(SCamera, 0x54);
VALIDATE(SCamera, Style, 0x0);
VALIDATE(SCamera, Position, 0x4);
VALIDATE(SCamera, Focus, 0x14);
VALIDATE(SCamera, Distance, 0x24);
VALIDATE(SCamera, Height, 0x28);
VALIDATE(SCamera, Angles, 0x2C);
VALIDATE(SCamera, Transform, 0x34);
}

View File

@ -9,6 +9,17 @@
static int * const gCameraRelated = (int*)0x56F254;
struct SCamera
{
u32 Style;
VECTOR Position;
VECTOR Focus;
i32 Distance;
i32 Height;
SVECTOR Angles;
MATRIX Transform;
};
enum ECameraMode {
ECam_mode_0x10 = 0x10,
ECam_mode_0x11 = 0x11,
@ -185,5 +196,6 @@ public:
EXPORT __int16 CalcTheta(__int16, __int16);
void validate_CCamera(void);
void validate_SCamera(void);
#endif

View File

@ -373,6 +373,7 @@ int main()
validate_CGouradRibbon();
validate_CCopBulletTracer();
validate_CCombatImpactRing();
validate_SCamera();
puts("[*] Validation done!");