From 4597aff8e4be5517092d72230ce313ad1469a46c Mon Sep 17 00:00:00 2001 From: MisterY52 <11368116+MisterY52@users.noreply.github.com> Date: Wed, 10 Mar 2021 09:35:11 +0100 Subject: [PATCH] Update --- README.md | 4 ++-- apex_dma/Game.cpp | 7 ++++--- apex_dma/Game.h | 2 +- apex_dma/apex_dma.cpp | 7 ++++--- apex_dma/offsets.h | 24 ++++++++++++------------ apex_guest/Client/Client/overlay.cpp | 12 ++++++------ 6 files changed, 29 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index c1e90e9..502ea29 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# apex_dma_kvm_pub 1.4 +# apex_dma_kvm_pub 1.5 Apex Legends QEMU/KVM hack UnknownCheats thread: https://www.unknowncheats.me/forum/apex-legends/406426-kvm-vmread-apex-esp-aimbot.html Bone IDs reference: https://www.unknowncheats.me/wiki/Apex_Legends_Bones_and_Hitboxes -Game version (Steam & Origin): v3.0.6.97 +Game version (Steam & Origin): v3.0.3.94 diff --git a/apex_dma/Game.cpp b/apex_dma/Game.cpp index 24ee909..fc4d3a8 100644 --- a/apex_dma/Game.cpp +++ b/apex_dma/Game.cpp @@ -4,16 +4,17 @@ float smooth = 12.0f; bool aim_no_recoil = true; int bone = 2; -uint64_t Entity::Observing(WinProcess& mem, uint64_t entitylist) +bool Entity::Observing(WinProcess& mem, uint64_t entitylist) { - uint64_t index = *(uint64_t*)(buffer + OFFSET_OBSERVING_TARGET); + /*uint64_t index = *(uint64_t*)(buffer + OFFSET_OBSERVING_TARGET); index &= ENT_ENTRY_MASK; if (index > 0) { uint64_t centity2 = mem.Read(entitylist + ((uint64_t)index << 5)); return centity2; } - return 0; + return 0;*/ + return *(bool*)(buffer + OFFSET_OBSERVER_MODE); } int Entity::getTeamId() diff --git a/apex_dma/Game.h b/apex_dma/Game.h index 414ab95..0b47d41 100644 --- a/apex_dma/Game.h +++ b/apex_dma/Game.h @@ -43,7 +43,7 @@ public: void SetViewAngles(WinProcess& mem, SVector angles); void SetViewAngles(WinProcess& mem, QAngle& angles); Vector getBonePosition(WinProcess& mem, int id); - uint64_t Observing(WinProcess& mem, uint64_t entitylist); + bool Observing(WinProcess& mem, uint64_t entitylist); void get_name(WinProcess& mem, uint64_t g_Base, uint64_t index, char* name); }; diff --git a/apex_dma/apex_dma.cpp b/apex_dma/apex_dma.cpp index 951cc61..96922b7 100644 --- a/apex_dma/apex_dma.cpp +++ b/apex_dma/apex_dma.cpp @@ -78,10 +78,10 @@ float lastvis_aim[100]; void ProcessPlayer(WinProcess& mem, Entity& LPlayer, Entity& target, uint64_t entitylist, int index) { int entity_team = target.getTeamId(); - uint64_t obs = target.Observing(mem, entitylist); + bool obs = target.Observing(mem, entitylist); if (obs) { - if(obs == LPlayer.ptr) + /*if(obs == LPlayer.ptr) { if (entity_team == team_player) { @@ -91,7 +91,8 @@ void ProcessPlayer(WinProcess& mem, Entity& LPlayer, Entity& target, uint64_t en { tmp_spec++; } - } + }*/ + tmp_spec++; return; } Vector EntityPosition = target.getPosition(); diff --git a/apex_dma/offsets.h b/apex_dma/offsets.h index f7d0b71..8d2e607 100644 --- a/apex_dma/offsets.h +++ b/apex_dma/offsets.h @@ -5,9 +5,9 @@ #if VERSION == STEAM - #define OFFSET_ENTITYLIST 0x18c62f8 - #define OFFSET_LOCAL_ENT 0x1c75558 //LocalPlayer - #define OFFSET_NAME_LIST 0x80ddf20 + #define OFFSET_ENTITYLIST 0x18da2a8 + #define OFFSET_LOCAL_ENT 0x1c89868 //LocalPlayer + #define OFFSET_NAME_LIST 0x81330f0 #define OFFSET_TEAM 0x450 //m_iTeamNum #define OFFSET_HEALTH 0x440 //m_iHealth @@ -19,19 +19,19 @@ #define OFFSET_ZOOMING 0x1b41 //m_bZooming #define OFFSET_LIFE_STATE 0x798 //m_lifeState, >0 = dead - #define OFFSET_BLEED_OUT_STATE 0x25f0 //m_bleedoutState, >0 = knocked + #define OFFSET_BLEED_OUT_STATE 0x25e8 //m_bleedoutState, >0 = knocked #define OFFSET_ORIGIN 0x14c //m_vecAbsOrigin #define OFFSET_BONES 0xF38 //m_bConstrainBetweenEndpoints #define OFFSET_AIMPUNCH 0x2390 //m_currentFrameLocalPlayer.m_vecPunchWeapon_Angle #define OFFSET_CAMERAPOS 0x1e30 - #define OFFSET_VIEWANGLES 0x2470 //m_ammoPoolCapacity - 0x14 + #define OFFSET_VIEWANGLES 0x2478 //m_ammoPoolCapacity - 0x14 #define OFFSET_BREATH_ANGLES OFFSET_VIEWANGLES - 0x10 #define OFFSET_OBSERVER_MODE 0x32a4 //m_iObserverMode #define OFFSET_OBSERVING_TARGET 0x32a8 //m_hObserverTarget #define OFFSET_MATRIX 0x1b3bd0 - #define OFFSET_RENDER 0x4076fc0 + #define OFFSET_RENDER 0x408b768 #define OFFSET_WEAPON 0x19ec //m_latestPrimaryWeapons #define OFFSET_BULLET_SPEED 0x1e50 @@ -47,9 +47,9 @@ #elif VERSION == ORIGIN - #define OFFSET_ENTITYLIST 0x18c62f8 - #define OFFSET_LOCAL_ENT 0x1c75558 //LocalPlayer - #define OFFSET_NAME_LIST 0x80ddf20 + #define OFFSET_ENTITYLIST 0x18da2a8 + #define OFFSET_LOCAL_ENT 0x1c89868 //LocalPlayer + #define OFFSET_NAME_LIST 0x81330f0 #define OFFSET_TEAM 0x450 //m_iTeamNum #define OFFSET_HEALTH 0x440 //m_iHealth @@ -61,19 +61,19 @@ #define OFFSET_ZOOMING 0x1b41 //m_bZooming #define OFFSET_LIFE_STATE 0x798 //m_lifeState, >0 = dead - #define OFFSET_BLEED_OUT_STATE 0x25f0 //m_bleedoutState, >0 = knocked + #define OFFSET_BLEED_OUT_STATE 0x25e8 //m_bleedoutState, >0 = knocked #define OFFSET_ORIGIN 0x14c //m_vecAbsOrigin #define OFFSET_BONES 0xF38 //m_bConstrainBetweenEndpoints #define OFFSET_AIMPUNCH 0x2390 //m_currentFrameLocalPlayer.m_vecPunchWeapon_Angle #define OFFSET_CAMERAPOS 0x1e30 - #define OFFSET_VIEWANGLES 0x2470 + #define OFFSET_VIEWANGLES 0x2478 //m_ammoPoolCapacity - 0x14 #define OFFSET_BREATH_ANGLES OFFSET_VIEWANGLES - 0x10 #define OFFSET_OBSERVER_MODE 0x32a4 //m_iObserverMode #define OFFSET_OBSERVING_TARGET 0x32a8 //m_hObserverTarget #define OFFSET_MATRIX 0x1b3bd0 - #define OFFSET_RENDER 0x4076fc0 + #define OFFSET_RENDER 0x408b768 #define OFFSET_WEAPON 0x19ec //m_latestPrimaryWeapons #define OFFSET_BULLET_SPEED 0x1e50 diff --git a/apex_guest/Client/Client/overlay.cpp b/apex_guest/Client/Client/overlay.cpp index 6af4fc6..92cee93 100644 --- a/apex_guest/Client/Client/overlay.cpp +++ b/apex_guest/Client/Client/overlay.cpp @@ -209,27 +209,27 @@ void Overlay::RenderMenu() void Overlay::RenderInfo() { ImGui::SetNextWindowPos(ImVec2(0, 0)); - ImGui::SetNextWindowSize(ImVec2(50, 20)); + ImGui::SetNextWindowSize(ImVec2(20, 20)); ImGui::Begin(XorStr("##info"), (bool*)true, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoScrollbar); switch (safe_level) { case 0: - DrawLine(ImVec2(18, 5), ImVec2(35, 5), RED, 2); + DrawLine(ImVec2(9, 5), ImVec2(17, 5), RED, 2); break; case 1: - DrawLine(ImVec2(18, 5), ImVec2(35, 5), ORANGE, 2); + DrawLine(ImVec2(9, 5), ImVec2(17, 5), ORANGE, 2); break; case 2: - DrawLine(ImVec2(18, 5), ImVec2(35, 5), GREEN, 2); + DrawLine(ImVec2(9, 5), ImVec2(17, 5), GREEN, 2); break; default: break; } ImGui::TextColored(RED, "%d", spectators); ImGui::SameLine(); - ImGui::Text("-"); + /*ImGui::Text("-"); ImGui::SameLine(); - ImGui::TextColored(GREEN, "%d", allied_spectators); + ImGui::TextColored(GREEN, "%d", allied_spectators);*/ ImGui::End(); }