-
Notifications
You must be signed in to change notification settings - Fork 1
/
Offsets.h
107 lines (90 loc) · 2.86 KB
/
Offsets.h
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
#pragma once
#include "CommonIncludes.h"
#include "Utilities.h"
typedef void(__cdecl* IsReadyFn)();
namespace Offsets
{
// Sets up all the shit we need
void Initialise();
// Addresses of loaded game modules
namespace Modules
{
extern DWORD Client;
extern DWORD Engine;
extern DWORD VGUI2;
extern DWORD VGUISurface;
extern DWORD Material;
extern DWORD VPhysics;
extern DWORD Stdlib;
};
extern IsReadyFn IsReady;
// Virtual Method Table Indexes
namespace VMT
{
//CHL Client
extern DWORD CHL_GetAllClasses;
//Engine Client
extern DWORD Engine_GetScreenSize;
extern DWORD Engine_GetPlayerInfo;
extern DWORD Engine_GetLocalPlayer;
extern DWORD Engine_Time;
extern DWORD Engine_GetViewAngles;
extern DWORD Engine_SetViewAngles;
extern DWORD Engine_GetMaxClients;
extern DWORD Engine_IsConnected;
extern DWORD Engine_IsInGame;
extern DWORD Engine_WorldToScreenMatrix;
extern DWORD Engine_GetNetChannelInfo;
extern DWORD Engine_ClientCmd_Unrestricted;
// Panels
extern DWORD Panel_GetName;
extern DWORD Panel_PaintTraverse;
// Surface
extern DWORD Surface_DrawSetColorA;
extern DWORD Surface_DrawSetColorB;
extern DWORD Surface_DrawFilledRect;
extern DWORD Surface_DrawOutlinedRect;
extern DWORD Surface_DrawLine;
extern DWORD Surface_DrawSetTextFont;
extern DWORD Surface_DrawSetTextColorA;
extern DWORD Surface_DrawSetTextColorB;
extern DWORD Surface_DrawSetTextPos;
extern DWORD Surface_DrawPrintText;
extern DWORD Surface_DrawSetTextureRGBA;
extern DWORD Surface_DrawSetTexture;
extern DWORD Surface_CreateNewTextureID;
extern DWORD Surface_FontCreate;
extern DWORD Surface_SetFontGlyphSet;
extern DWORD Surface_GetTextSize;
extern DWORD Surface_DrawOutlinedCircle;
extern DWORD Surface_SurfaceGetCursorPos;
extern DWORD Surface_DrawTexturedPolygon;
extern DWORD Material_GetName;
extern DWORD Material_SetMaterialVarFlag;
extern DWORD Material_GetMaterialVarFlag;
extern DWORD Material_AlphaModulate;
extern DWORD Material_ColorModulate;
extern DWORD Material_IncrementReferenceCount;
extern DWORD MaterialSystem_FindMaterial;
extern DWORD MaterialSystem_CreateMaterial;
extern DWORD ModelRender_ForcedMaterialOverride;
extern DWORD ModelRender_DrawModelExecute;
extern DWORD ModelInfo_GetModelName;
extern DWORD ModelInfo_GetStudiomodel;
extern DWORD RenderView_SetBlend;
extern DWORD RenderView_SetColorModulation;
// Weapon entities
extern DWORD Weapon_GetSpread;
};
// Addresses of engine functions to call
namespace Functions
{
extern DWORD KeyValues_KeyValues;
extern DWORD KeyValues_LoadFromBuffer;
extern DWORD dwCalcPlayerView;
extern DWORD dwGetPlayerCompRank;
extern DWORD dwIsReady;
extern DWORD GetWeaponData;
extern DWORD IsReadySig;
};
};