UwUHax/globalvars.h
2021-08-27 18:58:23 +07:00

35 lines
1.1 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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);
}
};