Repository navigation
Expand file tree
/
Copy pathvars.cpp
More file actions
83 lines (68 loc) · 3.79 KB
/
Copy pathvars.cpp
File metadata and controls
83 lines (68 loc) · 3.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#include "vars.h"
/*
TigerSnail Hack: Source
Developed by sk0r / Czybik
Credits: sk0r, OllyDbg, Source SDK
Version: 0.5
Visit: http://sk0r.sytes.net
Mail Czybik_Stylez@gmx.de
File: vars.cpp: Data objects
*/
//======================================================================
std::string g_szModuleDir(""); //Path to module file
std::string g_szLogFile(""); //Full file name of log output file
HMODULE g_hClientDll = NULL; //Handle to client.dll
HANDLE g_hSearchThread; //Handle to the search thread
CreateInterfaceFn g_appSystemFactory; //Pointer to appSystemFactory function from engine.dll
client_import_s g_ClientImports[IMPORT_IFACE_AMOUNT] = { //List of some importable interfaces
{"VEngineClient013", NULL},
{"VStudioRender026", NULL},
{"VDebugOverlay004", NULL},
{"VGUI_Surface031", NULL},
{"GAMEEVENTSMANAGER002", NULL},
{"InputSystemVersion001", NULL},
{"EngineTraceClient004", NULL}
//Add more here
};
CHLClient_Context_s g_CHLClient_Ctx = {0}; //CHLClient context
IPanel_Context_s g_IPanel_Ctx; //IPanel context
ICvar_Context_s g_ICvar_Ctx; //ICvar context
_IVEngineClient* g_pEngineClient = NULL; //Pointer to an instance of IVEngineClient
_CClientEntityList* g_pClientEntityList = NULL; //Pointer to an instance of CClientEntityList
_IVDebugOverlay* g_pDebugOverlay = NULL; //Pointer to an instance of IVDebugOverlay
_IGameEventManager2* g_pGameEventManager = NULL; //Pointer to an instance of IGameEventManager2
_IInputSystem* g_pInputSystem = NULL; //Pointer to an instance of IInputSystem
_IInput* g_pInput = NULL; //Pointer to an instance of IInput
_IEngineTrace* g_pEngineTrace = NULL; //Pointer to an instance of IEngineClient
HWND g_hGameWindow = NULL; //Handle to game window
screensize_s g_ScreenSize; //Screen resolution
bool g_bMapInit = false; //Whether map has been initialized
bool g_bOnInitialize = false; //Whether OnInitialize() has already been called
bool g_bMenuToggle = false; //Menu toggle indicator
bool g_bSnakeToggle = false; //Snake toggle indicator
bool g_bInfoboxToggle = false; //Infobox toggle indicator
bool g_bIsInGame = false; //Whether in-game context is given or not
bool g_bInAttack = false; //Whether local player is attacking
CLog* g_pLog = NULL; //Log manager instance
CVFTHookMgr g_oHookMgr; //Hook manager instance
CDelayedClientCmd g_oDelayedClientCmd; //Delayed client cmd manager instance
CzyConfigMgr::CConfigInt g_oConfigInt; //Configuration manager instance
CPlayerMgr g_oPlayerMgr; //Player manager class instance
CzyConfigMgr::CCVar::cvar_s* g_pcvNameESP = NULL; //CVar for name esp
CzyConfigMgr::CCVar::cvar_s* g_pcvSteamIDESP = NULL; //CVar for SteamID esp
CzyConfigMgr::CCVar::cvar_s* g_pcvDistanceESP = NULL; //CVar for distance esp
CzyConfigMgr::CCVar::cvar_s* g_pcvHealthESP = NULL; //CVar for health esp
CzyConfigMgr::CCVar::cvar_s* g_pcvDecoyESP = NULL; //CVar for decoy esp
CzyConfigMgr::CCVar::cvar_s* g_pcvBombESP = NULL; //CVar for bomb esp
CzyConfigMgr::CCVar::cvar_s* g_pcvIgnoreTeammatesESP = NULL; //CVar to indicate whether ignore teammates for esp or not
CzyConfigMgr::CCVar::cvar_s* g_pcvColorModeESP = NULL; //CVar to indicate whether use team related or player context team related colors
CzyConfigMgr::CCVar::cvar_s* g_pcvPlayerModelColor = NULL; //CVar for playermodel color
CzyConfigMgr::CCVar::cvar_s* g_pcvMenuKey = NULL; //CVar for menu key
CzyConfigMgr::CCVar::cvar_s* g_pcvSnakeKey = NULL; //CVar for snake key
CzyConfigMgr::CCVar::cvar_s* g_pcvInfoboxKey = NULL; //CVar for infobox key
CzyConfigMgr::CCVar::cvar_s* g_pcvSnakeVelocity = NULL; //CVar for snake velocity
std::string g_szCurrentMapName(""); //Current map name
CPlayTime g_oPlayTime; //Playtime manager
accuracy_s g_sAccuracy; //Accuracy data
bomb_data_s g_sBombData = {false, false, false, NULL, -1, 0}; //Bomb data
//======================================================================