feat: Add CCameraAngles, CCameraManagerAngles, CGameCameraAngles, CPlayerAngles (#7)

This commit is contained in:
Davide Beatrici 2022-09-17 21:32:08 +02:00 committed by GitHub
parent 4a0157c69d
commit 5ca943f4cd
4 changed files with 55 additions and 0 deletions

12
camera/CCameraAngles.hpp Normal file
View File

@ -0,0 +1,12 @@
#pragma once
#include "../player/CPlayerAngles.hpp"
class CCameraAngles
{
public:
char pad_0000[960]; //0x0000
CPlayerAngles* angles; //0x03C0
char pad_03C8[60]; //0x03C8
}; //Size: 0x0408
static_assert(sizeof(CCameraAngles) == 0x408);

View File

@ -0,0 +1,10 @@
#pragma once
#include "CCameraAngles.hpp"
class CCameraManagerAngles
{
public:
CCameraAngles* m_angles; //0x0000
}; //Size: 0x0008
static_assert(sizeof(CCameraManagerAngles) == 0x8);

View File

@ -0,0 +1,11 @@
#pragma once
#include "CCameraManagerAngles.hpp"
class CGameCameraAngles
{
public:
CCameraManagerAngles* m_angles; //0x0000
char pad_0008[56]; //0x0008
}; //Size: 0x0040
static_assert(sizeof(CGameCameraAngles) == 0x40);

22
player/CPlayerAngles.hpp Normal file
View File

@ -0,0 +1,22 @@
#pragma once
#include "../rage/vector.hpp"
class CPlayerCameraData;
class CPlayerAngles
{
public:
char pad_0000[16]; //0x0000
CPlayerCameraData* m_cam_data; //0x0010
char pad_0018[24]; //0x0018
rage::fvector3 m_right; //0x0030
char pad_003C[4]; //0x003C
rage::fvector3 m_forward; //0x0040
char pad_004C[4]; //0x004C
rage::fvector3 m_up; //0x0050
char pad_005C[4]; //0x005C
rage::fvector3 m_position; //0x0060
char pad_006C[36]; //0x006C
}; //Size: 0x0090
static_assert(sizeof(CPlayerAngles) == 0x90);