-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathmain.cpp
More file actions
113 lines (85 loc) · 2.57 KB
/
main.cpp
File metadata and controls
113 lines (85 loc) · 2.57 KB
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
/*
___ ___ ___ ___
/\ \ |\__\ /\ \ /\__\
/::\ \ |:| | /::\ \ /::| |
/:/\:\ \ |:| | /:/\:\ \ /:|:| |
/:/ \:\ \ |:|__|__ /::\~\:\ \ /:/|:| |__
/:/__/ \:\__\ /::::\__\ /:/\:\ \:\__\ /:/ |:| /\__\
\:\ \ \/__/ /:/~~/~~ \/__\:\/:/ / \/__|:|/:/ /
\:\ \ /:/ / \::/ / |:/:/ /
\:\ \ \/__/ /:/ / |::/ /
\:\__\ /:/ / /:/ /
\/__/ \/__/ \/__/
revolt (4/2017)
*/
// comment when distributed
#define __bypass
#include <Windows.h>
#include "skinchanger.h"
#include "offsets.h"
#include "interfaces.h"
#include "netvar.h"
#include "fonts.h"
#include "menu.h"
#include "hooks.h"
#include "GUI.h"
#include "skinparser.h"
#include "PhoneHome.h"
//#include "OverlayRendering.h"
HINSTANCE Utilities::hModule;
int Utilities::LocalSteamID = -99999999;
DWORD WINAPI init(LPVOID lpParam)
{
I::Initialize();
Utilities::Debug("Injection begun...");
Offsets::Initialize();
NetVars::Initialize();
Fonts::Initialize();
SkinParser::InitializeKits();
GUI::Initialize();
SkinChanger::Initialize();
Hooks::Apply();
//OverlayRender::Initialize();
#ifdef __cyandbg
Utilities::VersionString += "_DEBUG";
#endif
#ifdef __bypass
Utilities::VersionString += "_BYPASS";
#endif
Utilities::Log("cyan " + Utilities::VersionString + " successfully injected");
Utilities::csMessageBox("cyan " + Utilities::VersionString, "Injection successful.", true, false);
#ifdef __cyandbg
while (!Utilities::unload)
Sleep(1000);
Utilities::Warn("Unloading cyan...");
I::Engine->ClientCmd_Unrestricted("cl_mouseenable 1");
I::InputSystem->EnableInput(true);
Hooks::Restore();
GUI::RemoveHook();
Sleep(2000);
Utilities::Log("Successful.");
FreeLibraryAndExitThread(Utilities::hModule, 0);
#endif
return 0;
}
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
{
if (reason == DLL_PROCESS_ATTACH)
{
Utilities::hModule = instance;
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)init, NULL, NULL, NULL);
}
return TRUE;
}
// ----- TODO LIST -----
// CACHE CONTROL SAFE NAMES ON CONSTRUCTION
// AMBIENT SOUND HOOK
// DLIGHT menu controls
// thirdperson
// AUTODEFUSE
// color the event names!
// implement the triggerbot wait
// move all the hitmarkers settings into a combo box of presets
// MAYBE TO DO
// GUI groups open and close
// anti aims