-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhack.h
97 lines (76 loc) · 2.35 KB
/
hack.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
#ifndef __HACK_H_
#define __HACK_H_
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/keysym.h>
#include <X11/keysymdef.h>
#include <X11/extensions/XTest.h>
#include <chrono>
#include <thread>
#include <stddef.h>
#include "remote.h"
#include "types.h"
#include "logger.h"
using namespace std;
#define TEAM_SPECTATOR 1
#define LIFE_ALIVE 0 // alive
#define LIFE_DYING 1 // playing death animation or still falling off of a ledge waiting to hit ground
#define LIFE_DEAD 2 // dead. lying still.
#define LIFE_RESPAWNABLE 3
#define LIFE_DISCARDBODY 4
#define MAX_TRAIL_LENGTH 30
#define MAX_PLAYER_NAME_LENGTH 128
namespace hack {
template<class T> class CUtlVector {
public:
T* DataPtr; // 0000 (054612C0)
unsigned int Max; // 0004 (054612C4)
unsigned int unk02; // 0008 (054612C8)
unsigned int Count; // 000C (054612CC)
unsigned int DataPtrBack; // 0010 (054612D0)
};
struct GlowObjectDefinition_t {
bool ShouldDraw( int nSlot ) const {
return m_pEntity && ( m_nSplitScreenSlot == -1 || m_nSplitScreenSlot == nSlot ) && ( m_bRenderWhenOccluded || m_bRenderWhenUnoccluded );
}
bool IsUnused() const {
return m_nNextFreeSlot != GlowObjectDefinition_t::ENTRY_IN_USE;
}
long writeStart() {
return (long(&(this)->m_flGlowRed) - long(this));
}
long writeEnd() {
return (long(&(this)->unk2) - long(this));
}
void* m_pEntity;
float m_flGlowRed;
float m_flGlowGreen;
float m_flGlowBlue;
float m_flGlowAlpha;
uint8_t unk0[16];
bool m_bRenderWhenOccluded : 8;
bool m_bRenderWhenUnoccluded : 8;
bool m_bFullBloomRender : 8;
unsigned char unk1;
int m_nFullBloomStencilTestValue;
int m_nSplitScreenSlot;
int m_nNextFreeSlot;
unsigned char unk2[4];
static const int END_OF_FREE_LIST = -1;
static const int ENTRY_IN_USE = -2;
}; // sizeof() == 0x34
class CGlowObjectManager
{
public:
CUtlVector<GlowObjectDefinition_t> m_GlowObjectDefinitions; // 0000
int m_nFirstFreeSlot; // 0014 (054612D4)
unsigned int unk1; // 0018 (054612D8)
unsigned int unk2; // 001C (054612DC)
unsigned int unk3; // 0020 (054612E0)
unsigned int unk4; // 0024 (054612E4)
unsigned int unk5; // 0028 (054612E8)
};
extern void Glow(double colors[12], remote::Handle* csgo, remote::MapModuleMemoryRegion* client);
extern void Bhop(remote::Handle* csgo, remote::MapModuleMemoryRegion* client, Display* display);
};
#endif