-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCSGO_HX.h
83 lines (68 loc) · 1.87 KB
/
CSGO_HX.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
// The following ifdef block is the standard way of creating macros which make exporting
// from a DLL simpler. All files within this DLL are compiled with the CSGO_HX_EXPORTS
// symbol defined on the command line. This symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see
// CSGO_HX_API functions as being imported from a DLL, whereas this DLL sees symbols
// defined with this macro as being exported.
#ifndef CSGO_HX
#define CSGO_H
#pragma once
#ifdef CSGO_HX_EXPORTS
#define DLLEXP __declspec(dllexport)
#else
#define DLLEXP __declspec(dllimport)
#endif
#include <Windows.h>
#include "misc.h"
#include <string>
#include "BaseEntity.h"
#include "ErrorCodes.h"
#include "Profiler.h"
#include <mutex>
#if _HAS_CXX17
#include <algorithm>
#endif
#define NETVARPROXY(funcname) void funcname (CRecvProxyData *pData, void *pStruct, void *pOut)
#define MAX_PLAYERS 64
#if _HAS_CXX17
using std::clamp;
#else
#define clamp(val, min, max) (((val) > (max)) ? (max) : (((val) < (min)) ? (min) : (val)))
#endif
typedef unsigned char uint8_t;
extern Vector vecZero;
extern QAngle angZero;
#define AIMBOT_KEY 0x43
#define TRIGGERBOT_KEY VK_XBUTTON2
/* Glow Object structure in csgo */
/*
struct glow_t
{
DWORD dwBase;
float r;
float g;
float b;
float a;
uint8_t unk1[16];
bool m_bRenderWhenOccluded;
bool m_bRenderWhenUnoccluded;
bool m_bFullBloom;
uint8_t unk2[10];
};
*/
extern RecvVarProxyFn OriginalSmokeProxy;
extern NETVARPROXY(SmokeProxy);
void InitTime();
HANDLE FindHandle(std::string name);
extern bool CrashingServer;
extern bool GotCSGORect;
extern std::mutex GotCSGORectMutex;
double QPCTime();
void GetCSGORect();
extern float Time;
extern Vector CenterOfScreen;
extern bool AllocedConsole;
void AllocateConsole();
extern DWORD WINAPI CheatInit(LPVOID lParam);
#define THINK_SPEED (1.0f / 60.0f)
#endif