From 6ecbf28d64c96329a25aa660e9cdd3fafc83bc72 Mon Sep 17 00:00:00 2001 From: NerfBatInc <112824641+NerfBatInc@users.noreply.github.com> Date: Fri, 30 Sep 2022 01:23:57 -0400 Subject: [PATCH] Undid some things --- apex_dma/apex_dma.cpp | 28 +++++------- apex_guest/Client/Client/imgui/imgui.cpp | 2 +- apex_guest/Client/Client/main.cpp | 36 +++++---------- apex_guest/Client/Client/overlay.cpp | 56 ++---------------------- 4 files changed, 25 insertions(+), 97 deletions(-) diff --git a/apex_dma/apex_dma.cpp b/apex_dma/apex_dma.cpp index ac51dbe..109476d 100644 --- a/apex_dma/apex_dma.cpp +++ b/apex_dma/apex_dma.cpp @@ -31,9 +31,7 @@ bool aiming = false; extern float smooth; extern int bone; bool thirdperson = false; -//WorldtoScreen res -int lengthws = 1080; -int widthws = 1920; + //chargerifle hack @@ -486,12 +484,12 @@ static void EspLoop() } Vector bs = Vector(); - WorldToScreen(EntityPosition, m.matrix, widthws, lengthws, bs); + WorldToScreen(EntityPosition, m.matrix, 1920, 1080, bs); if (esp) { Vector hs = Vector(); Vector HeadPosition = Target.getBonePositionByHitbox(0); - WorldToScreen(HeadPosition, m.matrix, widthws, lengthws, hs); + WorldToScreen(HeadPosition, m.matrix, 1920, 1080, hs); float height = abs(abs(hs.y) - abs(bs.y)); float width = height / 2.0f; float boxMiddle = bs.x - (width / 2.0f); @@ -566,12 +564,12 @@ static void EspLoop() } Vector bs = Vector(); - WorldToScreen(EntityPosition, m.matrix, widthws, lengthws, bs); + WorldToScreen(EntityPosition, m.matrix, 1920, 1080, bs); if (esp) { Vector hs = Vector(); Vector HeadPosition = Target.getBonePositionByHitbox(0); - WorldToScreen(HeadPosition, m.matrix, widthws, lengthws, hs); + WorldToScreen(HeadPosition, m.matrix, 1920, 1080, hs); float height = abs(abs(hs.y) - abs(bs.y)); float width = height / 2.0f; float boxMiddle = bs.x - (width / 2.0f); @@ -846,14 +844,10 @@ static void set_vars(uint64_t add_addr) client_mem.Read(add_addr + sizeof(uint64_t)*90, weapon_rampage_addr); uint64_t weapon_car_smg_addr = 0; client_mem.Read(add_addr + sizeof(uint64_t)*91, weapon_car_smg_addr); - uint64_t lengthws_addr = 0; - 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); + client_mem.Read(add_addr + sizeof(uint64_t)*92, aimdist_addr); uint64_t itemglowbrightness_addr = 0; - client_mem.Read(add_addr + sizeof(uint64_t)*95, itemglowbrightness_addr); + client_mem.Read(add_addr + sizeof(uint64_t)*93, itemglowbrightness_addr); @@ -966,8 +960,6 @@ static void set_vars(uint64_t add_addr) client_mem.Read(weapon_3030_repeater_addr, weapon_3030_repeater); client_mem.Read(weapon_rampage_addr, weapon_rampage); 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); client_mem.Read(itemglowbrightness_addr, itemglowbrightness); @@ -1015,7 +1007,7 @@ static void item_glow_t() uint64_t entitylist = g_Base + OFFSET_ENTITYLIST; if (item_glow) { - for (int i = 0; i < 20000; i++) + for (int i = 0; i < 15000; i++) { uint64_t centity = 0; apex_mem.Read(entitylist + ((uint64_t)i << 5), centity); @@ -1754,7 +1746,7 @@ static void item_glow_t() { if(k==1) { - for (int i = 0; i < 20000; i++) + for (int i = 0; i < 15000; i++) { uint64_t centity = 0; apex_mem.Read(entitylist + ((uint64_t)i << 5), centity); @@ -1789,7 +1781,7 @@ int main(int argc, char *argv[]) //const char* ap_proc = "EasyAntiCheat_launcher.exe"; //Client "add" offset - uint64_t add_off = 0x1419d0; + uint64_t add_off = 0x140990; std::thread aimbot_thr; std::thread esp_thr; diff --git a/apex_guest/Client/Client/imgui/imgui.cpp b/apex_guest/Client/Client/imgui/imgui.cpp index 04e9474..e6f206e 100644 --- a/apex_guest/Client/Client/imgui/imgui.cpp +++ b/apex_guest/Client/Client/imgui/imgui.cpp @@ -1080,7 +1080,7 @@ ImGuiIO::ImGuiIO() DisplaySize = ImVec2(-1.0f, -1.0f); DeltaTime = 1.0f / 60.0f; IniSavingRate = 5.0f; - IniFilename = NULL; // Important: "imgui.ini" is relative to current working dir, most apps will want to lock this to an absolute path (e.g. same path as executables). + IniFilename = "imgui.ini"; // Important: "imgui.ini" is relative to current working dir, most apps will want to lock this to an absolute path (e.g. same path as executables). LogFilename = "imgui_log.txt"; MouseDoubleClickTime = 0.30f; MouseDoubleClickMaxDist = 6.0f; diff --git a/apex_guest/Client/Client/main.cpp b/apex_guest/Client/Client/main.cpp index 564f1d6..95fc989 100644 --- a/apex_guest/Client/Client/main.cpp +++ b/apex_guest/Client/Client/main.cpp @@ -35,10 +35,6 @@ int shoot_key2 = VK_RBUTTON; //Right Click bool toggleaim = false; bool toggleaim2 = false; extern int e; -//World to Screen res -int lengthws = 1920; -int widthws = 1920; -extern int wss; bool firing_range = false; bool use_nvidia = true; //Nvidia Shadowplay Overlay bool active = true; @@ -60,14 +56,6 @@ float glowr = 120.0f; //Red Value float glowg = 0.0f; //Green Value float glowb = 0.0f; //Blue Value float glowcolor[3] = { 000.0f, 000.0f, 000.0f }; -//Radar multi res -extern int wstimesx; -extern int wstimesy; -float fwstimesx = 170.0f; -float fwstimesy = 170.0f; -//MiniMap Radar -int minimapposx = 0; -int minimapposy = 0; extern int minimapradardotsize1; extern int minimapradardotsize2; bool minimapradar = false; @@ -454,17 +442,23 @@ void DrawRadarPoint(D3DXVECTOR3 EneamyPos, D3DXVECTOR3 LocalPos, float LocalPlay //MiniMap Radar Stuff void MiniMapRadar(D3DXVECTOR3 EneamyPos, D3DXVECTOR3 LocalPos, float LocalPlayerY, float eneamyDist, int TeamId) { + ImGuiStyle* style = &ImGui::GetStyle(); + style->WindowRounding = 0.2f; + ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(0.13529413f, 0.14705884f, 0.15490198f, 0.82f)); ImGuiWindowFlags TargetFlags; //Radar Window Flags: No Move, Resize, Title bar, Background etc. makes it so you can change it once set. //slash out | ImGuiWindowFlags_::ImGuiWindowFlags_NoMove to move the minimap TargetFlags = ImGuiWindowFlags_::ImGuiWindowFlags_NoResize | ImGuiWindowFlags_::ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_::ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_::ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_::ImGuiWindowFlags_NoMove; - + if (!firstS) //dunno + { + ImGui::SetNextWindowPos(ImVec2{ 1200, 60 }, ImGuiCond_Once); + firstS = true; + } if (RadarSettings::Radar == true) { - ImGui::SetNextWindowPos(ImVec2{ fwstimesx - 125, fwstimesy - 125}); ImGui::SetNextWindowSize({ 250, 250 }); ImGui::Begin(("Radar"), 0, TargetFlags); //if (ImGui::Begin(xorstr("Radar", 0, ImVec2(200, 200), -1.f, TargetFlags))) { @@ -482,7 +476,7 @@ void MiniMapRadar(D3DXVECTOR3 EneamyPos, D3DXVECTOR3 LocalPos, float LocalPlayer } ImGui::End(); } - + ImGui::PopStyleColor(); } bool IsKeyDown(int vk) { @@ -811,11 +805,8 @@ int main(int argc, char** argv) add[89] = (uintptr_t)&weapon_3030_repeater; add[90] = (uintptr_t)&weapon_rampage; add[91] = (uintptr_t)&weapon_car_smg; - add[92] = (uintptr_t)&lengthws; - add[93] = (uintptr_t)&widthws; - add[94] = (uintptr_t)&aimdist; - add[95] = (uintptr_t)&itemglowbrightness - ; + add[92] = (uintptr_t)&aimdist; + add[93] = (uintptr_t)&itemglowbrightness; @@ -953,11 +944,6 @@ int main(int argc, char** argv) config >> toggleaim; config >> toggleaim2; config >> e; - config >> lengthws; - config >> widthws; - config >> wss; - config >> wstimesx; - config >> wstimesy; config >> minimapradardotsize1; config >> minimapradardotsize2; config >> aimdist; diff --git a/apex_guest/Client/Client/overlay.cpp b/apex_guest/Client/Client/overlay.cpp index df08c9e..f201920 100644 --- a/apex_guest/Client/Client/overlay.cpp +++ b/apex_guest/Client/Client/overlay.cpp @@ -23,20 +23,11 @@ extern int allied_spectators; extern bool toggleaim; extern bool toggleaim2; int e = 0; -//World to Screen Res -extern int lengthws; -extern int widthws; -int wss = 0; //glow color and type extern float glowr; //Red Value extern float glowg; //Green Value extern float glowb; //Blue Value extern float glowcolor[3]; -//Radar multi res -int wstimesx = 1; -int wstimesy = 1; -extern float fwstimesx; -extern float fwstimesy; //MiniMap Radar int minimapradardotsize1 = 5; int minimapradardotsize2 = 5; @@ -419,12 +410,7 @@ void Overlay::RenderMenu() config << std::boolalpha << weapon_car_smg << "\n"; config << toggleaim << "\n"; config << toggleaim2 << "\n"; - config << e << "\n"; - config << lengthws << "\n"; - config << widthws << "\n"; - config << wss << "\n"; - config << wstimesx << "\n"; - config << wstimesy << "\n"; + config << e << "\n"; config << minimapradardotsize1 << "\n"; config << minimapradardotsize2 << "\n"; config << aimdist << "\n"; @@ -538,12 +524,7 @@ void Overlay::RenderMenu() config >> weapon_car_smg; config >> toggleaim; config >> toggleaim2; - config >> e; - config >> lengthws; - config >> widthws; - config >> wss; - config >> wstimesx; - config >> wstimesy; + config >> e; config >> minimapradardotsize1; config >> minimapradardotsize2; config >> aimdist; @@ -563,38 +544,7 @@ void Overlay::RenderMenu() ImGui::Text(XorStr("Main Map Radar Dot Size")); ImGui::SliderInt(XorStr("Main Map Dot Width"), &mainmapradardotsize1, 1, 10); ImGui::SliderInt(XorStr("Main Map Dot length"), &mainmapradardotsize2, 1, 10); - ImGui::Text(XorStr("Radar Screen Res")); - ImGui::RadioButton("1080p", &wss, 1); ImGui::SameLine(); - ImGui::RadioButton("1440p", &wss, 2); ImGui::SameLine(); - ImGui::RadioButton("4k", &wss, 3); - //Setting one and unsetting the other - if (wss == 1) - { - lengthws = 1080; - widthws = 1920; - wstimesx = 1; - fwstimesx = 170.0f; - wstimesy = 1; - fwstimesy = 170.0f; - } - else if (wss == 2) - { - lengthws = 1440; - widthws = 2560; - wstimesx = 1.3333333; - fwstimesx = 226.0f; - wstimesy = 1.3333333; - fwstimesy = 226.0f; - } - else if (wss == 3) - { - lengthws = 3840; - widthws = 2160; - wstimesx = 2; - fwstimesx = 340.0f; - wstimesy = 2; - fwstimesy = 340.0f; - } + ImGui::EndTabItem(); } if (ImGui::BeginTabItem(XorStr("Item Filter List")))