From 47013c56203c9ebe2ba1562608894c7895217b05 Mon Sep 17 00:00:00 2001 From: NerfBatInc <112824641+NerfBatInc@users.noreply.github.com> Date: Thu, 29 Sep 2022 09:52:35 -0400 Subject: [PATCH] Misc fixes, removed screen res from main map radar. wont set the res right during game. --- apex_dma/apex_dma.cpp | 55 +++++++++++++++++++++++----- apex_guest/Client/Client/main.cpp | 34 ++++++++++++++--- apex_guest/Client/Client/overlay.cpp | 27 +++++--------- 3 files changed, 83 insertions(+), 33 deletions(-) diff --git a/apex_dma/apex_dma.cpp b/apex_dma/apex_dma.cpp index e3c1eb2..ac51dbe 100644 --- a/apex_dma/apex_dma.cpp +++ b/apex_dma/apex_dma.cpp @@ -1015,7 +1015,7 @@ static void item_glow_t() uint64_t entitylist = g_Base + OFFSET_ENTITYLIST; if (item_glow) { - for (int i = 0; i < 15000; i++) + for (int i = 0; i < 20000; i++) { uint64_t centity = 0; apex_mem.Read(entitylist + ((uint64_t)i << 5), centity); @@ -1029,7 +1029,6 @@ static void item_glow_t() { //item.enableGlow(); } - char glowName[200] = { 0 }; uint64_t name_ptr; apex_mem.Read(centity + OFFSET_MODELNAME, name_ptr); @@ -1098,7 +1097,13 @@ static void item_glow_t() } if (phoenix && strstr(glowName, "mdl/weapons_r5/loot/w_loot_wep_iso_phoenix_kit_v1.rmdl")) { - item.enableGlow(); + apex_mem.Write(centity + OFFSET_GLOW_ENABLE, 1); + apex_mem.Write(centity + OFFSET_GLOW_THROUGH_WALLS, 2); // 1 = far, 2 = close + apex_mem.Write(centity + GLOW_START_TIME, { 101,101,99,127 }); + + apex_mem.Write(centity + GLOW_COLOR_R, 255 / itemglowbrightness); // r + apex_mem.Write(centity + GLOW_COLOR_G, 0 / itemglowbrightness); // g + apex_mem.Write(centity + GLOW_COLOR_B, 255 / itemglowbrightness); // b } if (item.isBox()) { @@ -1231,7 +1236,13 @@ static void item_glow_t() } if (lasersight && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_lasersight_v1.rmdl")) { - item.enableGlow(); + apex_mem.Write(centity + OFFSET_GLOW_ENABLE, 1); + apex_mem.Write(centity + OFFSET_GLOW_THROUGH_WALLS, 2); // 1 = far, 2 = close + apex_mem.Write(centity + GLOW_START_TIME, { 101,101,99,127 }); + + apex_mem.Write(centity + GLOW_COLOR_R, 255 / itemglowbrightness); // r + apex_mem.Write(centity + GLOW_COLOR_G, 0 / itemglowbrightness); // g + apex_mem.Write(centity + GLOW_COLOR_B, 0 / itemglowbrightness); // b } if (magsniper && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_mag_sniper_v1.rmdl")) { @@ -1259,11 +1270,23 @@ static void item_glow_t() } if (stockregular && strstr(glowName, "mdl/weapons_r5/loot/w_loot_wep_iso_stock_folded_regular.rmdl")) { - item.enableGlow(); + apex_mem.Write(centity + OFFSET_GLOW_ENABLE, 1); + apex_mem.Write(centity + OFFSET_GLOW_THROUGH_WALLS, 2); // 1 = far, 2 = close + apex_mem.Write(centity + GLOW_START_TIME, { 101,101,99,127 }); + + apex_mem.Write(centity + GLOW_COLOR_R, 255 / itemglowbrightness); // r + apex_mem.Write(centity + GLOW_COLOR_G, 0 / itemglowbrightness); // g + apex_mem.Write(centity + GLOW_COLOR_B, 0 / itemglowbrightness); // b } if (shielddown && strstr(glowName, "mdl/weapons_r5/loot/w_loot_wep_iso_shield_down_v1.rmdl")) { - item.enableGlow(); + apex_mem.Write(centity + OFFSET_GLOW_ENABLE, 1); + apex_mem.Write(centity + OFFSET_GLOW_THROUGH_WALLS, 2); // 1 = far, 2 = close + apex_mem.Write(centity + GLOW_START_TIME, { 101,101,99,127 }); + + apex_mem.Write(centity + GLOW_COLOR_R, 0 / itemglowbrightness); // r + apex_mem.Write(centity + GLOW_COLOR_G, 255 / itemglowbrightness); // g + apex_mem.Write(centity + GLOW_COLOR_B, 255 / itemglowbrightness); // b } if (lightammomag && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_mag_v1b.rmdl")) { @@ -1377,11 +1400,23 @@ static void item_glow_t() } if (suppressor && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_suppr_v2b.rmdl")) { - item.enableGlow(); + apex_mem.Write(centity + OFFSET_GLOW_ENABLE, 1); + apex_mem.Write(centity + OFFSET_GLOW_THROUGH_WALLS, 2); // 1 = far, 2 = close + apex_mem.Write(centity + GLOW_START_TIME, { 101,101,99,127 }); + + apex_mem.Write(centity + GLOW_COLOR_R, 0 / itemglowbrightness); // r + apex_mem.Write(centity + GLOW_COLOR_G, 0 / itemglowbrightness); // g + apex_mem.Write(centity + GLOW_COLOR_B, 255 / itemglowbrightness); // b } if (weaponmod && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_chip.rmdl")) { - item.enableGlow(); + apex_mem.Write(centity + OFFSET_GLOW_ENABLE, 1); + apex_mem.Write(centity + OFFSET_GLOW_THROUGH_WALLS, 2); // 1 = far, 2 = close + apex_mem.Write(centity + GLOW_START_TIME, { 101,101,99,127 }); + + apex_mem.Write(centity + GLOW_COLOR_R, 255 / itemglowbrightness); // r + apex_mem.Write(centity + GLOW_COLOR_G, 255 / itemglowbrightness); // g + apex_mem.Write(centity + GLOW_COLOR_B, 255 / itemglowbrightness); // b } if (shotgunbolt && strstr(glowName, "mdl/weapons_r5/loot/_master/w_loot_wep_mods_mag_v3b.rmdl")) { @@ -1719,7 +1754,7 @@ static void item_glow_t() { if(k==1) { - for (int i = 0; i < 15000; i++) + for (int i = 0; i < 20000; i++) { uint64_t centity = 0; apex_mem.Read(entitylist + ((uint64_t)i << 5), centity); @@ -1754,7 +1789,7 @@ int main(int argc, char *argv[]) //const char* ap_proc = "EasyAntiCheat_launcher.exe"; //Client "add" offset - uint64_t add_off = 0x1419c0; + uint64_t add_off = 0x1419d0; 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 fb6cde7..564f1d6 100644 --- a/apex_guest/Client/Client/main.cpp +++ b/apex_guest/Client/Client/main.cpp @@ -61,8 +61,8 @@ 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; +extern int wstimesx; +extern int wstimesy; float fwstimesx = 170.0f; float fwstimesy = 170.0f; //MiniMap Radar @@ -321,6 +321,14 @@ static void Team20(int x, int y, int w, int h, RGBA color) { ImGui::GetWindowDrawList()->AddRectFilled(ImVec2(x, y), ImVec2(x + w, y + h), ImGui::ColorConvertFloat4ToU32(ImVec4(color.R / 255.0, color.G / 255.0, color.B / 255.0, color.A / 255.0)), 0, 0); } +static void Team21(int x, int y, int w, int h, RGBA color) +{ + ImGui::GetWindowDrawList()->AddRectFilled(ImVec2(x, y), ImVec2(x + w, y + h), ImGui::ColorConvertFloat4ToU32(ImVec4(color.R / 255.0, color.G / 255.0, color.B / 255.0, color.A / 255.0)), 0, 0); +} +static void Team22(int x, int y, int w, int h, RGBA color) +{ + ImGui::GetWindowDrawList()->AddRectFilled(ImVec2(x, y), ImVec2(x + w, y + h), ImGui::ColorConvertFloat4ToU32(ImVec4(color.R / 255.0, color.G / 255.0, color.B / 255.0, color.A / 255.0)), 0, 0); +} bool menu = true; bool firstS = true; @@ -433,6 +441,14 @@ void DrawRadarPoint(D3DXVECTOR3 EneamyPos, D3DXVECTOR3 LocalPos, float LocalPlay { Team20(single.x, single.y, minimapradardotsize1, minimapradardotsize2, { 218, 73, 145, 255 }); } + if (TeamID == 21) + { + Team20(single.x, single.y, minimapradardotsize1, minimapradardotsize2, { 218, 73, 145, 255 }); + } + if (TeamID == 22) + { + Team20(single.x, single.y, minimapradardotsize1, minimapradardotsize2, { 218, 73, 145, 255 }); + } } } //MiniMap Radar Stuff @@ -501,11 +517,11 @@ 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 -//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 +//Screen res 1080p +world KingsCanyon(ImVec2(25223.177734, 28906.144531), ImVec2(1197, 185), ImVec2(10399.223633, 13334.792969), ImVec2(1014, 381)); //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 * wstimesx, 983 * wstimesy), ImVec2(40298.070313, 21163.728516), ImVec2(1321 * wstimesx, 306 * wstimesy)); +world StormPoint(ImVec2(-21264.427734, -47086.878906), ImVec2(711, 983), ImVec2(40298.070313, 21163.728516), ImVec2(1321, 306)); //Arena world Overflow(ImVec2(-3344.994629, -4018.093018), ImVec2(552, 431), ImVec2(5039.592773, -4639.289063), ImVec2(1322, 489)); world DropOff(ImVec2(3135.113281, 1654.107666), ImVec2(1151, 603), ImVec2(-2920.918701, 811.240479), ImVec2(722, 663)); @@ -630,6 +646,14 @@ ImVec2 worldToScreenMap(D3DXVECTOR3 origin, int TeamID) { { Team20(pos_x, pos_y, mainmapradardotsize1, mainmapradardotsize2, { 218, 73, 145, 255 }); } + if (TeamID == 21) + { + Team20(pos_x, pos_y, mainmapradardotsize1, mainmapradardotsize2, { 218, 73, 145, 255 }); + } + if (TeamID == 22) + { + Team20(pos_x, pos_y, mainmapradardotsize1, mainmapradardotsize2, { 218, 73, 145, 255 }); + } } diff --git a/apex_guest/Client/Client/overlay.cpp b/apex_guest/Client/Client/overlay.cpp index f810d86..df08c9e 100644 --- a/apex_guest/Client/Client/overlay.cpp +++ b/apex_guest/Client/Client/overlay.cpp @@ -33,8 +33,8 @@ extern float glowg; //Green Value extern float glowb; //Blue Value extern float glowcolor[3]; //Radar multi res -extern int wstimesx; -extern int wstimesy; +int wstimesx = 1; +int wstimesy = 1; extern float fwstimesx; extern float fwstimesy; //MiniMap Radar @@ -572,33 +572,24 @@ void Overlay::RenderMenu() { lengthws = 1080; widthws = 1920; + wstimesx = 1; + fwstimesx = 170.0f; + wstimesy = 1; + fwstimesy = 170.0f; } else if (wss == 2) { lengthws = 1440; widthws = 2560; - } - else if (wss == 3) - { - lengthws = 3840; - widthws = 2160; - } - if (wss == 1) - { - wstimesx = 0; - fwstimesx = 170.0f; - wstimesy = 0; - fwstimesy = 170.0f; - } - if (wss == 2) - { wstimesx = 1.3333333; fwstimesx = 226.0f; wstimesy = 1.3333333; fwstimesy = 226.0f; } - if (wss == 3) + else if (wss == 3) { + lengthws = 3840; + widthws = 2160; wstimesx = 2; fwstimesx = 340.0f; wstimesy = 2;