diff --git a/.cproject b/.cproject
index 23b823c8..1d5b7a84 100644
--- a/.cproject
+++ b/.cproject
@@ -51,9 +51,8 @@
-
-
+
-
+
@@ -107,21 +108,34 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
diff --git a/src/freetype-gl/distance-field.c b/freetype-gl/distance-field.c
similarity index 100%
rename from src/freetype-gl/distance-field.c
rename to freetype-gl/distance-field.c
diff --git a/src/freetype-gl/distance-field.h b/freetype-gl/distance-field.h
similarity index 100%
rename from src/freetype-gl/distance-field.h
rename to freetype-gl/distance-field.h
diff --git a/src/freetype-gl/edtaa3func.c b/freetype-gl/edtaa3func.c
similarity index 100%
rename from src/freetype-gl/edtaa3func.c
rename to freetype-gl/edtaa3func.c
diff --git a/src/freetype-gl/edtaa3func.h b/freetype-gl/edtaa3func.h
similarity index 100%
rename from src/freetype-gl/edtaa3func.h
rename to freetype-gl/edtaa3func.h
diff --git a/src/freetype-gl/font-manager.c b/freetype-gl/font-manager.c
similarity index 100%
rename from src/freetype-gl/font-manager.c
rename to freetype-gl/font-manager.c
diff --git a/src/freetype-gl/font-manager.h b/freetype-gl/font-manager.h
similarity index 100%
rename from src/freetype-gl/font-manager.h
rename to freetype-gl/font-manager.h
diff --git a/src/freetype-gl/freetype-gl.h b/freetype-gl/freetype-gl.h
similarity index 100%
rename from src/freetype-gl/freetype-gl.h
rename to freetype-gl/freetype-gl.h
diff --git a/src/freetype-gl/markup.h b/freetype-gl/markup.h
similarity index 100%
rename from src/freetype-gl/markup.h
rename to freetype-gl/markup.h
diff --git a/src/freetype-gl/mat4.c b/freetype-gl/mat4.c
similarity index 100%
rename from src/freetype-gl/mat4.c
rename to freetype-gl/mat4.c
diff --git a/src/freetype-gl/mat4.h b/freetype-gl/mat4.h
similarity index 100%
rename from src/freetype-gl/mat4.h
rename to freetype-gl/mat4.h
diff --git a/src/freetype-gl/opengl.h b/freetype-gl/opengl.h
similarity index 100%
rename from src/freetype-gl/opengl.h
rename to freetype-gl/opengl.h
diff --git a/src/freetype-gl/platform.c b/freetype-gl/platform.c
similarity index 100%
rename from src/freetype-gl/platform.c
rename to freetype-gl/platform.c
diff --git a/src/freetype-gl/platform.h b/freetype-gl/platform.h
similarity index 100%
rename from src/freetype-gl/platform.h
rename to freetype-gl/platform.h
diff --git a/src/freetype-gl/shader.c b/freetype-gl/shader.c
similarity index 100%
rename from src/freetype-gl/shader.c
rename to freetype-gl/shader.c
diff --git a/src/freetype-gl/shader.h b/freetype-gl/shader.h
similarity index 100%
rename from src/freetype-gl/shader.h
rename to freetype-gl/shader.h
diff --git a/src/freetype-gl/text-buffer.c b/freetype-gl/text-buffer.c
similarity index 100%
rename from src/freetype-gl/text-buffer.c
rename to freetype-gl/text-buffer.c
diff --git a/src/freetype-gl/text-buffer.h b/freetype-gl/text-buffer.h
similarity index 100%
rename from src/freetype-gl/text-buffer.h
rename to freetype-gl/text-buffer.h
diff --git a/src/freetype-gl/texture-atlas.c b/freetype-gl/texture-atlas.c
similarity index 100%
rename from src/freetype-gl/texture-atlas.c
rename to freetype-gl/texture-atlas.c
diff --git a/src/freetype-gl/texture-atlas.h b/freetype-gl/texture-atlas.h
similarity index 100%
rename from src/freetype-gl/texture-atlas.h
rename to freetype-gl/texture-atlas.h
diff --git a/src/freetype-gl/texture-font.c b/freetype-gl/texture-font.c
similarity index 100%
rename from src/freetype-gl/texture-font.c
rename to freetype-gl/texture-font.c
diff --git a/src/freetype-gl/texture-font.h b/freetype-gl/texture-font.h
similarity index 100%
rename from src/freetype-gl/texture-font.h
rename to freetype-gl/texture-font.h
diff --git a/src/freetype-gl/utf8-utils.c b/freetype-gl/utf8-utils.c
similarity index 100%
rename from src/freetype-gl/utf8-utils.c
rename to freetype-gl/utf8-utils.c
diff --git a/src/freetype-gl/utf8-utils.h b/freetype-gl/utf8-utils.h
similarity index 100%
rename from src/freetype-gl/utf8-utils.h
rename to freetype-gl/utf8-utils.h
diff --git a/src/freetype-gl/vec234.h b/freetype-gl/vec234.h
similarity index 100%
rename from src/freetype-gl/vec234.h
rename to freetype-gl/vec234.h
diff --git a/src/freetype-gl/vector.c b/freetype-gl/vector.c
similarity index 100%
rename from src/freetype-gl/vector.c
rename to freetype-gl/vector.c
diff --git a/src/freetype-gl/vector.h b/freetype-gl/vector.h
similarity index 100%
rename from src/freetype-gl/vector.h
rename to freetype-gl/vector.h
diff --git a/src/freetype-gl/vertex-attribute.c b/freetype-gl/vertex-attribute.c
similarity index 100%
rename from src/freetype-gl/vertex-attribute.c
rename to freetype-gl/vertex-attribute.c
diff --git a/src/freetype-gl/vertex-attribute.h b/freetype-gl/vertex-attribute.h
similarity index 100%
rename from src/freetype-gl/vertex-attribute.h
rename to freetype-gl/vertex-attribute.h
diff --git a/src/freetype-gl/vertex-buffer.c b/freetype-gl/vertex-buffer.c
similarity index 100%
rename from src/freetype-gl/vertex-buffer.c
rename to freetype-gl/vertex-buffer.c
diff --git a/src/freetype-gl/vertex-buffer.h b/freetype-gl/vertex-buffer.h
similarity index 100%
rename from src/freetype-gl/vertex-buffer.h
rename to freetype-gl/vertex-buffer.h
diff --git a/generate-dynamic-header.js b/generate-dynamic-header.js
index ba4e377d..c8dbf2ad 100644
--- a/generate-dynamic-header.js
+++ b/generate-dynamic-header.js
@@ -44,7 +44,7 @@ for (var clz in full_class_table) {
var source = `
#include "dynamic.gen.hpp"
-#include "../common.h"
+#include "common.hpp"
namespace client_classes {
diff --git a/src/imgui/LICENSE b/imgui/LICENSE
similarity index 100%
rename from src/imgui/LICENSE
rename to imgui/LICENSE
diff --git a/src/imgui/README.md b/imgui/README.md
similarity index 100%
rename from src/imgui/README.md
rename to imgui/README.md
diff --git a/src/imgui/imconfig.h b/imgui/imconfig.h
similarity index 100%
rename from src/imgui/imconfig.h
rename to imgui/imconfig.h
diff --git a/src/imgui/imgui.cpp b/imgui/imgui.cpp
similarity index 100%
rename from src/imgui/imgui.cpp
rename to imgui/imgui.cpp
diff --git a/src/imgui/imgui.h b/imgui/imgui.h
similarity index 100%
rename from src/imgui/imgui.h
rename to imgui/imgui.h
diff --git a/src/imgui/imgui_demo.cpp b/imgui/imgui_demo.cpp
similarity index 100%
rename from src/imgui/imgui_demo.cpp
rename to imgui/imgui_demo.cpp
diff --git a/src/imgui/imgui_draw.cpp b/imgui/imgui_draw.cpp
similarity index 100%
rename from src/imgui/imgui_draw.cpp
rename to imgui/imgui_draw.cpp
diff --git a/src/imgui/imgui_impl_sdl.cpp b/imgui/imgui_impl_sdl.cpp
similarity index 100%
rename from src/imgui/imgui_impl_sdl.cpp
rename to imgui/imgui_impl_sdl.cpp
diff --git a/src/imgui/imgui_impl_sdl.h b/imgui/imgui_impl_sdl.h
similarity index 100%
rename from src/imgui/imgui_impl_sdl.h
rename to imgui/imgui_impl_sdl.h
diff --git a/src/imgui/imgui_internal.h b/imgui/imgui_internal.h
similarity index 100%
rename from src/imgui/imgui_internal.h
rename to imgui/imgui_internal.h
diff --git a/src/imgui/stb_rect_pack.h b/imgui/stb_rect_pack.h
similarity index 100%
rename from src/imgui/stb_rect_pack.h
rename to imgui/stb_rect_pack.h
diff --git a/src/imgui/stb_textedit.h b/imgui/stb_textedit.h
similarity index 100%
rename from src/imgui/stb_textedit.h
rename to imgui/stb_textedit.h
diff --git a/src/imgui/stb_truetype.h b/imgui/stb_truetype.h
similarity index 100%
rename from src/imgui/stb_truetype.h
rename to imgui/stb_truetype.h
diff --git a/src/CDumper.h b/include/CDumper.hpp
similarity index 91%
rename from src/CDumper.h
rename to include/CDumper.hpp
index ab6d62bc..282d74a9 100644
--- a/src/CDumper.h
+++ b/include/CDumper.hpp
@@ -5,18 +5,17 @@
* Author: nullifiedcat
*/
-#ifndef CDUMPER_H_
-#define CDUMPER_H_
+#ifndef CDUMPER_HPP_
+#define CDUMPER_HPP_
-#include "beforecheaders.h"
+#include
+#include
#include
#include
-#include "aftercheaders.h"
-
-#include "logging.h"
-#include "fixsdk.h"
#include
#include
+#include
+#include
class CDumper {
public:
@@ -102,4 +101,4 @@ private:
};
-#endif /* CDUMPER_H_ */
+#endif /* CDUMPER_HPP_ */
diff --git a/src/EffectChams.hpp b/include/EffectChams.hpp
similarity index 93%
rename from src/EffectChams.hpp
rename to include/EffectChams.hpp
index a55fa069..9318649e 100644
--- a/src/EffectChams.hpp
+++ b/include/EffectChams.hpp
@@ -8,7 +8,9 @@
#ifndef EFFECTCHAMS_HPP_
#define EFFECTCHAMS_HPP_
-#include "common.h"
+#include "common.hpp"
+#include "sdk/ScreenSpaceEffects.h"
+#include "sdk.hpp"
namespace effect_chams {
diff --git a/src/EffectGlow.hpp b/include/EffectGlow.hpp
similarity index 94%
rename from src/EffectGlow.hpp
rename to include/EffectGlow.hpp
index 8aaff663..f2b757cd 100644
--- a/src/EffectGlow.hpp
+++ b/include/EffectGlow.hpp
@@ -8,9 +8,8 @@
#ifndef EFFECTGLOW_HPP_
#define EFFECTGLOW_HPP_
-#include "common.h"
-#include "sdk/ScreenSpaceEffects.h"
-#include "sdk.h"
+#include "common.hpp"
+#include "sdk.hpp"
namespace effect_glow {
diff --git a/src/aftercheaders.h b/include/aftercheaders.hpp
similarity index 100%
rename from src/aftercheaders.h
rename to include/aftercheaders.hpp
diff --git a/src/angles.hpp b/include/angles.hpp
similarity index 97%
rename from src/angles.hpp
rename to include/angles.hpp
index 7aed4db9..6398e5f6 100644
--- a/src/angles.hpp
+++ b/include/angles.hpp
@@ -7,8 +7,8 @@
#pragma once
-#include "common.h"
-#include "logging.h"
+#include
+#include "common.hpp"
namespace angles {
diff --git a/src/atlas.hpp b/include/atlas.hpp
similarity index 100%
rename from src/atlas.hpp
rename to include/atlas.hpp
diff --git a/src/averager.hpp b/include/averager.hpp
similarity index 100%
rename from src/averager.hpp
rename to include/averager.hpp
diff --git a/src/backpacktf.hpp b/include/backpacktf.hpp
similarity index 100%
rename from src/backpacktf.hpp
rename to include/backpacktf.hpp
diff --git a/src/base64.h b/include/base64.hpp
similarity index 100%
rename from src/base64.h
rename to include/base64.hpp
diff --git a/src/beforecheaders.h b/include/beforecheaders.hpp
similarity index 100%
rename from src/beforecheaders.h
rename to include/beforecheaders.hpp
diff --git a/src/catpackets.h b/include/catpackets.h
similarity index 100%
rename from src/catpackets.h
rename to include/catpackets.h
diff --git a/src/catsmclient.h b/include/catsmclient.h
similarity index 100%
rename from src/catsmclient.h
rename to include/catsmclient.h
diff --git a/src/chatlog.hpp b/include/chatlog.hpp
similarity index 100%
rename from src/chatlog.hpp
rename to include/chatlog.hpp
diff --git a/src/chatstack.h b/include/chatstack.hpp
similarity index 75%
rename from src/chatstack.h
rename to include/chatstack.hpp
index b9f6fbdb..6703e49d 100644
--- a/src/chatstack.h
+++ b/include/chatstack.hpp
@@ -5,16 +5,16 @@
* Author: nullifiedcat
*/
-#ifndef CHATSTACK_H_
-#define CHATSTACK_H_
+#ifndef CHATSTACK_HPP_
+#define CHATSTACK_HPP_
#define CHATSTACK_INTERVAL 0.8f
-#include "beforecheaders.h"
+#include
#include
#include
#include
-#include "aftercheaders.h"
+#include
namespace chat_stack {
@@ -32,4 +32,4 @@ extern float last_say;
}
-#endif /* CHATSTACK_H_ */
+#endif /* CHATSTACK_HPP_ */
diff --git a/src/classinfo/classinfo.hpp b/include/classinfo/classinfo.hpp
similarity index 97%
rename from src/classinfo/classinfo.hpp
rename to include/classinfo/classinfo.hpp
index c74fb3b2..28050892 100644
--- a/src/classinfo/classinfo.hpp
+++ b/include/classinfo/classinfo.hpp
@@ -8,7 +8,7 @@
#ifndef CLASSINFO_HPP_
#define CLASSINFO_HPP_
-#include "../common.h"
+#include "common.hpp"
#include "dummy.gen.hpp"
diff --git a/src/classinfo/css.gen.hpp b/include/classinfo/css.gen.hpp
similarity index 100%
rename from src/classinfo/css.gen.hpp
rename to include/classinfo/css.gen.hpp
diff --git a/src/classinfo/css_constexpr.gen.hpp b/include/classinfo/css_constexpr.gen.hpp
similarity index 100%
rename from src/classinfo/css_constexpr.gen.hpp
rename to include/classinfo/css_constexpr.gen.hpp
diff --git a/src/classinfo/dab.gen.hpp b/include/classinfo/dab.gen.hpp
similarity index 100%
rename from src/classinfo/dab.gen.hpp
rename to include/classinfo/dab.gen.hpp
diff --git a/src/classinfo/dab_constexpr.gen.hpp b/include/classinfo/dab_constexpr.gen.hpp
similarity index 100%
rename from src/classinfo/dab_constexpr.gen.hpp
rename to include/classinfo/dab_constexpr.gen.hpp
diff --git a/src/classinfo/dummy.gen.hpp b/include/classinfo/dummy.gen.hpp
similarity index 100%
rename from src/classinfo/dummy.gen.hpp
rename to include/classinfo/dummy.gen.hpp
diff --git a/src/classinfo/dump.hpp b/include/classinfo/dump.hpp
similarity index 100%
rename from src/classinfo/dump.hpp
rename to include/classinfo/dump.hpp
diff --git a/src/classinfo/dynamic.gen.hpp b/include/classinfo/dynamic.gen.hpp
similarity index 100%
rename from src/classinfo/dynamic.gen.hpp
rename to include/classinfo/dynamic.gen.hpp
diff --git a/src/classinfo/hl2dm.gen.hpp b/include/classinfo/hl2dm.gen.hpp
similarity index 100%
rename from src/classinfo/hl2dm.gen.hpp
rename to include/classinfo/hl2dm.gen.hpp
diff --git a/src/classinfo/hl2dm_constexpr.gen.hpp b/include/classinfo/hl2dm_constexpr.gen.hpp
similarity index 100%
rename from src/classinfo/hl2dm_constexpr.gen.hpp
rename to include/classinfo/hl2dm_constexpr.gen.hpp
diff --git a/src/classinfo/tf2.gen.hpp b/include/classinfo/tf2.gen.hpp
similarity index 100%
rename from src/classinfo/tf2.gen.hpp
rename to include/classinfo/tf2.gen.hpp
diff --git a/src/classinfo/tf2_constexpr.gen.hpp b/include/classinfo/tf2_constexpr.gen.hpp
similarity index 100%
rename from src/classinfo/tf2_constexpr.gen.hpp
rename to include/classinfo/tf2_constexpr.gen.hpp
diff --git a/src/classinfo/tf2c.gen.hpp b/include/classinfo/tf2c.gen.hpp
similarity index 100%
rename from src/classinfo/tf2c.gen.hpp
rename to include/classinfo/tf2c.gen.hpp
diff --git a/src/classinfo/tf2c_constexpr.gen.hpp b/include/classinfo/tf2c_constexpr.gen.hpp
similarity index 100%
rename from src/classinfo/tf2c_constexpr.gen.hpp
rename to include/classinfo/tf2c_constexpr.gen.hpp
diff --git a/src/colors.hpp b/include/colors.hpp
similarity index 100%
rename from src/colors.hpp
rename to include/colors.hpp
diff --git a/src/common.h b/include/common.hpp
similarity index 70%
rename from src/common.h
rename to include/common.hpp
index 7309ae32..d3bb8900 100644
--- a/src/common.h
+++ b/include/common.hpp
@@ -15,7 +15,7 @@
#endif
-#include "beforecheaders.h"
+#include
#include
#include
#include
@@ -33,11 +33,22 @@
#include
#include
#include
+#include
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
#include "timer.hpp"
#include "averager.hpp"
+#include "segvcatch/segvcatch.h"
-#include "aftercheaders.h"
+#include
#include "macros.hpp"
#include "colors.hpp"
@@ -49,7 +60,7 @@ extern "C" {
}
#include "ftrender.hpp"
-#include "drawing.h"
+#include "drawing.hpp"
#include "fidgetspinner.hpp"
#include DRAW_API
#include "EffectGlow.hpp"
@@ -59,50 +70,55 @@ extern "C" {
#endif
-#include "profiler.h"
+#include "profiler.hpp"
#include "offsets.hpp"
-#include "entitycache.h"
+#include
#include "hoovy.hpp"
-#include "enums.h"
+#include
#include "projlogging.hpp"
#include "ucccccp_cmds.hpp"
#include "velocity.hpp"
#include "angles.hpp"
#include "entityhitboxcache.hpp"
#include "globals.h"
-#include "helpers.h"
+#include
#include "playerlist.hpp"
-#include "interfaces.h"
-#include "localplayer.h"
-#include "conditions.h"
-#include "logging.h"
-#include "targethelper.h"
+#include
+#include
+#include
+#include
+#include
#include "playerresource.h"
-#include "usercmd.h"
-#include "trace.h"
-#include "cvwrapper.h"
-#include "netvars.h"
-#include "vfunc.h"
-#include "hooks.h"
-#include "prediction.h"
-#include "conditions.h"
-#include "itemtypes.h"
-#include "chatstack.h"
-#include "textfile.h"
-#include "ipc.h"
-#include "hooks/hookedmethods.h"
+#include "usercmd.hpp"
+#include "trace.hpp"
+#include
+#include "netvars.hpp"
+#include "vfunc.hpp"
+#include "hooks.hpp"
+#include
+#include
+#include
+#include
+#include "textfile.hpp"
+#include "ipc.hpp"
+#include "hooks/hookedmethods.hpp"
#include "classinfo/classinfo.hpp"
-#include "crits.h"
+#include "crits.hpp"
#include "textmode.hpp"
#include "backpacktf.hpp"
+#include "sharedobj.hpp"
+#include "init.hpp"
+
+#include "copypasted/Netvar.h"
+#include "copypasted/CSignature.h"
#if ENABLE_GUI
-#include "gui/GUI.h"
+#include "gui/GUI.hpp"
#endif
-#include "hacks/hacklist.h"
+#include
-#include "sdk.h"
+#include
template
constexpr T _clamp(T _min, T _max, T _val) {
diff --git a/src/conditions.h b/include/conditions.hpp
similarity index 98%
rename from src/conditions.h
rename to include/conditions.hpp
index 2717407a..7c608ac7 100644
--- a/src/conditions.h
+++ b/include/conditions.hpp
@@ -5,11 +5,11 @@
* Author: nullifiedcat
*/
-#ifndef CONDITIONS_H_
-#define CONDITIONS_H_
+#ifndef CONDITIONS_HPP_
+#define CONDITIONS_HPP_
-#include "netvars.h"
-#include "entitycache.h"
+#include
+#include "netvars.hpp"
#include "gameinfo.hpp"
// So, tf2 actually stores cond netvars sequentionally, that's pretty good.
@@ -279,4 +279,4 @@ inline void RemoveCondition(CachedEntity* ent) {
CondBitSet(CE_VAR(ent, netvar.iCond, condition_data_s));
}
-#endif /* CONDITIONS_H_ */
+#endif /* CONDITIONS_HPP_ */
diff --git a/src/copypasted/CSignature.h b/include/copypasted/CSignature.h
similarity index 100%
rename from src/copypasted/CSignature.h
rename to include/copypasted/CSignature.h
diff --git a/src/copypasted/Netvar.h b/include/copypasted/Netvar.h
similarity index 99%
rename from src/copypasted/Netvar.h
rename to include/copypasted/Netvar.h
index 57a1c2a0..37631733 100644
--- a/src/copypasted/Netvar.h
+++ b/include/copypasted/Netvar.h
@@ -4,7 +4,7 @@
//#include
#include
#include
-#include "../logging.h"
+#include "logging.hpp"
// this and the cpp are creds to "Altimor"
diff --git a/src/crits.h b/include/crits.hpp
similarity index 87%
rename from src/crits.h
rename to include/crits.hpp
index f6301341..7ebeaf82 100644
--- a/src/crits.h
+++ b/include/crits.hpp
@@ -5,8 +5,8 @@
* Author: nullifiedcat
*/
-#ifndef CRITS_H_
-#define CRITS_H_
+#ifndef CRITS_HPP_
+#define CRITS_HPP_
class CUserCmd;
class IClientEntity;
@@ -35,9 +35,9 @@ void ResetCritHack();
void LoadSavedState();
void ModifyCommandNumber();
-#include "beforecheaders.h"
+#include
#include
-#include "aftercheaders.h"
+#include
class CatVar;
extern CatVar experimental_crit_hack;
@@ -47,4 +47,4 @@ extern std::unordered_map command_number_mod;
//bool CalcIsAttackCritical(IClientEntity* weapon);
-#endif /* CRITS_H_ */
+#endif /* CRITS_HPP_ */
diff --git a/src/cvwrapper.h b/include/cvwrapper.hpp
similarity index 95%
rename from src/cvwrapper.h
rename to include/cvwrapper.hpp
index de4ca1d6..807a579a 100644
--- a/src/cvwrapper.h
+++ b/include/cvwrapper.hpp
@@ -5,19 +5,19 @@
* Author: nullifiedcat
*/
-#ifndef CVWRAPPER_H_
-#define CVWRAPPER_H_
+#ifndef CVWRAPPER_HPP_
+#define CVWRAPPER_HPP_
class ConVar;
-#include "sdk.h"
-#include "interfaces.h"
+#include
+#include
-#include "beforecheaders.h"
+#include
#include
#include
#include
-#include "aftercheaders.h"
+#include
// Catvar types
enum CatVar_t {
@@ -140,4 +140,4 @@ void RegisterCatCommands();
void RegisterCatVars();
int GetRebasedCatVarCount();
-#endif /* CVWRAPPER_H_ */
+#endif /* CVWRAPPER_HPP_ */
diff --git a/src/drawex.hpp b/include/drawex.hpp
similarity index 100%
rename from src/drawex.hpp
rename to include/drawex.hpp
diff --git a/src/drawgl.hpp b/include/drawgl.hpp
similarity index 98%
rename from src/drawgl.hpp
rename to include/drawgl.hpp
index 163b1d13..b67a04f3 100644
--- a/src/drawgl.hpp
+++ b/include/drawgl.hpp
@@ -8,7 +8,7 @@
#ifndef DRAWGL_HPP_
#define DRAWGL_HPP_
-#include "drawing.h"
+#include
#define draw_api drawgl
diff --git a/src/drawing.h b/include/drawing.hpp
similarity index 92%
rename from src/drawing.h
rename to include/drawing.hpp
index bcb51e28..e38d861b 100644
--- a/src/drawing.h
+++ b/include/drawing.hpp
@@ -5,8 +5,8 @@
* Author: nullifiedcat
*/
-#ifndef DRAWING_H_
-#define DRAWING_H_
+#ifndef DRAWING_HPP_
+#define DRAWING_HPP_
#if defined(RENDERING_ENGINE_OPENGL)
#define DRAW_API "drawgl.hpp"
@@ -14,7 +14,7 @@
#define DRAW_API "drawex.hpp"
#endif
-#include "common.h"
+#include "common.hpp"
extern "C" {
#include
@@ -62,4 +62,4 @@ constexpr rgba_t GUIColor() {
}
#endif
-#endif /* DRAWING_H_ */
+#endif /* DRAWING_HPP_ */
diff --git a/src/drawmgr.hpp b/include/drawmgr.hpp
similarity index 82%
rename from src/drawmgr.hpp
rename to include/drawmgr.hpp
index f4b72c35..d67003ea 100644
--- a/src/drawmgr.hpp
+++ b/include/drawmgr.hpp
@@ -8,9 +8,9 @@
#ifndef DRAWMGR_HPP_
#define DRAWMGR_HPP_
-#include "beforecheaders.h"
+#include "beforecheaders.hpp"
#include
-#include "aftercheaders.h"
+#include "aftercheaders.hpp"
extern std::mutex drawing_mutex;
diff --git a/src/entitycache.h b/include/entitycache.hpp
similarity index 93%
rename from src/entitycache.h
rename to include/entitycache.hpp
index def67f51..be90c3d2 100644
--- a/src/entitycache.h
+++ b/include/entitycache.hpp
@@ -5,24 +5,22 @@
* Author: nullifiedcat
*/
-#ifndef ENTITYCACHE_H_
-#define ENTITYCACHE_H_
+#ifndef ENTITYCACHE_HPP_
+#define ENTITYCACHE_HPP_
-#include "enums.h"
-#include "itemtypes.h"
-#include "interfaces.h"
+#include
+#include
#include "entityhitboxcache.hpp"
-#include "fixsdk.h"
-
-#include "beforecheaders.h"
#include "averager.hpp"
-#include "aftercheaders.h"
-
#include
#include
#include
#include
#include
+#include
+#include
+#include
+#include
struct matrix3x4_t;
@@ -134,4 +132,4 @@ extern int max;
}
-#endif /* ENTITYCACHE_H_ */
+#endif /* ENTITYCACHE_HPP_ */
diff --git a/src/entityhitboxcache.hpp b/include/entityhitboxcache.hpp
similarity index 98%
rename from src/entityhitboxcache.hpp
rename to include/entityhitboxcache.hpp
index ce491268..20e1758a 100644
--- a/src/entityhitboxcache.hpp
+++ b/include/entityhitboxcache.hpp
@@ -8,11 +8,10 @@
#ifndef ENTITYHITBOXCACHE_HPP_
#define ENTITYHITBOXCACHE_HPP_
-#include "entitycache.h"
-
#include
#include
#include
+#include
#include
#define CACHE_MAX_HITBOXES 64
diff --git a/src/enums.h b/include/enums.hpp
similarity index 95%
rename from src/enums.h
rename to include/enums.hpp
index 40f73747..2b4bee37 100644
--- a/src/enums.h
+++ b/include/enums.hpp
@@ -5,8 +5,8 @@
* Author: nullifiedcat
*/
-#ifndef ENUMS_H_
-#define ENUMS_H_
+#ifndef ENUMS_HPP_
+#define ENUMS_HPP_
enum EntityType {
ENTITY_GENERIC,
@@ -97,4 +97,4 @@ enum hitbox_t {
foot_R = 17
};
-#endif /* ENUMS_H_ */
+#endif /* ENUMS_HPP_ */
diff --git a/src/fidgetspinner.hpp b/include/fidgetspinner.hpp
similarity index 92%
rename from src/fidgetspinner.hpp
rename to include/fidgetspinner.hpp
index b0d0bf15..aed256eb 100644
--- a/src/fidgetspinner.hpp
+++ b/include/fidgetspinner.hpp
@@ -7,7 +7,7 @@
#pragma once
-#include "common.h"
+#include "common.hpp"
#include "atlas.hpp"
class CatVar;
diff --git a/src/fixsdk.h b/include/fixsdk.hpp
similarity index 75%
rename from src/fixsdk.h
rename to include/fixsdk.hpp
index 30eeaa27..54a5db9c 100644
--- a/src/fixsdk.h
+++ b/include/fixsdk.hpp
@@ -5,8 +5,8 @@
* Author: nullifiedcat
*/
-#ifndef FIXSDK_H_
-#define FIXSDK_H_
+#ifndef FIXSDK_HPP_
+#define FIXSDK_HPP_
/*#define LINUX 1
#define _LINUX 1
@@ -15,4 +15,4 @@
#define NO_MALLOC_OVERRIDE 1
#undef min*/
-#endif /* FIXSDK_H_ */
+#endif /* FIXSDK_HPP_ */
diff --git a/src/ftrender.hpp b/include/ftrender.hpp
similarity index 96%
rename from src/ftrender.hpp
rename to include/ftrender.hpp
index 92b42007..6e2acc0c 100644
--- a/src/ftrender.hpp
+++ b/include/ftrender.hpp
@@ -8,7 +8,7 @@
#ifndef FTRENDER_HPP_
#define FTRENDER_HPP_
-#include "common.h"
+#include "common.hpp"
extern "C" {
#include
diff --git a/src/gameinfo.hpp b/include/gameinfo.hpp
similarity index 97%
rename from src/gameinfo.hpp
rename to include/gameinfo.hpp
index df637a9b..d59e4f61 100644
--- a/src/gameinfo.hpp
+++ b/include/gameinfo.hpp
@@ -8,7 +8,7 @@
#ifndef GAMEINFO_HPP_
#define GAMEINFO_HPP_
-#include "common.h"
+#include "common.hpp"
#ifdef BUILD_GAME
diff --git a/src/globals.h b/include/globals.h
similarity index 100%
rename from src/globals.h
rename to include/globals.h
diff --git a/src/gui/GUI.h b/include/gui/GUI.hpp
similarity index 89%
rename from src/gui/GUI.h
rename to include/gui/GUI.hpp
index d9b36758..57d2d2cd 100644
--- a/src/gui/GUI.h
+++ b/include/gui/GUI.hpp
@@ -5,13 +5,13 @@
* Author: nullifiedcat
*/
-#ifndef GUI_H_
-#define GUI_H_
+#ifndef GUI_HPP_
+#define GUI_HPP_
class IWidget;
class CatVar;
-#include "../common.h"
+#include "common.hpp"
extern CatVar gui_color_r;
extern CatVar gui_color_g;
@@ -45,4 +45,4 @@ public:
extern CatGUI* g_pGUI;
-#endif /* GUI_H_ */
+#endif /* GUI_HPP_ */
diff --git a/src/gui/im/Im.hpp b/include/gui/im/Im.hpp
similarity index 100%
rename from src/gui/im/Im.hpp
rename to include/gui/im/Im.hpp
diff --git a/src/gui/im/InfoPanel.hpp b/include/gui/im/InfoPanel.hpp
similarity index 100%
rename from src/gui/im/InfoPanel.hpp
rename to include/gui/im/InfoPanel.hpp
diff --git a/src/gui/im/Playerlist.hpp b/include/gui/im/Playerlist.hpp
similarity index 100%
rename from src/gui/im/Playerlist.hpp
rename to include/gui/im/Playerlist.hpp
diff --git a/src/gui/im/Schema.hpp b/include/gui/im/Schema.hpp
similarity index 100%
rename from src/gui/im/Schema.hpp
rename to include/gui/im/Schema.hpp
diff --git a/src/gui/ncc/Background.hpp b/include/gui/ncc/Background.hpp
similarity index 100%
rename from src/gui/ncc/Background.hpp
rename to include/gui/ncc/Background.hpp
diff --git a/src/gui/ncc/CritIndicator.hpp b/include/gui/ncc/CritIndicator.hpp
similarity index 100%
rename from src/gui/ncc/CritIndicator.hpp
rename to include/gui/ncc/CritIndicator.hpp
diff --git a/src/hack.h b/include/hack.hpp
similarity index 91%
rename from src/hack.h
rename to include/hack.hpp
index 26648dca..521ddffb 100644
--- a/src/hack.h
+++ b/include/hack.hpp
@@ -15,11 +15,11 @@ class bf_read;
class ConCommand;
class CCommand;
-#include "beforecheaders.h"
+#include
#include
#include
#include
-#include "aftercheaders.h"
+#include
namespace hack {
diff --git a/src/hacks/Achievement.h b/include/hacks/Achievement.hpp
similarity index 64%
rename from src/hacks/Achievement.h
rename to include/hacks/Achievement.hpp
index 3968c75f..77718a3c 100644
--- a/src/hacks/Achievement.h
+++ b/include/hacks/Achievement.hpp
@@ -5,8 +5,8 @@
* Author: nullifiedcat
*/
-#ifndef HACKS_ACHIEVEMENT_H_
-#define HACKS_ACHIEVEMENT_H_
+#ifndef HACKS_ACHIEVEMENT_HPP_
+#define HACKS_ACHIEVEMENT_HPP_
namespace hacks { namespace tf2 { namespace achievement {
@@ -15,4 +15,4 @@ void Unlock();
}}}
-#endif /* HACKS_ACHIEVEMENT_H_ */
+#endif /* HACKS_ACHIEVEMENT_HPP_ */
diff --git a/src/hacks/Aimbot.h b/include/hacks/Aimbot.hpp
similarity index 98%
rename from src/hacks/Aimbot.h
rename to include/hacks/Aimbot.hpp
index 5a5e6909..fe7680dc 100644
--- a/src/hacks/Aimbot.h
+++ b/include/hacks/Aimbot.hpp
@@ -8,7 +8,7 @@
#ifndef HAIMBOT_H_
#define HAIMBOT_H_
-#include "../common.h"
+#include "common.hpp"
class ConVar;
class IClientEntity;
diff --git a/src/hacks/AntiAim.h b/include/hacks/AntiAim.hpp
similarity index 100%
rename from src/hacks/AntiAim.h
rename to include/hacks/AntiAim.hpp
diff --git a/src/hacks/AntiBackstab.hpp b/include/hacks/AntiBackstab.hpp
similarity index 100%
rename from src/hacks/AntiBackstab.hpp
rename to include/hacks/AntiBackstab.hpp
diff --git a/src/hacks/AntiCheat.hpp b/include/hacks/AntiCheat.hpp
similarity index 72%
rename from src/hacks/AntiCheat.hpp
rename to include/hacks/AntiCheat.hpp
index 46f02fc9..c42bab05 100644
--- a/src/hacks/AntiCheat.hpp
+++ b/include/hacks/AntiCheat.hpp
@@ -8,9 +8,12 @@
#pragma once
-#include "../beforecheaders.h"
-#include
-#include "../aftercheaders.h"
+#include "common.hpp"
+
+#include "ac/aimbot.hpp"
+#include "ac/antiaim.hpp"
+#include "ac/removecond.hpp"
+#include "ac/bhop.hpp"
namespace hacks { namespace shared { namespace anticheat {
diff --git a/src/hacks/AntiDisguise.h b/include/hacks/AntiDisguise.hpp
similarity index 60%
rename from src/hacks/AntiDisguise.h
rename to include/hacks/AntiDisguise.hpp
index 8c8017a1..cd20941b 100644
--- a/src/hacks/AntiDisguise.h
+++ b/include/hacks/AntiDisguise.hpp
@@ -5,10 +5,10 @@
* Author: nullifiedcat
*/
-#ifndef HACKS_ANTIDISGUISE_H_
-#define HACKS_ANTIDISGUISE_H_
+#ifndef HACKS_ANTIDISGUISE_HPP_
+#define HACKS_ANTIDISGUISE_HPP_
-#include "../common.h"
+#include "common.hpp"
namespace hacks { namespace tf2 { namespace antidisguise {
@@ -18,4 +18,4 @@ void Draw();
}}}
-#endif /* HACKS_ANTIDISGUISE_H_ */
+#endif /* HACKS_ANTIDISGUISE_HPP_ */
diff --git a/src/hacks/AutoBackstab.hpp b/include/hacks/AutoBackstab.hpp
similarity index 100%
rename from src/hacks/AutoBackstab.hpp
rename to include/hacks/AutoBackstab.hpp
diff --git a/src/hacks/AutoHeal.h b/include/hacks/AutoHeal.hpp
similarity index 84%
rename from src/hacks/AutoHeal.h
rename to include/hacks/AutoHeal.hpp
index dd0eceab..611faf3c 100644
--- a/src/hacks/AutoHeal.h
+++ b/include/hacks/AutoHeal.hpp
@@ -5,10 +5,10 @@
* Author: nullifiedcat
*/
-#ifndef HACKS_AUTOHEAL_H_
-#define HACKS_AUTOHEAL_H_
+#ifndef HACKS_AUTOHEAL_HPP_
+#define HACKS_AUTOHEAL_HPP_
-#include "../common.h"
+#include "common.hpp"
namespace hacks { namespace tf { namespace autoheal {
@@ -33,4 +33,4 @@ bool CanHeal(int idx);
}}}
-#endif /* HACKS_AUTOHEAL_H_ */
+#endif /* HACKS_AUTOHEAL_HPP_ */
diff --git a/src/hacks/AutoJoin.hpp b/include/hacks/AutoJoin.hpp
similarity index 100%
rename from src/hacks/AutoJoin.hpp
rename to include/hacks/AutoJoin.hpp
diff --git a/src/hacks/AutoReflect.h b/include/hacks/AutoReflect.hpp
similarity index 74%
rename from src/hacks/AutoReflect.h
rename to include/hacks/AutoReflect.hpp
index f23544e5..2775a5c9 100644
--- a/src/hacks/AutoReflect.h
+++ b/include/hacks/AutoReflect.hpp
@@ -5,10 +5,10 @@
* Author: nullifiedcat
*/
-#ifndef HACKS_AUTOREFLECT_H_
-#define HACKS_AUTOREFLECT_H_
+#ifndef HACKS_AUTOREFLECT_HPP_
+#define HACKS_AUTOREFLECT_HPP_
-#include "../common.h"
+#include "common.hpp"
namespace hacks { namespace tf { namespace autoreflect {
@@ -23,4 +23,4 @@ bool IsEntStickyBomb(CachedEntity* ent);
}}}
-#endif /* HACKS_AUTOREFLECT_H_ */
+#endif /* HACKS_AUTOREFLECT_HPP_ */
diff --git a/src/hacks/AutoSticky.h b/include/hacks/AutoSticky.hpp
similarity index 70%
rename from src/hacks/AutoSticky.h
rename to include/hacks/AutoSticky.hpp
index b3a60562..76422d2b 100644
--- a/src/hacks/AutoSticky.h
+++ b/include/hacks/AutoSticky.hpp
@@ -5,10 +5,10 @@
* Author: nullifiedcat
*/
-#ifndef HACKS_AUTOSTICKY_H_
-#define HACKS_AUTOSTICKY_H_
+#ifndef HACKS_AUTOSTICKY_HPP_
+#define HACKS_AUTOSTICKY_HPP_
-#include "../common.h"
+#include "common.hpp"
namespace hacks { namespace tf { namespace autosticky {
@@ -21,4 +21,4 @@ void CreateMove();
}}}
-#endif /* HACKS_AUTOSTICKY_H_ */
+#endif /* HACKS_AUTOSTICKY_HPP_ */
diff --git a/src/hacks/AutoTaunt.hpp b/include/hacks/AutoTaunt.hpp
similarity index 100%
rename from src/hacks/AutoTaunt.hpp
rename to include/hacks/AutoTaunt.hpp
diff --git a/src/hacks/Bunnyhop.h b/include/hacks/Bunnyhop.hpp
similarity index 91%
rename from src/hacks/Bunnyhop.h
rename to include/hacks/Bunnyhop.hpp
index 984ebd37..0282f31a 100644
--- a/src/hacks/Bunnyhop.h
+++ b/include/hacks/Bunnyhop.hpp
@@ -8,7 +8,7 @@
#ifndef HBUNNYHOP_H_
#define HBUNNYHOP_H_
-#include "../common.h"
+#include "common.hpp"
namespace hacks { namespace shared { namespace bunnyhop {
diff --git a/src/hacks/ESP.h b/include/hacks/ESP.hpp
similarity index 86%
rename from src/hacks/ESP.h
rename to include/hacks/ESP.hpp
index 73397f3e..453e8310 100644
--- a/src/hacks/ESP.h
+++ b/include/hacks/ESP.hpp
@@ -8,17 +8,7 @@
#ifndef HESP_H_
#define HESP_H_
-#include "../common.h"
-
-class ConVar;
-class CachedEntity;
-
-#include "../sdk.h" // VECTOR
-
-#include "../beforecheaders.h"
-#include
-#include
-#include "../aftercheaders.h"
+#include "common.hpp"
namespace hacks { namespace shared { namespace esp {
diff --git a/src/hacks/FollowBot.h b/include/hacks/FollowBot.hpp
similarity index 84%
rename from src/hacks/FollowBot.h
rename to include/hacks/FollowBot.hpp
index 9607d1ad..ec652585 100644
--- a/src/hacks/FollowBot.h
+++ b/include/hacks/FollowBot.hpp
@@ -5,17 +5,11 @@
* Author: nullifiedcat
*/
+#pragma once
+
#if ENABLE_IPC == 1
-#ifndef HACKS_FOLLOWBOT_H_
-#define HACKS_FOLLOWBOT_H_
-
-class CatCommand;
-class CatVar;
-class CachedEntity;
-class Vector;
-
-#include "../ipc.h"
+#include "common.hpp"
namespace hacks { namespace shared { namespace followbot {
@@ -50,6 +44,4 @@ void SelectEntity(int idx);
}}}
-#endif /* HACKS_FOLLOWBOT_H_ */
-
#endif
diff --git a/src/hacks/HealArrows.hpp b/include/hacks/HealArrows.hpp
similarity index 100%
rename from src/hacks/HealArrows.hpp
rename to include/hacks/HealArrows.hpp
diff --git a/src/hacks/KillSay.h b/include/hacks/KillSay.hpp
similarity index 83%
rename from src/hacks/KillSay.h
rename to include/hacks/KillSay.hpp
index 94028489..449b022f 100644
--- a/src/hacks/KillSay.h
+++ b/include/hacks/KillSay.hpp
@@ -5,10 +5,10 @@
* Author: nullifiedcat
*/
-#ifndef HACKS_KILLSAY_H_
-#define HACKS_KILLSAY_H_
+#ifndef HACKS_KILLSAY_HPP_
+#define HACKS_KILLSAY_HPP_
-#include "../common.h"
+#include "common.hpp"
class CatCommand;
@@ -30,4 +30,4 @@ extern const std::vector builtin_nonecore_mlg;
}}}
-#endif /* HACKS_KILLSAY_H_ */
+#endif /* HACKS_KILLSAY_HPP_ */
diff --git a/src/hacks/LagExploit.hpp b/include/hacks/LagExploit.hpp
similarity index 94%
rename from src/hacks/LagExploit.hpp
rename to include/hacks/LagExploit.hpp
index 2aef6837..618ca25b 100644
--- a/src/hacks/LagExploit.hpp
+++ b/include/hacks/LagExploit.hpp
@@ -8,7 +8,7 @@
#ifndef HACKS_LAGEXPLOIT_HPP_
#define HACKS_LAGEXPLOIT_HPP_
-#include "../common.h"
+#include "common.hpp"
// Idea from UC (instant bomb defuse thread)
diff --git a/src/hacks/Misc.h b/include/hacks/Misc.hpp
similarity index 94%
rename from src/hacks/Misc.h
rename to include/hacks/Misc.hpp
index 7622d280..d32b1c46 100644
--- a/src/hacks/Misc.h
+++ b/include/hacks/Misc.hpp
@@ -5,10 +5,10 @@
* Author: nullifiedcat
*/
-#ifndef HACKS_MISC_H_
-#define HACKS_MISC_H_
+#ifndef HACKS_MISC_HPP_
+#define HACKS_MISC_HPP_
-#include "../common.h"
+#include "common.hpp"
namespace hacks { namespace shared { namespace misc {
@@ -89,4 +89,4 @@ void CC_Misc_Disconnect_VAC();
DECLARE_HACK_SINGLETON(Misc);*/
-#endif /* HACKS_MISC_H_ */
+#endif /* HACKS_MISC_HPP_ */
diff --git a/src/hacks/Noisemaker.h b/include/hacks/Noisemaker.hpp
similarity index 62%
rename from src/hacks/Noisemaker.h
rename to include/hacks/Noisemaker.hpp
index 666ca1a3..3d1c40d9 100644
--- a/src/hacks/Noisemaker.h
+++ b/include/hacks/Noisemaker.hpp
@@ -5,10 +5,10 @@
* Author: nullifiedcat
*/
-#ifndef HACKS_NOISEMAKER_H_
-#define HACKS_NOISEMAKER_H_
+#ifndef HACKS_NOISEMAKER_HPP_
+#define HACKS_NOISEMAKER_HPP_
-#include "../common.h"
+#include "common.hpp"
namespace hacks { namespace tf2 { namespace noisemaker {
@@ -18,4 +18,4 @@ void CreateMove();
}}}
-#endif /* HACKS_NOISEMAKER_H_ */
+#endif /* HACKS_NOISEMAKER_HPP_ */
diff --git a/src/hacks/Radar.hpp b/include/hacks/Radar.hpp
similarity index 96%
rename from src/hacks/Radar.hpp
rename to include/hacks/Radar.hpp
index 315da0de..bd01ffd4 100644
--- a/src/hacks/Radar.hpp
+++ b/include/hacks/Radar.hpp
@@ -8,7 +8,7 @@
#ifndef HACKS_RADAR_HPP_
#define HACKS_RADAR_HPP_
-#include "../common.h"
+#include "common.hpp"
namespace hacks { namespace tf { namespace radar {
diff --git a/src/hacks/SkinChanger.hpp b/include/hacks/SkinChanger.hpp
similarity index 99%
rename from src/hacks/SkinChanger.hpp
rename to include/hacks/SkinChanger.hpp
index 8e305ea0..c26d8313 100644
--- a/src/hacks/SkinChanger.hpp
+++ b/include/hacks/SkinChanger.hpp
@@ -8,7 +8,7 @@
#ifndef HACKS_SKINCHANGER_HPP_
#define HACKS_SKINCHANGER_HPP_
-#include "../common.h"
+#include "common.hpp"
namespace hacks { namespace tf2 { namespace skinchanger {
diff --git a/src/hacks/Spam.h b/include/hacks/Spam.hpp
similarity index 86%
rename from src/hacks/Spam.h
rename to include/hacks/Spam.hpp
index 8b94c7a4..e6b11b2b 100644
--- a/src/hacks/Spam.h
+++ b/include/hacks/Spam.hpp
@@ -5,10 +5,10 @@
* Author: nullifiedcat
*/
-#ifndef HACKS_SPAM_H_
-#define HACKS_SPAM_H_
+#ifndef HACKS_SPAM_HPP_
+#define HACKS_SPAM_HPP_
-#include "../common.h"
+#include "common.hpp"
class CatCommand;
@@ -31,4 +31,4 @@ void Reload();
}}}
-#endif /* HACKS_SPAM_H_ */
+#endif /* HACKS_SPAM_HPP_ */
diff --git a/src/hacks/SpyAlert.h b/include/hacks/SpyAlert.hpp
similarity index 68%
rename from src/hacks/SpyAlert.h
rename to include/hacks/SpyAlert.hpp
index 4970c5d2..e946c753 100644
--- a/src/hacks/SpyAlert.h
+++ b/include/hacks/SpyAlert.hpp
@@ -5,10 +5,10 @@
* Author: nullifiedcat
*/
-#ifndef HACKS_SPYALERT_H_
-#define HACKS_SPYALERT_H_
+#ifndef HACKS_SPYALERT_HPP_
+#define HACKS_SPYALERT_HPP_
-#include "../common.h"
+#include "common.hpp"
namespace hacks { namespace tf { namespace spyalert {
@@ -20,4 +20,4 @@ void Draw();
}}}
-#endif /* HACKS_SPYALERT_H_ */
+#endif /* HACKS_SPYALERT_HPP_ */
diff --git a/src/hacks/Trigger.h b/include/hacks/Trigger.hpp
similarity index 95%
rename from src/hacks/Trigger.h
rename to include/hacks/Trigger.hpp
index 317a6b8b..6b369c28 100644
--- a/src/hacks/Trigger.h
+++ b/include/hacks/Trigger.hpp
@@ -8,7 +8,7 @@
#ifndef HTRIGGER_H_
#define HTRIGGER_H_
-#include "../common.h"
+#include "common.hpp"
class CatVar;
diff --git a/src/hacks/UberSpam.hpp b/include/hacks/UberSpam.hpp
similarity index 94%
rename from src/hacks/UberSpam.hpp
rename to include/hacks/UberSpam.hpp
index bb3a93e9..78a90927 100644
--- a/src/hacks/UberSpam.hpp
+++ b/include/hacks/UberSpam.hpp
@@ -8,7 +8,7 @@
#ifndef HACKS_UBERSPAM_HPP_
#define HACKS_UBERSPAM_HPP_
-#include "../common.h"
+#include "common.hpp"
namespace hacks { namespace tf { namespace uberspam {
diff --git a/src/hacks/Walkbot.hpp b/include/hacks/Walkbot.hpp
similarity index 100%
rename from src/hacks/Walkbot.hpp
rename to include/hacks/Walkbot.hpp
diff --git a/src/hacks/ac/aimbot.hpp b/include/hacks/ac/aimbot.hpp
similarity index 100%
rename from src/hacks/ac/aimbot.hpp
rename to include/hacks/ac/aimbot.hpp
diff --git a/src/hacks/ac/antiaim.hpp b/include/hacks/ac/antiaim.hpp
similarity index 100%
rename from src/hacks/ac/antiaim.hpp
rename to include/hacks/ac/antiaim.hpp
diff --git a/src/hacks/ac/bhop.hpp b/include/hacks/ac/bhop.hpp
similarity index 100%
rename from src/hacks/ac/bhop.hpp
rename to include/hacks/ac/bhop.hpp
diff --git a/src/hacks/ac/removecond.hpp b/include/hacks/ac/removecond.hpp
similarity index 100%
rename from src/hacks/ac/removecond.hpp
rename to include/hacks/ac/removecond.hpp
diff --git a/include/hacks/hacklist.hpp b/include/hacks/hacklist.hpp
new file mode 100644
index 00000000..42236d59
--- /dev/null
+++ b/include/hacks/hacklist.hpp
@@ -0,0 +1,44 @@
+/*
+ * hacklist.h
+ *
+ * Created on: Dec 18, 2016
+ * Author: nullifiedcat
+ */
+
+#ifndef HACKS_HACKLIST_HPP_
+#define HACKS_HACKLIST_HPP_
+
+#if ENABLE_VISUALS == 1
+
+#include "ESP.hpp"
+#include "SkinChanger.hpp"
+#include "Radar.hpp"
+#include "SpyAlert.hpp"
+
+#endif
+
+#include "Aimbot.hpp"
+#include "AntiAim.hpp"
+#include "AntiDisguise.hpp"
+#include "AutoHeal.hpp"
+#include "AutoReflect.hpp"
+#include "AutoSticky.hpp"
+#include "AntiCheat.hpp"
+#include "Bunnyhop.hpp"
+#include "LagExploit.hpp"
+#include "Walkbot.hpp"
+#include "AutoJoin.hpp"
+#include "AntiBackstab.hpp"
+#include "AutoBackstab.hpp"
+#include "FollowBot.hpp"
+#include "HealArrows.hpp"
+#include "Misc.hpp"
+#include "Trigger.hpp"
+#include "KillSay.hpp"
+#include "UberSpam.hpp"
+#include "Achievement.hpp"
+#include "Spam.hpp"
+#include "Noisemaker.hpp"
+#include "FollowBot.hpp"
+
+#endif /* HACKS_HACKLIST_HPP_ */
diff --git a/src/headshake.hpp b/include/headshake.hpp
similarity index 100%
rename from src/headshake.hpp
rename to include/headshake.hpp
diff --git a/src/helpers.h b/include/helpers.hpp
similarity index 94%
rename from src/helpers.h
rename to include/helpers.hpp
index 81bddce3..6a106506 100644
--- a/src/helpers.h
+++ b/include/helpers.hpp
@@ -5,8 +5,8 @@
* Author: nullifiedcat
*/
-#ifndef HELPERS_H_
-#define HELPERS_H_
+#ifndef HELPERS_HPP_
+#define HELPERS_HPP_
class CachedEntity;
class IClientEntity;
@@ -24,18 +24,18 @@ void SetCVarInterface(ICvar* iface);
#define RADPI 57.295779513082f
//#define DEG2RAD(x) (float)(x) * (float)(PI / 180.0f)
-#include "enums.h"
-#include "conditions.h"
-#include "entitycache.h"
-#include "logging.h"
+#include
+#include
+#include
+#include
-#include "beforecheaders.h"
+#include
#include
#include
#include
-#include "aftercheaders.h"
+#include
-#include "sdk.h"
+#include
//typedef void ( *FnCommandCallback_t )( const CCommand &command );
@@ -160,4 +160,4 @@ std::string format(const Args&... args) {
extern const std::string classes[10];
extern const char* powerups[POWERUP_COUNT];
-#endif /* HELPERS_H_ */
+#endif /* HELPERS_HPP_ */
diff --git a/src/hitrate.hpp b/include/hitrate.hpp
similarity index 100%
rename from src/hitrate.hpp
rename to include/hitrate.hpp
diff --git a/src/hooks.h b/include/hooks.hpp
similarity index 100%
rename from src/hooks.h
rename to include/hooks.hpp
diff --git a/src/hooks/CreateMove.h b/include/hooks/CreateMove.hpp
similarity index 100%
rename from src/hooks/CreateMove.h
rename to include/hooks/CreateMove.hpp
diff --git a/src/hooks/PaintTraverse.h b/include/hooks/PaintTraverse.hpp
similarity index 100%
rename from src/hooks/PaintTraverse.h
rename to include/hooks/PaintTraverse.hpp
diff --git a/src/hooks/hookedmethods.h b/include/hooks/hookedmethods.hpp
similarity index 95%
rename from src/hooks/hookedmethods.h
rename to include/hooks/hookedmethods.hpp
index 1e9fd042..276ffe67 100644
--- a/src/hooks/hookedmethods.h
+++ b/include/hooks/hookedmethods.hpp
@@ -8,7 +8,7 @@
#ifndef HOOKEDMETHODS_H_
#define HOOKEDMETHODS_H_
-#include "../common.h"
+#include "common.hpp"
typedef bool(*CreateMove_t)(void*, float, CUserCmd*);
typedef void(*PaintTraverse_t)(void*, unsigned int, bool, bool);
@@ -59,8 +59,8 @@ void DoSDLUnhooking();
#endif
-#include "CreateMove.h"
-#include "PaintTraverse.h"
-#include "others.h"
+#include "CreateMove.hpp"
+#include "PaintTraverse.hpp"
+#include "others.hpp"
#endif /* HOOKEDMETHODS_H_ */
diff --git a/src/hooks/others.h b/include/hooks/others.hpp
similarity index 100%
rename from src/hooks/others.h
rename to include/hooks/others.hpp
diff --git a/src/hoovy.hpp b/include/hoovy.hpp
similarity index 100%
rename from src/hoovy.hpp
rename to include/hoovy.hpp
diff --git a/src/https_request.hpp b/include/https_request.hpp
similarity index 90%
rename from src/https_request.hpp
rename to include/https_request.hpp
index f56a7adc..3dc765ba 100644
--- a/src/https_request.hpp
+++ b/include/https_request.hpp
@@ -7,12 +7,12 @@
#pragma once
+#include
+#include
#include
#include
-#include "beforecheaders.h"
#include
-#include "aftercheaders.h"
namespace https {
diff --git a/src/init.hpp b/include/init.hpp
similarity index 78%
rename from src/init.hpp
rename to include/init.hpp
index 92f6469f..8f788025 100644
--- a/src/init.hpp
+++ b/include/init.hpp
@@ -7,9 +7,9 @@
#pragma once
-#include "beforecheaders.h"
+#include
+#include
#include
-#include "aftercheaders.h"
std::stack& init_stack();
diff --git a/src/interfaces.h b/include/interfaces.hpp
similarity index 92%
rename from src/interfaces.h
rename to include/interfaces.hpp
index 1407c5c3..7f4874f9 100644
--- a/src/interfaces.h
+++ b/include/interfaces.hpp
@@ -5,14 +5,13 @@
* Author: nullifiedcat
*/
-#ifndef INTERFACES_H_
-#define INTERFACES_H_
+#ifndef INTERFACES_HPP_
+#define INTERFACES_HPP_
-#include "beforecheaders.h"
+#include
+#include
+#include
#include
-#include "aftercheaders.h"
-
-#include "sharedobj.h"
namespace vgui {
class ISurface;
@@ -86,4 +85,4 @@ extern IGameEventManager* g_IGameEventManager;
void CreateInterfaces();
-#endif /* INTERFACES_H_ */
+#endif /* INTERFACES_HPP_ */
diff --git a/src/ipc.h b/include/ipc.hpp
similarity index 96%
rename from src/ipc.h
rename to include/ipc.hpp
index fdf7abbb..9aeb61ab 100644
--- a/src/ipc.h
+++ b/include/ipc.hpp
@@ -10,11 +10,11 @@
#ifndef IPC_H_
#define IPC_H_
-#include "beforecheaders.h"
+#include
#include "ipcb.hpp"
#include "pthread.h"
#include
-#include "aftercheaders.h"
+#include
class CatCommand;
class CatVar;
diff --git a/src/itemtypes.h b/include/itemtypes.hpp
similarity index 97%
rename from src/itemtypes.h
rename to include/itemtypes.hpp
index d6d2913f..f422ef0f 100644
--- a/src/itemtypes.h
+++ b/include/itemtypes.hpp
@@ -5,14 +5,14 @@
* Author: nullifiedcat
*/
-#ifndef ITEMTYPES_H_
-#define ITEMTYPES_H_
+#ifndef ITEMTYPES_HPP_
+#define ITEMTYPES_HPP_
-#include "beforecheaders.h"
+#include
+#include
#include