From 2b725cdb6e3d0ca230ffd8a1bb54324f2824f7e7 Mon Sep 17 00:00:00 2001 From: Jenny White Date: Sun, 29 Apr 2018 14:01:45 +0300 Subject: [PATCH] #includes --- include/common.hpp | 2 -- include/hacks/Achievement.hpp | 9 ++------- src/chatlog.cpp | 1 + src/hack.cpp | 2 ++ src/hacks/Achievement.cpp | 9 ++------- src/hacks/Aimbot.cpp | 4 ++++ src/hacks/AntiAim.cpp | 1 + src/hacks/AntiCheat.cpp | 3 +++ src/hacks/AutoBackstab.cpp | 19 ++++++++++--------- src/hacks/AutoHeal.cpp | 2 ++ src/hacks/AutoReflect.cpp | 1 + src/hacks/AutoSticky.cpp | 1 + src/hacks/ESP.cpp | 1 + src/hacks/FollowBot.cpp | 2 ++ src/hacks/KillSay.cpp | 1 + src/hacks/LagExploit.cpp | 2 ++ src/hacks/Misc.cpp | 1 + src/hacks/SkinChanger.cpp | 1 + src/hacks/Spam.cpp | 1 + src/hacks/Trigger.cpp | 1 + src/hacks/UberSpam.cpp | 1 + src/hacks/Walkbot.cpp | 1 + src/hacks/ac/aimbot.cpp | 2 ++ src/hacks/ac/antiaim.cpp | 1 + src/hacks/ac/bhop.cpp | 1 + src/hooks/CreateMove.cpp | 1 + src/hooks/DispatchUserMessage.cpp | 1 + src/hooks/LevelInit.cpp | 1 + src/hooks/LevelShutdown.cpp | 2 ++ src/hooks/Paint.cpp | 1 + src/hooks/Shutdown.cpp | 1 + src/hooks/visual/FrameStageNotify.cpp | 1 + src/ipc.cpp | 1 + src/visual/EffectGlow.cpp | 1 + src/visual/drawmgr.cpp | 3 +++ 35 files changed, 58 insertions(+), 25 deletions(-) diff --git a/include/common.hpp b/include/common.hpp index d76b439c..7e0ca892 100755 --- a/include/common.hpp +++ b/include/common.hpp @@ -111,8 +111,6 @@ #include "GUI.h" #endif -#include - #include template constexpr T _clamp(T _min, T _max, T _val) diff --git a/include/hacks/Achievement.hpp b/include/hacks/Achievement.hpp index 4e2bafa9..5866ea93 100755 --- a/include/hacks/Achievement.hpp +++ b/include/hacks/Achievement.hpp @@ -7,15 +7,10 @@ #pragma once -namespace hacks -{ -namespace tf2 -{ -namespace achievement +namespace hacks::tf2::achievement { void Lock(); void Unlock(); -} -} + } diff --git a/src/chatlog.cpp b/src/chatlog.cpp index 0f225c69..72da824c 100644 --- a/src/chatlog.cpp +++ b/src/chatlog.cpp @@ -10,6 +10,7 @@ #include #include +#include namespace chatlog { diff --git a/src/hack.cpp b/src/hack.cpp index 2cba698a..4962309e 100644 --- a/src/hack.cpp +++ b/src/hack.cpp @@ -9,6 +9,8 @@ #include "hack.hpp" #include "common.hpp" +#include + #define STRINGIFY(x) #x #define TO_STRING(x) STRINGIFY(x) diff --git a/src/hacks/Achievement.cpp b/src/hacks/Achievement.cpp index a3edf8ad..05e99ddc 100644 --- a/src/hacks/Achievement.cpp +++ b/src/hacks/Achievement.cpp @@ -7,11 +7,7 @@ #include "common.hpp" -namespace hacks -{ -namespace tf2 -{ -namespace achievement +namespace hacks::tf2::achievement { CatVar safety(CV_SWITCH, "achievement_safety", "1", @@ -115,6 +111,5 @@ CatCommand }); CatCommand lock("achievement_lock", "Lock all achievements", Lock); CatCommand unlock("achievement_unlock", "Unlock all achievements", Unlock); -} -} + } diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index 56c750b5..e38316b8 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -5,6 +5,10 @@ * Author: nullifiedcat */ +#include +#include +#include +#include #include "common.hpp" namespace hacks diff --git a/src/hacks/AntiAim.cpp b/src/hacks/AntiAim.cpp index e04c68ae..5f2950bf 100644 --- a/src/hacks/AntiAim.cpp +++ b/src/hacks/AntiAim.cpp @@ -5,6 +5,7 @@ * Author: nullifiedcat */ +#include #include "common.hpp" namespace hacks diff --git a/src/hacks/AntiCheat.cpp b/src/hacks/AntiCheat.cpp index e8c03200..ac3bb571 100755 --- a/src/hacks/AntiCheat.cpp +++ b/src/hacks/AntiCheat.cpp @@ -5,6 +5,9 @@ * Author: nullifiedcat */ +#include +#include +#include #include "common.hpp" #include "hack.hpp" diff --git a/src/hacks/AutoBackstab.cpp b/src/hacks/AutoBackstab.cpp index 9e6aaa26..d9379b77 100755 --- a/src/hacks/AutoBackstab.cpp +++ b/src/hacks/AutoBackstab.cpp @@ -14,6 +14,16 @@ namespace tf2 namespace autobackstab { +// pPaste, thanks to F1ssi0N +const Vector GetWorldSpaceCenter(CachedEntity *ent) +{ + Vector vMin, vMax; + RAW_ENT(ent)->GetRenderBounds(vMin, vMax); + Vector vWorldSpaceCenter = RAW_ENT(ent)->GetAbsOrigin(); + vWorldSpaceCenter.z += (vMin.z + vMax.z) / 2; + return vWorldSpaceCenter; +} + static CatVar enabled(CV_SWITCH, "autobackstab", "0", "Auto Backstab", "Does not depend on triggerbot!"); static CatVar value(CV_INT, "autobackstab_range", "110.0f", @@ -89,15 +99,6 @@ void CreateMove() } } -// pPaste, thanks to F1ssi0N -const Vector GetWorldSpaceCenter(CachedEntity *ent) -{ - Vector vMin, vMax; - RAW_ENT(ent)->GetRenderBounds(vMin, vMax); - Vector vWorldSpaceCenter = RAW_ENT(ent)->GetAbsOrigin(); - vWorldSpaceCenter.z += (vMin.z + vMax.z) / 2; - return vWorldSpaceCenter; -} } } } diff --git a/src/hacks/AutoHeal.cpp b/src/hacks/AutoHeal.cpp index 18b0b1e4..c09e7bf4 100644 --- a/src/hacks/AutoHeal.cpp +++ b/src/hacks/AutoHeal.cpp @@ -6,6 +6,8 @@ */ #include "common.hpp" +#include +#include namespace hacks { diff --git a/src/hacks/AutoReflect.cpp b/src/hacks/AutoReflect.cpp index 23308cce..8e715587 100755 --- a/src/hacks/AutoReflect.cpp +++ b/src/hacks/AutoReflect.cpp @@ -6,6 +6,7 @@ */ #include "common.hpp" +#include namespace hacks { diff --git a/src/hacks/AutoSticky.cpp b/src/hacks/AutoSticky.cpp index 07913fc3..62f5f36b 100644 --- a/src/hacks/AutoSticky.cpp +++ b/src/hacks/AutoSticky.cpp @@ -6,6 +6,7 @@ */ #include "common.hpp" +#include namespace hacks { diff --git a/src/hacks/ESP.cpp b/src/hacks/ESP.cpp index c7423100..5a6079f1 100644 --- a/src/hacks/ESP.cpp +++ b/src/hacks/ESP.cpp @@ -5,6 +5,7 @@ * Author: nullifiedcat */ +#include #include "common.hpp" namespace hacks diff --git a/src/hacks/FollowBot.cpp b/src/hacks/FollowBot.cpp index 5f9820f0..ad407f43 100644 --- a/src/hacks/FollowBot.cpp +++ b/src/hacks/FollowBot.cpp @@ -7,6 +7,8 @@ */ #include "common.hpp" +#include +#include namespace hacks { diff --git a/src/hacks/KillSay.cpp b/src/hacks/KillSay.cpp index 3cd00517..c72f46b9 100755 --- a/src/hacks/KillSay.cpp +++ b/src/hacks/KillSay.cpp @@ -5,6 +5,7 @@ * Author: nullifiedcat */ +#include #include "common.hpp" namespace hacks diff --git a/src/hacks/LagExploit.cpp b/src/hacks/LagExploit.cpp index 7c6451e5..e902481a 100644 --- a/src/hacks/LagExploit.cpp +++ b/src/hacks/LagExploit.cpp @@ -5,6 +5,8 @@ * Author: nullifiedcat */ +#include +#include #include "common.hpp" namespace hacks diff --git a/src/hacks/Misc.cpp b/src/hacks/Misc.cpp index 4be81b36..547f23b5 100644 --- a/src/hacks/Misc.cpp +++ b/src/hacks/Misc.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include "sharedobj.hpp" diff --git a/src/hacks/SkinChanger.cpp b/src/hacks/SkinChanger.cpp index 6facc80d..26868c31 100644 --- a/src/hacks/SkinChanger.cpp +++ b/src/hacks/SkinChanger.cpp @@ -9,6 +9,7 @@ #include #include +#include namespace hacks { diff --git a/src/hacks/Spam.cpp b/src/hacks/Spam.cpp index 8c6d5631..5e360e50 100755 --- a/src/hacks/Spam.cpp +++ b/src/hacks/Spam.cpp @@ -5,6 +5,7 @@ * Author: nullifiedcat */ +#include #include "common.hpp" namespace hacks diff --git a/src/hacks/Trigger.cpp b/src/hacks/Trigger.cpp index 9d5f3b38..601148c5 100755 --- a/src/hacks/Trigger.cpp +++ b/src/hacks/Trigger.cpp @@ -6,6 +6,7 @@ * Author: nullifiedcat */ +#include #include "common.hpp" namespace hacks diff --git a/src/hacks/UberSpam.cpp b/src/hacks/UberSpam.cpp index de9f58b0..cb80d6b8 100755 --- a/src/hacks/UberSpam.cpp +++ b/src/hacks/UberSpam.cpp @@ -6,6 +6,7 @@ */ #include "common.hpp" +#include namespace hacks { diff --git a/src/hacks/Walkbot.cpp b/src/hacks/Walkbot.cpp index ec587150..ba6f8fe2 100644 --- a/src/hacks/Walkbot.cpp +++ b/src/hacks/Walkbot.cpp @@ -11,6 +11,7 @@ #include #include #include +#include namespace hacks { diff --git a/src/hacks/ac/aimbot.cpp b/src/hacks/ac/aimbot.cpp index f8a8e2c4..7efdb635 100644 --- a/src/hacks/ac/aimbot.cpp +++ b/src/hacks/ac/aimbot.cpp @@ -5,6 +5,8 @@ * Author: nullifiedcat */ +#include +#include #include "common.hpp" namespace ac diff --git a/src/hacks/ac/antiaim.cpp b/src/hacks/ac/antiaim.cpp index 0731394c..157250b3 100755 --- a/src/hacks/ac/antiaim.cpp +++ b/src/hacks/ac/antiaim.cpp @@ -5,6 +5,7 @@ * Author: nullifiedcat */ +#include #include "common.hpp" namespace ac diff --git a/src/hacks/ac/bhop.cpp b/src/hacks/ac/bhop.cpp index 08491662..3c788db7 100755 --- a/src/hacks/ac/bhop.cpp +++ b/src/hacks/ac/bhop.cpp @@ -5,6 +5,7 @@ * Author: nullifiedcat */ +#include #include "common.hpp" namespace ac diff --git a/src/hooks/CreateMove.cpp b/src/hooks/CreateMove.cpp index d496cb88..140838f7 100644 --- a/src/hooks/CreateMove.cpp +++ b/src/hooks/CreateMove.cpp @@ -10,6 +10,7 @@ #include "MiscTemporary.hpp" #include +#include #include "HookedMethods.hpp" diff --git a/src/hooks/DispatchUserMessage.cpp b/src/hooks/DispatchUserMessage.cpp index c150fb95..29a7065c 100644 --- a/src/hooks/DispatchUserMessage.cpp +++ b/src/hooks/DispatchUserMessage.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include "HookedMethods.hpp" static bool retrun = false; diff --git a/src/hooks/LevelInit.cpp b/src/hooks/LevelInit.cpp index 43de342f..c4e88de8 100644 --- a/src/hooks/LevelInit.cpp +++ b/src/hooks/LevelInit.cpp @@ -3,6 +3,7 @@ Copyright (c) 2018 nullworks. All rights reserved. */ +#include #include "HookedMethods.hpp" diff --git a/src/hooks/LevelShutdown.cpp b/src/hooks/LevelShutdown.cpp index dacbc42b..4e25ca87 100644 --- a/src/hooks/LevelShutdown.cpp +++ b/src/hooks/LevelShutdown.cpp @@ -3,6 +3,8 @@ Copyright (c) 2018 nullworks. All rights reserved. */ +#include +#include #include "HookedMethods.hpp" namespace hooked_methods diff --git a/src/hooks/Paint.cpp b/src/hooks/Paint.cpp index beb9d9b8..98ff8f87 100644 --- a/src/hooks/Paint.cpp +++ b/src/hooks/Paint.cpp @@ -5,6 +5,7 @@ * Author: nullifiedcat */ +#include #include "common.hpp" #include "hitrate.hpp" #include "hack.hpp" diff --git a/src/hooks/Shutdown.cpp b/src/hooks/Shutdown.cpp index 6e88f445..030376c4 100644 --- a/src/hooks/Shutdown.cpp +++ b/src/hooks/Shutdown.cpp @@ -3,6 +3,7 @@ Copyright (c) 2018 nullworks. All rights reserved. */ +#include #include "HookedMethods.hpp" static CatVar die_if_vac(CV_SWITCH, "die_if_vac", "0", "Die if VAC banned"); diff --git a/src/hooks/visual/FrameStageNotify.cpp b/src/hooks/visual/FrameStageNotify.cpp index e3d073f6..99291126 100644 --- a/src/hooks/visual/FrameStageNotify.cpp +++ b/src/hooks/visual/FrameStageNotify.cpp @@ -4,6 +4,7 @@ */ #include +#include #include "HookedMethods.hpp" CatVar resolver(CV_SWITCH, "resolver", "0", "Resolve angles"); diff --git a/src/ipc.cpp b/src/ipc.cpp index 72cd6953..723d4c46 100644 --- a/src/ipc.cpp +++ b/src/ipc.cpp @@ -5,6 +5,7 @@ * Author: nullifiedcat */ +#include #include "ipc.hpp" #include "common.hpp" diff --git a/src/visual/EffectGlow.cpp b/src/visual/EffectGlow.cpp index 4cf7cc04..91215334 100755 --- a/src/visual/EffectGlow.cpp +++ b/src/visual/EffectGlow.cpp @@ -7,6 +7,7 @@ #include #include +#include #include "common.hpp" IMaterialSystem *materials = nullptr; diff --git a/src/visual/drawmgr.cpp b/src/visual/drawmgr.cpp index dbbec05d..80e9f24c 100644 --- a/src/visual/drawmgr.cpp +++ b/src/visual/drawmgr.cpp @@ -6,6 +6,9 @@ */ #include +#include +#include +#include #include "common.hpp" #include "visual/drawing.hpp" #include "hack.hpp"