diff --git a/apex_dma/apex_dma.cpp b/apex_dma/apex_dma.cpp index c54b5a7..16de74c 100644 --- a/apex_dma/apex_dma.cpp +++ b/apex_dma/apex_dma.cpp @@ -31,6 +31,10 @@ bool aiming = false; extern float smooth; extern int bone; bool thirdperson = false; +//WorldtoScreen res +int lengthws = 1080; +int widthws = 1920; + //chargerifle hack bool chargerifle = false; @@ -477,12 +481,12 @@ static void EspLoop() } Vector bs = Vector(); - WorldToScreen(EntityPosition, m.matrix, 1920, 1080, bs); + WorldToScreen(EntityPosition, m.matrix, widthws, lengthws, bs); if (esp) { Vector hs = Vector(); Vector HeadPosition = Target.getBonePositionByHitbox(0); - WorldToScreen(HeadPosition, m.matrix, 1920, 1080, hs); + WorldToScreen(HeadPosition, m.matrix, widthws, lengthws, hs); float height = abs(abs(hs.y) - abs(bs.y)); float width = height / 2.0f; float boxMiddle = bs.x - (width / 2.0f); @@ -557,12 +561,12 @@ static void EspLoop() } Vector bs = Vector(); - WorldToScreen(EntityPosition, m.matrix, 1920, 1080, bs); + WorldToScreen(EntityPosition, m.matrix, widthws, lengthws, bs); if (esp) { Vector hs = Vector(); Vector HeadPosition = Target.getBonePositionByHitbox(0); - WorldToScreen(HeadPosition, m.matrix, 1920, 1080, hs); + WorldToScreen(HeadPosition, m.matrix, widthws, lengthws, hs); float height = abs(abs(hs.y) - abs(bs.y)); float width = height / 2.0f; float boxMiddle = bs.x - (width / 2.0f); @@ -837,6 +841,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); @@ -949,6 +957,8 @@ 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); @@ -1002,23 +1012,7 @@ static void item_glow_t() Item item = getItem(centity); - if (item.isBox()) - { - apex_mem.Write(centity + 0x262, 16256); - apex_mem.Write(centity + 0x2dc, 1193322764); - apex_mem.Write(centity + 0x3c8, 7); - apex_mem.Write(centity + 0x3d0, 2); - - } - if (item.isTrap()) - { - apex_mem.Write(centity + 0x262, 16256); - apex_mem.Write(centity + 0x2dc, 1193322764); - apex_mem.Write(centity + 0x3c8, 7); - apex_mem.Write(centity + 0x3d0, 2); - - } if(item.isItem() && !item.isGlowing()) { @@ -1035,7 +1029,14 @@ static void item_glow_t() //} if (lightbackpack && strstr(glowName, "mdl/humans_r5/loot/w_loot_char_backpack_light.rmdl")) { - item.enableGlow(); + 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, 0); // r + apex_mem.Write(centity + 0x1D4, 0); // g + apex_mem.Write(centity + 0x1D8, 0); // b + } else { @@ -1046,11 +1047,25 @@ static void item_glow_t() if (medbackpack && strstr(glowName, "mdl/humans_r5/loot/w_loot_char_backpack_medium.rmdl")) { - item.enableGlow(); + 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, 0); // r + apex_mem.Write(centity + 0x1D4, 191); // g + apex_mem.Write(centity + 0x1D8, 255); // b + } if (heavybackpack && strstr(glowName, "mdl/humans_r5/loot/w_loot_char_backpack_heavy.rmdl")) { - item.enableGlow(); + 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, 148); // r + apex_mem.Write(centity + 0x1D4, 0); // g + apex_mem.Write(centity + 0x1D8, 211); // b + } if (shieldupgrade && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_cha_shield_upgrade_body.rmdl")) { @@ -1062,11 +1077,34 @@ static void item_glow_t() } if (accelerant && strstr(glowName, "mdl/weapons_r5/loot/w_loot_wep_iso_ultimate_accelerant.rmdl")) { - item.enableGlow(); + 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, 0); // r + apex_mem.Write(centity + 0x1D4, 191); // g + apex_mem.Write(centity + 0x1D8, 255); // b } if (phoenix && strstr(glowName, "mdl/weapons_r5/loot/w_loot_wep_iso_phoenix_kit_v1.rmdl")) { item.enableGlow(); + } + if (item.isBox()) + { + apex_mem.Write(centity + 0x262, 16256); + apex_mem.Write(centity + 0x2dc, 1193322764); + apex_mem.Write(centity + 0x3c8, 7); + apex_mem.Write(centity + 0x3d0, 2); + + } + + if (item.isTrap()) + { + apex_mem.Write(centity + 0x262, 16256); + apex_mem.Write(centity + 0x2dc, 1193322764); + apex_mem.Write(centity + 0x3c8, 7); + apex_mem.Write(centity + 0x3d0, 2); + } if (healthlarge && strstr(glowName, "mdl/weapons_r5/loot/w_loot_wep_iso_health_main_large.rmdl")) { @@ -1130,7 +1168,13 @@ static void item_glow_t() } if (optic && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_optic_cq_hcog_r1.rmdl")) { - item.enableGlow(); + 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, 0); // r + apex_mem.Write(centity + 0x1D4, 0); // g + apex_mem.Write(centity + 0x1D8, 0); // b } if (ammosc && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_ammo_sc.rmdl")) { @@ -1220,39 +1264,93 @@ static void item_glow_t() } if (optic2x && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_optic_cq_hcog_r2.rmdl")) { - item.enableGlow(); + 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, 0); // r + apex_mem.Write(centity + 0x1D4, 191); // g + apex_mem.Write(centity + 0x1D8, 255); // b } if (opticholo1x && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_optic_cq_holo_var.rmdl")) { - item.enableGlow(); + 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, 0); // r + apex_mem.Write(centity + 0x1D4, 191); // g + apex_mem.Write(centity + 0x1D8, 255); // b } if (opticholo1x2x && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_optic_cq_holo_var_2x.rmdl")) { - item.enableGlow(); + 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, 0); // r + apex_mem.Write(centity + 0x1D4, 191); // g + apex_mem.Write(centity + 0x1D8, 255); // b } if (opticthreat && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_optic_cq_threat.rmdl")) { - item.enableGlow(); + 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, 255); // r + apex_mem.Write(centity + 0x1D4, 215); // g + apex_mem.Write(centity + 0x1D8, 32); // b } if (optic3x && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_optic_rng_hcog_acgs.rmdl")) { - item.enableGlow(); + 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, 148); // r + apex_mem.Write(centity + 0x1D4, 0); // g + apex_mem.Write(centity + 0x1D8, 211); // b } if (optic2x4x && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_optic_rng_aog_var_r1.rmdl")) { - item.enableGlow(); + 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, 148); // r + apex_mem.Write(centity + 0x1D4, 0); // g + apex_mem.Write(centity + 0x1D8, 211); // b } if (opticsniper6x && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_optic_sni_dcom.rmdl")) { - item.enableGlow(); + 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, 0); // r + apex_mem.Write(centity + 0x1D4, 191); // g + apex_mem.Write(centity + 0x1D8, 255); // b } if (opticsniper4x8x && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_optic_sni_var_talon.rmdl")) { - item.enableGlow(); + 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, 148); // r + apex_mem.Write(centity + 0x1D4, 0); // g + apex_mem.Write(centity + 0x1D8, 211); // b } if (opticsniperthreat && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_optic_sni_threat_wyeon.rmdl")) { - item.enableGlow(); + 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, 255); // r + apex_mem.Write(centity + 0x1D4, 215); // g + apex_mem.Write(centity + 0x1D8, 32); // b } if (suppressor && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_suppr_v2b.rmdl")) { @@ -1579,7 +1677,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 @@ -1633,7 +1731,7 @@ int main(int argc, char *argv[]) //const char* ap_proc = "EasyAntiCheat_launcher.exe"; //Client "add" offset - uint64_t add_off = 0x13d980; + uint64_t add_off = 0x1409a0; 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 69a3b06..bb51e2a 100644 --- a/apex_guest/Client/Client/main.cpp +++ b/apex_guest/Client/Client/main.cpp @@ -31,7 +31,14 @@ int aim_key = VK_LBUTTON; //Left Click int aim_key2 = VK_RBUTTON; //Right Click int shoot_key = VK_LBUTTON; //Left Click int shoot_key2 = VK_RBUTTON; //Right Click - +//Left and Right Aim key toggle +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; @@ -53,6 +60,9 @@ 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 +int wstimesx = 0; +int wstimesy = 0; //MiniMap Radar extern int minimapradardotsize1; extern int minimapradardotsize2; @@ -145,7 +155,7 @@ int allied_spectators = 0; //write bool valid = true; //write bool next2 = true; //read write -uint64_t add[93]; +uint64_t add[95]; bool k_f5 = 0; bool k_f6 = 0; @@ -487,7 +497,8 @@ public: // // First set is the x cord, then the y cord, then the screen pos from the screenshot, do the same for the second set. //Battel Royal -world KingsCanyon(ImVec2(25223.177734, 28906.144531), ImVec2(1197, 185), ImVec2(10399.223633, 13334.792969), ImVec2(1014, 381)); //could be more accurate +//Screen res multi +world KingsCanyon(ImVec2(25223.177734, 28906.144531), ImVec2(1197 * wstimesx, 185 * wstimesy), ImVec2(10399.223633, 13334.792969), ImVec2(1014 * wstimesx, 381 * wstimesy)); //could be more accurate world WorldsEdge(ImVec2(-9190.608398, 8443.554688), ImVec2(824, 412), ImVec2(-19529.794922, -8933.173828), ImVec2(707, 608)); world Olympus(ImVec2(0, 0), ImVec2(0, 0), ImVec2(0, 0), ImVec2(0, 0)); //to be measured world StormPoint(ImVec2(-21264.427734, -47086.878906), ImVec2(711, 983), ImVec2(40298.070313, 21163.728516), ImVec2(1321, 306)); @@ -766,6 +777,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; @@ -900,6 +913,14 @@ int main(int argc, char** argv) config >> weapon_3030_repeater; config >> weapon_rampage; config >> weapon_car_smg; + config >> toggleaim; + config >> toggleaim2; + config >> e; + config >> lengthws; + config >> widthws; + config >> wss; + config >> wstimesx; + config >> wstimesy; config.close(); } } @@ -949,12 +970,12 @@ int main(int argc, char** argv) mainradartoggle = 0; } - if (IsKeyDown(aim_key)) + if (IsKeyDown(aim_key) && toggleaim) { aiming = true; } - else if (IsKeyDown(aim_key2)) + else if (IsKeyDown(aim_key2) && toggleaim2) aiming = true; else { diff --git a/apex_guest/Client/Client/overlay.cpp b/apex_guest/Client/Client/overlay.cpp index 8a351bd..799f394 100644 --- a/apex_guest/Client/Client/overlay.cpp +++ b/apex_guest/Client/Client/overlay.cpp @@ -19,11 +19,22 @@ extern int bone; extern bool thirdperson; extern int spectators; extern int allied_spectators; +//Left and Right Aim key toggle +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 +extern int wstimesx; +extern int wstimesy; //MiniMap Radar int minimapradardotsize1 = 5; int minimapradardotsize2 = 5; @@ -207,6 +218,26 @@ void Overlay::RenderMenu() ImGui::Sliderbox(XorStr("ESP Toggle"), &esp); ImGui::Sliderbox(XorStr("AIM Toggle"), &aim_enable); + 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); + //Setting one and unsetting the other + if (e == 1) + { + toggleaim = true; + toggleaim2 = false; + } + else if (e == 2) + { + toggleaim = false; + toggleaim2 = true; + } + else if (e == 3) + { + toggleaim = true; + toggleaim2 = true; + } + if (aim_enable) { @@ -372,8 +403,17 @@ void Overlay::RenderMenu() config << std::boolalpha << weapon_bow << "\n"; config << std::boolalpha << weapon_3030_repeater << "\n"; config << std::boolalpha << weapon_rampage << "\n"; - config << std::boolalpha << weapon_car_smg; - + 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 << minimapradardotsize1 << "\n"; + config << minimapradardotsize2; config.close(); } } @@ -480,6 +520,16 @@ void Overlay::RenderMenu() config >> weapon_3030_repeater; config >> weapon_rampage; config >> weapon_car_smg; + config >> toggleaim; + config >> toggleaim2; + config >> e; + config >> lengthws; + config >> widthws; + config >> wss; + config >> wstimesx; + config >> wstimesy; + config >> minimapradardotsize1; + config >> minimapradardotsize2; config.close(); } @@ -495,6 +545,41 @@ 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; + } + else if (wss == 2) + { + lengthws = 1440; + widthws = 2560; + } + else if (wss == 3) + { + lengthws = 3840; + widthws = 2160; + } + if (wss == 1) + { + wstimesx = 0; + wstimesy = 0; + } + if (wss == 2) + { + wstimesx = 1.3333333; + wstimesy = 1.3333333; + } + if (wss == 3) + { + wstimesx = 2; + wstimesy = 2; + } ImGui::EndTabItem(); } if (ImGui::BeginTabItem(XorStr("Item Filter List")))