Make gamepad scoreboard toggable and scrollable

This commit is contained in:
Jan
2021-09-04 11:15:34 +02:00
parent ac57df648e
commit cb2e24a52f
5 changed files with 70 additions and 6 deletions

View File

@ -39,6 +39,10 @@ namespace Game
CG_GetClientNum_t CG_GetClientNum = CG_GetClientNum_t(0x433700);
CG_PlayBoltedEffect_t CG_PlayBoltedEffect = CG_PlayBoltedEffect_t(0x00430E10);
CG_GetBoneIndex_t CG_GetBoneIndex = CG_GetBoneIndex_t(0x00504F20);
CG_ScoresDown_f_t CG_ScoresDown_f = CG_ScoresDown_f_t(0x580370);
CG_ScoresUp_f_t CG_ScoresUp_f = CG_ScoresUp_f_t(0x5802C0);
CG_ScrollScoreboardUp_t CG_ScrollScoreboardUp = CG_ScrollScoreboardUp_t(0x47A5C0);
CG_ScrollScoreboardDown_t CG_ScrollScoreboardDown = CG_ScrollScoreboardDown_t(0x493B50);
CL_GetClientName_t CL_GetClientName = CL_GetClientName_t(0x4563D0);
CL_IsCgameInitialized_t CL_IsCgameInitialized = CL_IsCgameInitialized_t(0x43EB20);

View File

@ -60,6 +60,18 @@ namespace Game
typedef std::int32_t(__cdecl* CG_GetBoneIndex_t)(std::int32_t, std::uint32_t name, char* index);
extern CG_GetBoneIndex_t CG_GetBoneIndex;
typedef void(__cdecl * CG_ScoresDown_f_t)();
extern CG_ScoresDown_f_t CG_ScoresDown_f;
typedef void(__cdecl * CG_ScoresUp_f_t)();
extern CG_ScoresUp_f_t CG_ScoresUp_f;
typedef void(__cdecl * CG_ScrollScoreboardUp_t)(cg_s* cgameGlob);
extern CG_ScrollScoreboardUp_t CG_ScrollScoreboardUp;
typedef void(__cdecl * CG_ScrollScoreboardDown_t)(cg_s* cgameGlob);
extern CG_ScrollScoreboardDown_t CG_ScrollScoreboardDown;
typedef char*(__cdecl * CL_GetClientName_t)(int localClientNum, int index, char *buf, size_t size);
extern CL_GetClientName_t CL_GetClientName;

View File

@ -6169,21 +6169,22 @@ namespace Game
struct __declspec(align(8)) cg_s
{
playerState_s predictedPlayerState;
char _pad0[0x67638];
char _pad0[0x254];
void* snap;
void* nextSnap;
char _pad1[0x673DC];
int frametime; // + 0x6A754
char _pad1[0x960C]; // + 0x6A758
char _pad2[0x960C]; // + 0x6A758
float compassMapWorldSize[2]; // + 0x73D64
char _pad2[0x74]; // + 0x73D6C
char _pad3[0x74]; // + 0x73D6C
float selectedLocation[2]; // + 0x73DE0
float selectedLocationAngle;
float selectedAngleLocation[2];
float selectedLocationPrev[2];
float selectedLocationAnglePrev;
char _pad3[0x89740];
char _pad4[0x89740];
};
constexpr auto aaaaaaa1 = sizeof(cg_s);
#pragma endregion
#ifndef IDA