From 96288c5cbedd1f2fd2e7817bc3730ba8f7dfd11d Mon Sep 17 00:00:00 2001 From: LightCat Date: Fri, 2 Nov 2018 14:24:11 +0100 Subject: [PATCH] Fix Charge aimbot issues --- src/hacks/MiscAimbot.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hacks/MiscAimbot.cpp b/src/hacks/MiscAimbot.cpp index 8a9e6f53..e86dcac8 100644 --- a/src/hacks/MiscAimbot.cpp +++ b/src/hacks/MiscAimbot.cpp @@ -6,6 +6,7 @@ #include #include #include +#include static settings::Bool enable{ "sandwichaim.enable", "false" }; static settings::Button aimkey{ "sandwichaim.aimkey", "" }; static settings::Int aimkey_mode{ "sandwichaim.aimkey-mode", "0" }; @@ -32,6 +33,8 @@ std::pair FindBestEnt(bool teammate, bool Predict, continue; if (!ent->hitboxes.GetHitbox(1)) continue; + if (!teammate && player_tools::shouldTarget(ent) != player_tools::IgnoreReason::DO_NOT_IGNORE) + continue; Vector target{}; if (Predict) target = ProjectilePrediction(ent, 1, sandwich_speed, grav,