css-linux-cheat/include/cstrike/Interfaces/IVEngineClient.h

52 lines
1.4 KiB
C++

#pragma once
class IVEngineClient {
public:
bool Con_IsVisible() {
return GetVirtualFunction<bool(*)(IVEngineClient*)>(this, 11)(this);
}
int GetLocalPlayer() {
return GetVirtualFunction<int(*)(IVEngineClient*)>(this, 12)(this);
}
float Time() {
return GetVirtualFunction<float(*)(IVEngineClient*)>(this, 14)(this);
}
float GetLastTimeStamp() {
return GetVirtualFunction<float(*)(IVEngineClient*)>(this, 15)(this);
}
void GetViewAngles(QAngle& angles) {
return GetVirtualFunction<void(*)(IVEngineClient*, QAngle&)>(this, 19)(this, angles);
}
void SetViewAngles(QAngle& angles) {
return GetVirtualFunction<void(*)(IVEngineClient*, QAngle&)>(this, 20)(this, angles);
}
int GetMaxClients() {
return GetVirtualFunction<int(*)(IVEngineClient*)>(this, 21)(this);
}
bool IsInGame() {
return GetVirtualFunction<bool(*)(IVEngineClient*)>(this, 26)(this);
}
bool IsConnected() {
return GetVirtualFunction<bool(*)(IVEngineClient*)>(this, 27)(this);
}
const char* GetGameDirectory() {
return GetVirtualFunction<const char*(*)(IVEngineClient*)>(this, 35)(this);
}
const char* GetLevelName() {
return GetVirtualFunction<const char*(*)(IVEngineClient*)>(this, 51)(this);
}
void ClientCmd_Unrestricted(const char* command) {
return GetVirtualFunction<void(*)(IVEngineClient*, const char*)>(this, 106)(this, command);
}
};