This repository has been archived by the owner on Jun 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ClemXInterface.cpp
140 lines (119 loc) · 3.55 KB
/
ClemXInterface.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#include "Includes.h"
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
using std::cout;
void ClemX::UpdateMenu()
{
system("CLS");
SetConsoleTextAttribute(hConsole, 11);
cout << "ClemRebuild v3\n";
SetConsoleTextAttribute(hConsole, 7);
cout << "\n----------\n \n";
if (Hacks::AimBotConfig)
{
SetConsoleTextAttribute(hConsole, 11);
cout << "Current aimbot options : \n\n1.) Smoothing (lock-on slowness) : " << Hacks::AimSmoothing << "\n2.) Bone to aim : " << Hacks::AimBone << "\n3.) Aimbot FOV : " << Hacks::AimFov;
cout << "\n\nFor the bones, put 8 to aim for the head and 4 for the middle body the rest beats the race \nThe FoV will determine the distance before the aimbot locks-on (legit recommendation: 4)";
cout << "\n\nPlease enter the smoothing value (recommendation legit = 60):\n";
cin >> Hacks::AimSmoothing;
cout << "Your new smoothing value has been set: " << Hacks::AimSmoothing << "\n";
cout << "\nPlease enter the new bone value:\n";
cin >> Hacks::AimBone;
cout << "Your new lock-on bone has been set: " << Hacks::AimBone << "\n";
cout << "\nPlease enter the desired FoV value:\n";
cin >> Hacks::AimFov;
cout << "Your new FoV value has been set: " << Hacks::AimFov << "\n";
cout << "\nValidating options, please wait... \n";
Sleep(2500);
Hacks::AimBotConfig = !Hacks::AimBotConfig;
ClemX::UpdateMenu();
}
else
{
// STATE: Wallhack [F1]
if (Hacks::GlowActive)
{
SetConsoleTextAttribute(hConsole, 10);
cout << "[F1] Glow Wallhack : Active\n";
}
else
{
SetConsoleTextAttribute(hConsole, 12);
cout << "[F1] Glow Wallhack : Inactive\n";
}
// STATE: No Recoil [F2]
if (Hacks::NoRecoilActive)
{
SetConsoleTextAttribute(hConsole, 10);
cout << "[F2] NoRecoil : Active\n";
}
else
{
SetConsoleTextAttribute(hConsole, 12);
cout << "[F2] NoRecoil : Inactive\n";
}
// STATE: Aimbot [F3] | STATE: Aimbot Config [F4]
if (Hacks::AimBotActive)
{
SetConsoleTextAttribute(hConsole, 10);
cout << "[F3] AimBot : Active\n";
SetConsoleTextAttribute(hConsole, 11);
cout << " [F4] Configure the aimbot\n";
}
else
{
SetConsoleTextAttribute(hConsole, 12);
cout << "[F3] AimBot : Inactive\n";
}
// INFO: Aimbot Trigger
SetConsoleTextAttribute(hConsole, 7);
cout << "\n----------\n";
SetConsoleTextAttribute(hConsole, 11);
cout << "Aimbot Trigger : ";
SetConsoleTextAttribute(hConsole, 12);
cout << "Left-Click \n";
SetConsoleTextAttribute(hConsole, 7);
cout << "\n----------\n";
cout << "\n";
// INFO: ESP Health Info
SetConsoleTextAttribute(hConsole, 11);
cout << "WallHack Glow colors : \n";
cout << "+ of 70 life : ";
SetConsoleTextAttribute(hConsole, 10);
cout << "GREEN \n";
SetConsoleTextAttribute(hConsole, 11);
cout << "Between 35 and 70 of life : ";
SetConsoleTextAttribute(hConsole, 14);
cout << "YELLOW \n";
SetConsoleTextAttribute(hConsole, 11);
cout << "Between 0 and 35 of life : ";
SetConsoleTextAttribute(hConsole, 12);
cout << "RED \n";
}
}
void ClemX::KeyBinds()
{
// ON-KEY-PRESS: F1 [ESP]
if (GetAsyncKeyState(VK_F1) & 1)
{
Hacks::GlowActive = !Hacks::GlowActive;
ClemX::UpdateMenu();
}
// ON-KEY-PRESS: F2 [No Recoil]
if (GetAsyncKeyState(VK_F2) & 1)
{
Hacks::NoRecoilActive = !Hacks::NoRecoilActive;
ClemX::UpdateMenu();
}
// ON-KEY-PRESS: F3 [Aimbot]
if (GetAsyncKeyState(VK_F3) & 1)
{
Hacks::AimBotActive = !Hacks::AimBotActive;
ClemX::UpdateMenu();
}
// ON-KEY-PRESS: F4 [Aimbot Config]
if (GetAsyncKeyState(VK_F4) & 1)
{
Hacks::AimBotConfig = !Hacks::AimBotConfig;
ClemX::UpdateMenu();
}
}