-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMain.cpp
More file actions
44 lines (34 loc) · 992 Bytes
/
Main.cpp
File metadata and controls
44 lines (34 loc) · 992 Bytes
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
#include "BSP/BSPParser.hpp"
#include "Include.hpp"
#include "BaseEntity.hpp"
#include "Client.hpp"
#include "GlowObject.hpp"
#include "Hacks.hpp"
#include <iostream>
#include <chrono>
#include <thread>
using namespace hazedumper;
int main(int argc, char** argv)
{
Memory memory;
BSPParser bspParser;
Client client(&memory);
Hacks hacks(&memory, &client, &bspParser);
while (client.getIsInGame())
{
std::this_thread::sleep_for(std::chrono::milliseconds(2));
const char* gameDirectory = client.getGameDirectory();
const char* mapDirectory = client.getMapDirectory();
bspParser.parse_map(gameDirectory, mapDirectory);
//hacks.glowESP();
//hacks.noFlash();
const float FOV_RANGE = 10.f;
if ((GetAsyncKeyState(VK_XBUTTON2) & KEY_DOWN))
hacks.aimAssist(FOV_RANGE, HEAD_BONE_ID);
else
client.resetSensitivity(); // re-enable user input
if (GetAsyncKeyState(VK_SPACE) & KEY_DOWN)
hacks.bunnyHop();
}
return 0;
}