From 16afa2ccf3e26d934fe556cfc9bfe04fc9bfe334 Mon Sep 17 00:00:00 2001 From: NerfBatInc <112824641+NerfBatInc@users.noreply.github.com> Date: Tue, 27 Sep 2022 12:16:44 -0400 Subject: [PATCH] added Aim max Dist slider aim max distance . --- apex_dma/apex_dma.cpp | 12 +++++++++--- apex_guest/Client/Client/main.cpp | 15 +++++++++++---- apex_guest/Client/Client/overlay.cpp | 19 ++++++++++++++++--- 3 files changed, 36 insertions(+), 10 deletions(-) diff --git a/apex_dma/apex_dma.cpp b/apex_dma/apex_dma.cpp index 16de74c..1a1b5da 100644 --- a/apex_dma/apex_dma.cpp +++ b/apex_dma/apex_dma.cpp @@ -118,6 +118,9 @@ bool weapon_bow = false; bool weapon_3030_repeater = false; bool weapon_rampage = false; bool weapon_car_smg = false; +//aim dist check +float aimdist = 200.0f * 40.0f; + @@ -192,7 +195,7 @@ void ProcessPlayer(Entity& LPlayer, Entity& target, uint64_t entitylist, int ind Vector LocalPlayerPosition = LPlayer.getPosition(); float dist = LocalPlayerPosition.DistTo(EntityPosition); //std::printf(" X: %.6f || Y:%.6f",LocalPlayerPosition.x, LocalPlayerPosition.y); //Prints x and y cords of localplayer to get mainmap radar stuff. - if (dist > max_dist) return; + if (dist > aimdist) return; if(!firing_range) if (entity_team < 0 || entity_team>50 || entity_team == team_player) return; @@ -845,6 +848,8 @@ static void set_vars(uint64_t add_addr) client_mem.Read(add_addr + sizeof(uint64_t)*92, lengthws_addr); uint64_t widthws_addr = 0; client_mem.Read(add_addr + sizeof(uint64_t)*93, widthws_addr); + uint64_t aimdist_addr = 0; + client_mem.Read(add_addr + sizeof(uint64_t)*94, aimdist_addr); @@ -959,6 +964,7 @@ static void set_vars(uint64_t add_addr) client_mem.Read(weapon_car_smg_addr, weapon_car_smg); client_mem.Read(lengthws_addr, lengthws); client_mem.Read(widthws_addr, widthws); + client_mem.Read(aimdist_addr, aimdist); @@ -1677,7 +1683,7 @@ static void item_glow_t() { apex_mem.Write(centity + OFFSET_GLOW_ENABLE, 1); apex_mem.Write(centity + OFFSET_GLOW_THROUGH_WALLS, 1); // 1 = far, 2 = close - + apex_mem.Write(centity + 0x2C4, { 101,101,99,90 }); apex_mem.Write(centity + 0x1D0, 144); // r apex_mem.Write(centity + 0x1D4, 238); // g @@ -1731,7 +1737,7 @@ int main(int argc, char *argv[]) //const char* ap_proc = "EasyAntiCheat_launcher.exe"; //Client "add" offset - uint64_t add_off = 0x1409a0; + uint64_t add_off = 0x1409b0; std::thread aimbot_thr; std::thread esp_thr; diff --git a/apex_guest/Client/Client/main.cpp b/apex_guest/Client/Client/main.cpp index bb51e2a..1ef73db 100644 --- a/apex_guest/Client/Client/main.cpp +++ b/apex_guest/Client/Client/main.cpp @@ -147,6 +147,8 @@ bool weapon_bow = false; bool weapon_3030_repeater = false; bool weapon_rampage = false; bool weapon_car_smg = false; +// Aim distance check +float aimdist = 9905.0f; bool thirdperson = false; @@ -155,7 +157,7 @@ int allied_spectators = 0; //write bool valid = true; //write bool next2 = true; //read write -uint64_t add[95]; +uint64_t add[96]; bool k_f5 = 0; bool k_f6 = 0; @@ -779,6 +781,7 @@ int main(int argc, char** argv) add[91] = (uintptr_t)&weapon_car_smg; add[92] = (uintptr_t)&lengthws; add[93] = (uintptr_t)&widthws; + add[94] = (uintptr_t)&aimdist; @@ -921,6 +924,9 @@ int main(int argc, char** argv) config >> wss; config >> wstimesx; config >> wstimesy; + config >> minimapradardotsize1; + config >> minimapradardotsize2; + config >> aimdist; config.close(); } } @@ -972,15 +978,16 @@ int main(int argc, char** argv) if (IsKeyDown(aim_key) && toggleaim) { - aiming = true; + aiming = true; } else if (IsKeyDown(aim_key2) && toggleaim2) - aiming = true; + aiming = true; else { - aiming = false; + aiming = false; } + } ready = false; ov1.Clear(); diff --git a/apex_guest/Client/Client/overlay.cpp b/apex_guest/Client/Client/overlay.cpp index 799f394..49475f7 100644 --- a/apex_guest/Client/Client/overlay.cpp +++ b/apex_guest/Client/Client/overlay.cpp @@ -118,6 +118,8 @@ extern bool weapon_bow; extern bool weapon_3030_repeater; extern bool weapon_rampage; extern bool weapon_car_smg; +//Aim Dist check +extern float aimdist; int width; @@ -218,6 +220,11 @@ void Overlay::RenderMenu() ImGui::Sliderbox(XorStr("ESP Toggle"), &esp); ImGui::Sliderbox(XorStr("AIM Toggle"), &aim_enable); + ImGui::Text(XorStr("Aim Distance:")); + ImGui::SameLine(); + ImGui::SliderFloat(XorStr("##Aim Distance"), &aimdist, 10.0f * 39.62, 1600.0f * 39.62, "##"); + ImGui::SameLine(); + ImGui::TextColored(GREEN, "%.0f ", aimdist / 39.62); ImGui::RadioButton("Left Mouse Aim", &e, 1); ImGui::SameLine(); ImGui::RadioButton("Right Mouse Aim", &e, 2); ImGui::SameLine(); ImGui::RadioButton("Left and Right Mouse Aim", &e, 3); @@ -413,7 +420,8 @@ void Overlay::RenderMenu() config << wstimesx << "\n"; config << wstimesy << "\n"; config << minimapradardotsize1 << "\n"; - config << minimapradardotsize2; + config << minimapradardotsize2 << "\n"; + config << aimdist; config.close(); } } @@ -530,6 +538,7 @@ void Overlay::RenderMenu() config >> wstimesy; config >> minimapradardotsize1; config >> minimapradardotsize2; + config >> aimdist; config.close(); } @@ -727,9 +736,9 @@ void Overlay::RenderMenu() void Overlay::RenderInfo() { ImGui::SetNextWindowPos(ImVec2(0, 0)); - ImGui::SetNextWindowSize(ImVec2(160, 25)); + ImGui::SetNextWindowSize(ImVec2(300, 25)); ImGui::Begin(XorStr("##info"), (bool*)true, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar); - DrawLine(ImVec2(1, 5), ImVec2(160, 5), RED, 2); + DrawLine(ImVec2(1, 5), ImVec2(300, 5), RED, 2); ImGui::TextColored(RED, "%d", spectators); ImGui::SameLine(); ImGui::Text("--"); @@ -738,6 +747,9 @@ void Overlay::RenderInfo() ImGui::SameLine(); ImGui::Text("--"); ImGui::SameLine(); + ImGui::TextColored(GREEN, "%.0f ", aimdist / 39.62); + ImGui::Text("--"); + ImGui::SameLine(); //Aim is on = 2, On but No Vis Check = 1, Off = 0 if (aim == 2) { @@ -747,6 +759,7 @@ void Overlay::RenderInfo() { ImGui::TextColored(RED, "Aim Off %d", aim); } + ImGui::End(); }