From 093f7b6f67c0db6f24ad93c5f52a6719d150438a Mon Sep 17 00:00:00 2001 From: TotallyNotElite <1yourexperiment@protonmail.com> Date: Thu, 24 May 2018 14:19:23 +0200 Subject: [PATCH 1/3] Correctly display friend glow when glow_health is on --- src/visual/EffectGlow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/visual/EffectGlow.cpp b/src/visual/EffectGlow.cpp index 296ff87d..ed5451ee 100644 --- a/src/visual/EffectGlow.cpp +++ b/src/visual/EffectGlow.cpp @@ -260,7 +260,7 @@ rgba_t EffectGlow::GlowColor(IClientEntity *entity) return colors::red; if (ent->m_IDX == LOCAL_E->m_IDX && glowself && !rainbow) return colors::FromRGBA8(glowR, glowG, glowB, 255); - if (health) + if (health && playerlist::IsDefault(ent)) { return colors::Health(ent->m_iHealth(), ent->m_iMaxHealth()); } From 7eac0b38d9a22e8bb648d17ad56c599f725ce644 Mon Sep 17 00:00:00 2001 From: TotallyNotElite <1yourexperiment@protonmail.com> Date: Thu, 24 May 2018 16:27:47 +0200 Subject: [PATCH 2/3] AC: Option to disable Auto Rage and to disable Anti-Aim check --- include/hacks/AntiCheat.hpp | 4 ++-- src/hacks/AntiCheat.cpp | 1 + src/hacks/ac/aimbot.cpp | 2 +- src/hacks/ac/antiaim.cpp | 6 ++++-- src/visual/menu/ncc/Menu.cpp | 2 ++ 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/include/hacks/AntiCheat.hpp b/include/hacks/AntiCheat.hpp index 2f2ffb84..cf329b7c 100755 --- a/include/hacks/AntiCheat.hpp +++ b/include/hacks/AntiCheat.hpp @@ -17,10 +17,10 @@ namespace hacks::shared::anticheat { void Accuse(int eid, const std::string &hack, const std::string &details); - +static CatVar setrage(CV_SWITCH, "ac_setrage", "0", "Auto Rage"); void Init(); void CreateMove(); void ResetPlayer(int index); void ResetEverything(); -} \ No newline at end of file +} diff --git a/src/hacks/AntiCheat.cpp b/src/hacks/AntiCheat.cpp index 88267b1b..e979fa6d 100755 --- a/src/hacks/AntiCheat.cpp +++ b/src/hacks/AntiCheat.cpp @@ -20,6 +20,7 @@ namespace anticheat static CatVar enabled(CV_SWITCH, "ac_enabled", "0", "Enable AC"); static CatVar accuse_chat(CV_SWITCH, "ac_chat", "0", "Accuse in chat"); +static CatVar setrage(CV_SWITCH, "ac_setrage", "0", "Auto Rage"); void Accuse(int eid, const std::string &hack, const std::string &details) { diff --git a/src/hacks/ac/aimbot.cpp b/src/hacks/ac/aimbot.cpp index 97e521bd..cfb93c74 100644 --- a/src/hacks/ac/aimbot.cpp +++ b/src/hacks/ac/aimbot.cpp @@ -63,7 +63,7 @@ void Update(CachedEntity *player) // deviation, data.detections); player_info_t info; g_IEngine->GetPlayerInfo(player->m_IDX, &info); - if (am > 5) + if (am > 5 && hacks::shared::anticheat::setrage) { playerlist::AccessData(info.friendsID).state = playerlist::k_EState::RAGE; diff --git a/src/hacks/ac/antiaim.cpp b/src/hacks/ac/antiaim.cpp index 157250b3..42198833 100755 --- a/src/hacks/ac/antiaim.cpp +++ b/src/hacks/ac/antiaim.cpp @@ -12,7 +12,7 @@ namespace ac { namespace antiaim { - +static CatVar enabled(CV_SWITCH, "ac_antiaim", "1", "Detect Antiaim"); unsigned long last_accusation[32]{ 0 }; void ResetEverything() @@ -32,6 +32,8 @@ void Init() void Update(CachedEntity *player) { + if (!enabled) + return; int amount[32]; auto &am = amount[player->m_IDX - 1]; if (tickcount - last_accusation[player->m_IDX - 1] < 60 * 60) @@ -48,7 +50,7 @@ void Update(CachedEntity *player) am++; player_info_t info; g_IEngine->GetPlayerInfo(player->m_IDX, &info); - if (am > 5) + if (am > 5 && hacks::shared::anticheat::setrage) { playerlist::AccessData(info.friendsID).state = playerlist::k_EState::RAGE; diff --git a/src/visual/menu/ncc/Menu.cpp b/src/visual/menu/ncc/Menu.cpp index a12c11a0..e7d05fbf 100644 --- a/src/visual/menu/ncc/Menu.cpp +++ b/src/visual/menu/ncc/Menu.cpp @@ -733,6 +733,8 @@ static const std::string list_tf2 = R"( "ac_aimbot" "ac_aimbot_detections" "ac_aimbot_angle" + "ac_antiaim" + "ac_setrage" "ac_bhop_count" "ac_ignore_local" "ac_chat" From 15f1dbaff59fa6c4ce0e4c7712a519676315c8d1 Mon Sep 17 00:00:00 2001 From: TotallyNotElite <1yourexperiment@protonmail.com> Date: Thu, 24 May 2018 16:39:13 +0200 Subject: [PATCH 3/3] Rename to ac_autorage --- include/hacks/AntiCheat.hpp | 2 +- src/hacks/AntiCheat.cpp | 2 +- src/hacks/ac/aimbot.cpp | 2 +- src/hacks/ac/antiaim.cpp | 2 +- src/visual/menu/ncc/Menu.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/hacks/AntiCheat.hpp b/include/hacks/AntiCheat.hpp index cf329b7c..e6e49655 100755 --- a/include/hacks/AntiCheat.hpp +++ b/include/hacks/AntiCheat.hpp @@ -17,7 +17,7 @@ namespace hacks::shared::anticheat { void Accuse(int eid, const std::string &hack, const std::string &details); -static CatVar setrage(CV_SWITCH, "ac_setrage", "0", "Auto Rage"); +static CatVar autorage(CV_SWITCH, "ac_autorage", "0", "Auto Rage"); void Init(); void CreateMove(); diff --git a/src/hacks/AntiCheat.cpp b/src/hacks/AntiCheat.cpp index e979fa6d..057bacae 100755 --- a/src/hacks/AntiCheat.cpp +++ b/src/hacks/AntiCheat.cpp @@ -20,7 +20,7 @@ namespace anticheat static CatVar enabled(CV_SWITCH, "ac_enabled", "0", "Enable AC"); static CatVar accuse_chat(CV_SWITCH, "ac_chat", "0", "Accuse in chat"); -static CatVar setrage(CV_SWITCH, "ac_setrage", "0", "Auto Rage"); +static CatVar autorage(CV_SWITCH, "ac_autorage", "0", "Auto Rage"); void Accuse(int eid, const std::string &hack, const std::string &details) { diff --git a/src/hacks/ac/aimbot.cpp b/src/hacks/ac/aimbot.cpp index cfb93c74..ddad0e16 100644 --- a/src/hacks/ac/aimbot.cpp +++ b/src/hacks/ac/aimbot.cpp @@ -63,7 +63,7 @@ void Update(CachedEntity *player) // deviation, data.detections); player_info_t info; g_IEngine->GetPlayerInfo(player->m_IDX, &info); - if (am > 5 && hacks::shared::anticheat::setrage) + if (am > 5 && hacks::shared::anticheat::autorage) { playerlist::AccessData(info.friendsID).state = playerlist::k_EState::RAGE; diff --git a/src/hacks/ac/antiaim.cpp b/src/hacks/ac/antiaim.cpp index 42198833..905fdfe4 100755 --- a/src/hacks/ac/antiaim.cpp +++ b/src/hacks/ac/antiaim.cpp @@ -50,7 +50,7 @@ void Update(CachedEntity *player) am++; player_info_t info; g_IEngine->GetPlayerInfo(player->m_IDX, &info); - if (am > 5 && hacks::shared::anticheat::setrage) + if (am > 5 && hacks::shared::anticheat::autorage) { playerlist::AccessData(info.friendsID).state = playerlist::k_EState::RAGE; diff --git a/src/visual/menu/ncc/Menu.cpp b/src/visual/menu/ncc/Menu.cpp index e7d05fbf..55fe7f2b 100644 --- a/src/visual/menu/ncc/Menu.cpp +++ b/src/visual/menu/ncc/Menu.cpp @@ -734,7 +734,7 @@ static const std::string list_tf2 = R"( "ac_aimbot_detections" "ac_aimbot_angle" "ac_antiaim" - "ac_setrage" + "ac_autorage" "ac_bhop_count" "ac_ignore_local" "ac_chat"