From cdd6c28dac856272b8dd16eaf12b97f739723700 Mon Sep 17 00:00:00 2001 From: aixxe Date: Mon, 19 Dec 2016 18:15:59 +0000 Subject: [PATCH] Add IVEngineClient interface. Signed-off-by: aixxe --- include/cstrike/Interfaces/IVEngineClient.h | 52 +++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 include/cstrike/Interfaces/IVEngineClient.h diff --git a/include/cstrike/Interfaces/IVEngineClient.h b/include/cstrike/Interfaces/IVEngineClient.h new file mode 100644 index 0000000..9e01e41 --- /dev/null +++ b/include/cstrike/Interfaces/IVEngineClient.h @@ -0,0 +1,52 @@ +#pragma once + +class IVEngineClient { + public: + bool Con_IsVisible() { + return GetVirtualFunction(this, 11)(this); + } + + int GetLocalPlayer() { + return GetVirtualFunction(this, 12)(this); + } + + float Time() { + return GetVirtualFunction(this, 14)(this); + } + + float GetLastTimeStamp() { + return GetVirtualFunction(this, 15)(this); + } + + void GetViewAngles(QAngle& angles) { + return GetVirtualFunction(this, 19)(this, angles); + } + + void SetViewAngles(QAngle& angles) { + return GetVirtualFunction(this, 20)(this, angles); + } + + int GetMaxClients() { + return GetVirtualFunction(this, 21)(this); + } + + bool IsInGame() { + return GetVirtualFunction(this, 26)(this); + } + + bool IsConnected() { + return GetVirtualFunction(this, 27)(this); + } + + const char* GetGameDirectory() { + return GetVirtualFunction(this, 35)(this); + } + + const char* GetLevelName() { + return GetVirtualFunction(this, 51)(this); + } + + void ClientCmd_Unrestricted(const char* command) { + return GetVirtualFunction(this, 106)(this, command); + } +}; \ No newline at end of file