From a18fd685be62ff474bfbf7945d3b4ecb5a4ba769 Mon Sep 17 00:00:00 2001 From: Dr_Coomer <54870332+yoshisaac@users.noreply.github.com> Date: Sat, 20 Jan 2024 01:28:32 -0500 Subject: [PATCH 1/2] sizeof(char) is always 1 --- ImGuiExternal/Source.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ImGuiExternal/Source.cpp b/ImGuiExternal/Source.cpp index b546a5c..9f46350 100644 --- a/ImGuiExternal/Source.cpp +++ b/ImGuiExternal/Source.cpp @@ -83,7 +83,7 @@ void Draw() { static bool parsed_map = false; static std::string map_name_old = ""; for (int j = 0; j < 256; j++) { - char c = RPM(Game::engine + MAP_NAME + j*sizeof(char)); + char c = RPM(Game::engine + MAP_NAME + j); if (c == '\0') { map_name[j] = '\0'; break; @@ -147,7 +147,7 @@ void Draw() { DWORD list = RPM(Game::client + NAME_LIST) + 0x38; char name[256]; for (int j = 0; j < 256; j++) { - char c = RPM(list + 0x140 * i + j*sizeof(char)); + char c = RPM(list + 0x140 * i + j); if (c == '\0') { name[j] = '\0'; break; @@ -519,4 +519,4 @@ int main() { while (TRUE) { MainLoop(); } -} \ No newline at end of file +} -- 2.52.0 From 15785fd03d1908df57e759f8429531b6a735d819 Mon Sep 17 00:00:00 2001 From: ALittlePatate Date: Wed, 17 Apr 2024 17:47:23 +0200 Subject: [PATCH 2/2] fix: aimbot targeting allies --- ImGuiExternal/Source.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ImGuiExternal/Source.cpp b/ImGuiExternal/Source.cpp index b546a5c..60cbefd 100644 --- a/ImGuiExternal/Source.cpp +++ b/ImGuiExternal/Source.cpp @@ -177,7 +177,8 @@ void Draw() { continue; } - DoAimbot(w2s_neckpos, sqrt(abs(w2s_headpos.y - w2s_neckpos.y)), show_fov, is_visible); + if (ent_team != localplayer_team) + DoAimbot(w2s_neckpos, sqrt(abs(w2s_headpos.y - w2s_neckpos.y)), show_fov, is_visible); #ifdef _DEBUG char ent_text[256]; -- 2.52.0