-
Notifications
You must be signed in to change notification settings - Fork 16
/
SDK.hpp
136 lines (118 loc) · 3.81 KB
/
SDK.hpp
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#pragma once
#include <Windows.h>
#include <memory>
#include <array>
#include <deque>
#include "IfaceMngr.hpp"
#include "misc/Enums.hpp"
#include "VFunc.hpp"
#include "math/VMatrix.hpp"
#include "math/QAngle.hpp"
#include "math/Vector.hpp"
#include "misc/Studio.hpp"
#include "interfaces/IAppSystem.hpp"
#include "interfaces/IBaseClientDll.hpp"
#include "interfaces/IClientEntity.hpp"
#include "interfaces/IClientEntityList.hpp"
#include "interfaces/IClientMode.hpp"
#include "interfaces/IConVar.hpp"
#include "interfaces/ICvar.hpp"
#include "interfaces/IEngineTrace.hpp"
#include "interfaces/IVEngineClient.hpp"
#include "interfaces/IVDebugOverlay.hpp"
#include "interfaces/ISurface.hpp"
#include "interfaces/CInput.hpp"
#include "interfaces/IVModelInfoClient.hpp"
#include "interfaces/IVModelRender.hpp"
#include "interfaces/IRenderView.hpp"
#include "interfaces/IGameEventmanager.hpp"
#include "interfaces/IMaterialSystem.hpp"
#include "interfaces/IMoveHelper.hpp"
#include "interfaces/IMDLCache.hpp"
#include "interfaces/IPrediction.hpp"
#include "interfaces/IPanel.hpp"
#include "interfaces/IEngineSound.hpp"
#include "interfaces/IViewRender.hpp"
#include "interfaces/CClientState.hpp"
#include "interfaces/IPhysics.hpp"
#include "interfaces/IInputSystem.h"
#include "interfaces/memalloc.h"
#include "interfaces/IViewRenderBeams.hpp"
#include "interfaces/ILocalize.hpp"
#include "misc/Convar.hpp"
#include "misc/CUserCmd.hpp"
#include "misc/glow_outline_effect.hpp"
#include "misc/datamap.hpp"
#include "NetMngr.hpp"
struct IDirect3DDevice9;
extern IVEngineClient *g_EngineClient;
extern IBaseClientDLL *g_CHLClient;
extern IClientEntityList *g_EntityList;
extern CGlobalVarsBase *g_GlobalVars;
extern IEngineTrace *g_EngineTrace;
extern ICvar *g_CVar;
extern IPanel *g_VGuiPanel;
extern IClientMode *g_ClientMode;
extern IVDebugOverlay *g_DebugOverlay;
extern ISurface *g_VGuiSurface;
extern CInput *g_Input;
extern IVModelInfoClient *g_MdlInfo;
extern IVModelRender *g_MdlRender;
extern IVRenderView *g_RenderView;
extern IMaterialSystem *g_MatSystem;
extern IGameEventManager2 *g_GameEvents;
extern IMoveHelper *g_MoveHelper;
extern IMDLCache *g_MdlCache;
extern IPrediction *g_Prediction;
extern CGameMovement *g_GameMovement;
extern IEngineSound *g_EngineSound;
extern CGlowObjectManager *g_GlowObjManager;
extern CClientState *g_ClientState;
extern IPhysicsSurfaceProps *g_PhysSurface;
extern IInputSystem *g_InputSystem;
extern DWORD *g_InputInternal;
extern IMemAlloc *g_pMemAlloc;
extern IViewRenderBeams *g_RenderBeams;
extern ILocalize *g_Localize;
#include "misc/EHandle.hpp"
extern C_BasePlayer *g_LocalPlayer;
class C_PlayerStored;
namespace Offsets
{
extern DWORD invalidateBoneCache;
extern DWORD smokeCount;
extern DWORD playerResource;
extern DWORD bOverridePostProcessingDisable;
extern DWORD getSequenceActivity;
extern DWORD lgtSmoke;
extern DWORD dwCCSPlayerRenderablevftable;
}
namespace Global
{
extern float smt;
extern QAngle visualAngles;
extern bool bSendPacket;
extern bool bAimbotting;
extern bool bVisualAimbotting;
extern QAngle vecVisualAimbotAngs;
extern CUserCmd *userCMD;
extern int nChockedTicks;
extern int iShotsFired;
extern char *szLastFunction;
extern HMODULE hmDll;
extern bool bShouldChoke;
extern bool bFakewalking;
extern Vector vecUnpredictedVel;
}
namespace Proxies
{
void didSmokeEffect(const CRecvProxyData *pData, void *pStruct, void *pOut);
}
extern RecvVarProxyFn o_didSmokeEffect;
#define TIME_TO_TICKS(dt) ((int)( 0.5f + (float)(dt) / g_GlobalVars->interval_per_tick))
#define TICKS_TO_TIME(t) (g_GlobalVars->interval_per_tick * (t) )
#ifdef _DEBUG
#define FUNCTION_GUARD Global::szLastFunction = __FUNCTION__
#else
#define FUNCTION_GUARD std::runtime_error("ERROR! Module shipped in release with debug information.\n");
#endif