UwUHax/globalvars.h

35 lines
1.1 KiB
C
Raw Permalink Normal View History

2021-08-27 19:58:23 +08:00

class CGlobalVarsBase
{
public:
float realtime; // 0x0000
int framecount; // 0x0004
float absoluteframetime; // 0x0008
//float absoluteframe; // 0x000C
float curtime; // 0x0010
float frametime; // 0x0014
int maxClients; // 0x0018
int tickcount; // 0x001C
float interval_per_tick; // 0x0020
float interpolation_amount; // 0x0024
int simTicksThisFrame; // 0x0028
int network_protocol; // 0x002C
void* pSaveData; // 0x0030
bool m_bClient; // 0x0031
bool m_bRemoteClient; // 0x0032
private:
int nTimestampNetworkingBase;
int nTimestampRandomizeWindow;
};
class IPlayerInfoManager
{
public:
CGlobalVarsBase* GetGlobalVars()
{
typedef CGlobalVarsBase* (__thiscall* OriginalFn)(PVOID);
return getvfunc<OriginalFn>(this, 1)(this);
}
};