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

64 lines
1.8 KiB
C++

#pragma once
class IVEngineClient {
public:
void GetScreenSize(int& width, int& height) {
return GetVirtualFunction<void(*)(IVEngineClient*, int&, int&)>(this, 5)(this, width, height);
}
bool GetPlayerInfo(int index, player_info_t* infoptr) {
return GetVirtualFunction<bool(*)(IVEngineClient*, int, player_info_t*)>(this, 8)(this, index, infoptr);
}
int GetPlayerForUserID(int userid) {
return GetVirtualFunction<int(*)(IVEngineClient*, int)>(this, 9)(this, userid);
}
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);
}
};