-
Notifications
You must be signed in to change notification settings - Fork 1
/
Main.cpp
86 lines (78 loc) · 2.26 KB
/
Main.cpp
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
#include "windows.h"
#include <iostream>
#include <TlHelp32.h>
#include <string>
#include <math.h>
#include <mmsystem.h>//sound
#include "Structs.h"
#include "Mem.h"
#include "Manager.h"
#pragma comment(lib, "winmm.lib")
float main() {
info *offset = new info();
tools *toolsPtr = new tools();
CM* memoryPtr = nullptr;
CM CM(FindWindow(NULL, L"Counter-Strike: Global Offensive"));
memoryPtr = &CM;
Manager manager(offset, toolsPtr, memoryPtr);
while (1) {
manager.update();
if (GetAsyncKeyState(VK_INSERT)) {
toolsPtr->esp = !toolsPtr->esp;
Sleep(300);
std::cout << "esp: " << toolsPtr->esp << std::endl;
if (toolsPtr->esp) {
PlaySound(TEXT("esp.wav"), NULL, SND_FILENAME | SND_ASYNC);
}
else {
PlaySound(TEXT("!esp.wav"), NULL, SND_FILENAME | SND_ASYNC);
}
}
if (GetAsyncKeyState(VK_XBUTTON1)) {
toolsPtr->aimbot = !toolsPtr->aimbot;
Sleep(300);
std::cout << "aimbot: " << toolsPtr->aimbot << std::endl;
if (toolsPtr->aimbot) {
PlaySound(TEXT("aim.wav"), NULL, SND_FILENAME | SND_ASYNC);
}
else {
PlaySound(TEXT("!aim.wav"), NULL, SND_FILENAME | SND_ASYNC);
}
}
if (GetAsyncKeyState(VK_ADD)) {
std::cout << "legit aimbot, adds sleep to aimbot for each smooth, 0/1:false/true?";
std::cin >> toolsPtr->legit;
Sleep(300);
std::cout << "legit: " << toolsPtr->legit << std::endl;
if (toolsPtr->legit) {
std::cout << "enter fov: ";
std::cin >> toolsPtr->fov;
if (toolsPtr->fov < 0.0f || toolsPtr->fov > 90.0f) {
toolsPtr->fov = 1.0f;
}
std::cout << "fov = +-" << toolsPtr->fov << " degrees\n";
std::cout << "enter Smooth: ";
std::cin >> toolsPtr->smooth;
if (toolsPtr->smooth < 1) {
toolsPtr->smooth = 1;
}
std::cout << "smooth: " << toolsPtr->smooth << "\n";
}
else {
toolsPtr->smooth = 1;
std::cout << "smooth: " << toolsPtr->smooth << "\n";
Sleep(300);
std::cout << "enter new fov: ";
std::cin >> toolsPtr->fov;
if (toolsPtr->fov < 0.0f || toolsPtr->fov > 90.0f) {
toolsPtr->fov = 1.0f;
}
std::cout << "new fov = +-" << toolsPtr->fov << " degrees\n";
}
}
Sleep(2);
}
CM.endCM();
delete offset, toolsPtr, memoryPtr;
return 0;
}