UwUHax/engineclient.h
PixelGM 311d55ec1f 2 New Items (Look Desc)
IGNOREINFECTED to INGNOREINFECTEDVISUALS

Added Ignore Witch on Aimbot
2021-08-28 13:35:33 +07:00

81 lines
1.8 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 INetChannel
{
private:
__forceinline float GetLatency(int flow)
{
return getvfunc< float(__thiscall*)(decltype(this), int) >(this, 9)(this, flow);
}
};
class CEngineClient
{
public:
void GetScreenSize(int& width, int& height)
{
typedef void(__thiscall* OriginalFn)(PVOID, int&, int&);
return getvfunc<OriginalFn>(this, 5)(this, width, height);
}
int GetLocalPlayer(VOID)
{
typedef int(__thiscall* OriginalFn)(PVOID);
return getvfunc<OriginalFn>(this, 12)(this);
}
void GetViewAngles(Vector& vAngles)
{
typedef void(__thiscall* OriginalFn)(PVOID, Vector&);
return getvfunc< OriginalFn >(this, 19)(this, vAngles);
}
void SetViewAngles(Vector& vAngles)
{
typedef void(__thiscall* oSetViewAngles)(PVOID, Vector&);
return getvfunc< oSetViewAngles >(this, 20)(this, vAngles);
}
int GetMaxClients()
{
typedef bool(__thiscall* oGetMaxClients)(PVOID);
return getvfunc< oGetMaxClients >(this, 21)(this);
}
INetChannel* GetNetChannelInfo(void)
{
typedef INetChannel* (__thiscall* OriginalFn)(PVOID);
return getvfunc<OriginalFn>(this, 74)(this);
}
};
class CEntityList
{
public:
CBaseEntity* GetClientEntity(int entnum)
{
typedef CBaseEntity* (__thiscall* OriginalFn)(PVOID, int);
return getvfunc<OriginalFn>(this, 3)(this, entnum);
}
CBaseEntity *GetClientEntityFromHandle(HANDLE hEnt)
{
typedef CBaseEntity* (__thiscall* OriginalFn)(PVOID, HANDLE);
return getvfunc<OriginalFn>(this, 4)(this, hEnt);
}
int GetHighestEntityIndex(void)
{
typedef int(__thiscall* OriginalFn)(PVOID);
return getvfunc<OriginalFn>(this, 8)(this);
}
};
class HLCLient
{
public:
ClientClass* GetAllClasses(VOID)
{
typedef ClientClass* (__thiscall* OriginalFn)(PVOID);
return getvfunc<OriginalFn>(this, 7)(this);
}
};