|
|
|
@ -28,11 +28,11 @@ bool item_glow = false;
|
|
|
|
|
bool player_glow = false;
|
|
|
|
|
extern bool aim_no_recoil;
|
|
|
|
|
bool aiming = false;
|
|
|
|
|
bool shooting = false;
|
|
|
|
|
extern float smooth;
|
|
|
|
|
extern int bone;
|
|
|
|
|
bool thirdperson = false;
|
|
|
|
|
bool chargerifle = false;
|
|
|
|
|
bool shooting = false;
|
|
|
|
|
|
|
|
|
|
bool actions_t = false;
|
|
|
|
|
bool esp_t = false;
|
|
|
|
@ -77,6 +77,9 @@ int tmp_all_spec = 0, allied_spectators = 0;
|
|
|
|
|
|
|
|
|
|
void ProcessPlayer(Entity &LPlayer, Entity &target, uint64_t entitylist, int index)
|
|
|
|
|
{
|
|
|
|
|
char name[33];
|
|
|
|
|
target.get_name(g_Base, index - 1, name);
|
|
|
|
|
|
|
|
|
|
int entity_team = target.getTeamId();
|
|
|
|
|
|
|
|
|
|
if (!target.isAlive())
|
|
|
|
@ -94,10 +97,12 @@ void ProcessPlayer(Entity& LPlayer, Entity& target, uint64_t entitylist, int ind
|
|
|
|
|
Vector EntityPosition = target.getPosition();
|
|
|
|
|
Vector LocalPlayerPosition = LPlayer.getPosition();
|
|
|
|
|
float dist = LocalPlayerPosition.DistTo(EntityPosition);
|
|
|
|
|
if (dist > max_dist) return;
|
|
|
|
|
if (dist > max_dist)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
if (!firing_range)
|
|
|
|
|
if (entity_team < 0 || entity_team>50 || entity_team == team_player) return;
|
|
|
|
|
if (entity_team < 0 || entity_team > 50 || entity_team == team_player)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
if (aim == 2)
|
|
|
|
|
{
|
|
|
|
@ -145,8 +150,8 @@ void DoActions()
|
|
|
|
|
|
|
|
|
|
uint64_t LocalPlayer = 0;
|
|
|
|
|
apex_mem.Read<uint64_t>(g_Base + OFFSET_LOCAL_ENT, LocalPlayer);
|
|
|
|
|
if (LocalPlayer == 0) continue;
|
|
|
|
|
|
|
|
|
|
if (LocalPlayer == 0)
|
|
|
|
|
continue;
|
|
|
|
|
Entity LPlayer = getEntity(LocalPlayer);
|
|
|
|
|
|
|
|
|
|
team_player = LPlayer.getTeamId();
|
|
|
|
@ -155,25 +160,6 @@ void DoActions()
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(thirdperson && !tmp_thirdperson)
|
|
|
|
|
{
|
|
|
|
|
if(!aiming)
|
|
|
|
|
{
|
|
|
|
|
apex_mem.Write<int>(g_Base + OFFSET_THIRDPERSON, 1);
|
|
|
|
|
apex_mem.Write<int>(LPlayer.ptr + OFFSET_THIRDPERSON_SV, 1);
|
|
|
|
|
tmp_thirdperson = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if((!thirdperson && tmp_thirdperson) || aiming)
|
|
|
|
|
{
|
|
|
|
|
if(tmp_thirdperson)
|
|
|
|
|
{
|
|
|
|
|
apex_mem.Write<int>(g_Base + OFFSET_THIRDPERSON, -1);
|
|
|
|
|
apex_mem.Write<int>(LPlayer.ptr + OFFSET_THIRDPERSON_SV, 0);
|
|
|
|
|
tmp_thirdperson = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
uint64_t entitylist = g_Base + OFFSET_ENTITYLIST;
|
|
|
|
|
|
|
|
|
|
uint64_t baseent = 0;
|
|
|
|
@ -194,8 +180,10 @@ void DoActions()
|
|
|
|
|
{
|
|
|
|
|
uint64_t centity = 0;
|
|
|
|
|
apex_mem.Read<uint64_t>(entitylist + ((uint64_t)i << 5), centity);
|
|
|
|
|
if (centity == 0) continue;
|
|
|
|
|
if (LocalPlayer == centity) continue;
|
|
|
|
|
if (centity == 0)
|
|
|
|
|
continue;
|
|
|
|
|
if (LocalPlayer == centity)
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
Entity Target = getEntity(centity);
|
|
|
|
|
if (!Target.isDummy())
|
|
|
|
@ -222,8 +210,11 @@ void DoActions()
|
|
|
|
|
{
|
|
|
|
|
uint64_t centity = 0;
|
|
|
|
|
apex_mem.Read<uint64_t>(entitylist + ((uint64_t)i << 5), centity);
|
|
|
|
|
if (centity == 0) continue;
|
|
|
|
|
if (LocalPlayer == centity) continue;
|
|
|
|
|
|
|
|
|
|
if (centity == 0)
|
|
|
|
|
continue;
|
|
|
|
|
if (LocalPlayer == centity)
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
Entity Target = getEntity(centity);
|
|
|
|
|
if (!Target.isPlayer())
|
|
|
|
@ -257,20 +248,6 @@ void DoActions()
|
|
|
|
|
aimentity = tmp_aimentity;
|
|
|
|
|
else
|
|
|
|
|
aimentity = lastaimentity;
|
|
|
|
|
|
|
|
|
|
if(chargerifle)
|
|
|
|
|
{
|
|
|
|
|
charge_rifle_hack(LocalPlayer);
|
|
|
|
|
tmp_chargerifle = true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if(tmp_chargerifle)
|
|
|
|
|
{
|
|
|
|
|
apex_mem.Write<float>(g_Base + OFFSET_TIMESCALE + 0x68, 1.f);
|
|
|
|
|
tmp_chargerifle = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
actions_t = false;
|
|
|
|
@ -305,6 +282,7 @@ static void EspLoop()
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
Entity LPlayer = getEntity(LocalPlayer);
|
|
|
|
|
|
|
|
|
|
int team_player = LPlayer.getTeamId();
|
|
|
|
|
if (team_player < 0 || team_player > 50)
|
|
|
|
|
{
|
|
|
|
@ -389,8 +367,7 @@ static void EspLoop()
|
|
|
|
|
0,
|
|
|
|
|
(Target.lastVisTime() > lastvis_esp[c]),
|
|
|
|
|
health,
|
|
|
|
|
shield
|
|
|
|
|
};
|
|
|
|
|
shield};
|
|
|
|
|
Target.get_name(g_Base, i - 1, &players[c].name[0]);
|
|
|
|
|
lastvis_esp[c] = Target.lastVisTime();
|
|
|
|
|
valid = true;
|
|
|
|
@ -465,8 +442,7 @@ static void EspLoop()
|
|
|
|
|
Target.isKnocked(),
|
|
|
|
|
(Target.lastVisTime() > lastvis_esp[i]),
|
|
|
|
|
health,
|
|
|
|
|
shield
|
|
|
|
|
};
|
|
|
|
|
shield};
|
|
|
|
|
Target.get_name(g_Base, i - 1, &players[i].name[0]);
|
|
|
|
|
lastvis_esp[i] = Target.lastVisTime();
|
|
|
|
|
valid = true;
|
|
|
|
@ -506,7 +482,8 @@ static void AimbotLoop()
|
|
|
|
|
lastaimentity = aimentity;
|
|
|
|
|
uint64_t LocalPlayer = 0;
|
|
|
|
|
apex_mem.Read<uint64_t>(g_Base + OFFSET_LOCAL_ENT, LocalPlayer);
|
|
|
|
|
if (LocalPlayer == 0) continue;
|
|
|
|
|
if (LocalPlayer == 0)
|
|
|
|
|
continue;
|
|
|
|
|
Entity LPlayer = getEntity(LocalPlayer);
|
|
|
|
|
QAngle Angles = CalculateBestBoneAim(LPlayer, aimentity, max_fov);
|
|
|
|
|
if (Angles.x == 0 && Angles.y == 0)
|
|
|
|
@ -559,15 +536,14 @@ static void set_vars(uint64_t add_addr)
|
|
|
|
|
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t) * 14, bone_addr);
|
|
|
|
|
uint64_t thirdperson_addr = 0;
|
|
|
|
|
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t) * 15, thirdperson_addr);
|
|
|
|
|
uint64_t shooting_addr = 0;
|
|
|
|
|
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t) * 16, shooting_addr);
|
|
|
|
|
uint64_t chargerifle_addr = 0;
|
|
|
|
|
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t) * 17, chargerifle_addr);
|
|
|
|
|
uint64_t spectators_addr = 0;
|
|
|
|
|
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t)*16, spectators_addr);
|
|
|
|
|
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t) * 18, spectators_addr);
|
|
|
|
|
uint64_t allied_spectators_addr = 0;
|
|
|
|
|
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t)*17, allied_spectators_addr);
|
|
|
|
|
uint64_t chargerifle_addr = 0;
|
|
|
|
|
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t)*18, chargerifle_addr);
|
|
|
|
|
uint64_t shooting_addr = 0;
|
|
|
|
|
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t)*19, shooting_addr);
|
|
|
|
|
|
|
|
|
|
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t) * 19, allied_spectators_addr);
|
|
|
|
|
|
|
|
|
|
uint32_t check = 0;
|
|
|
|
|
client_mem.Read<uint32_t>(check_addr, check);
|
|
|
|
@ -578,13 +554,16 @@ static void set_vars(uint64_t add_addr)
|
|
|
|
|
active = false;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool new_client = true;
|
|
|
|
|
vars_t = true;
|
|
|
|
|
while (vars_t)
|
|
|
|
|
{
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
|
|
|
|
if(c_Base!=0 && g_Base!=0)
|
|
|
|
|
if (new_client && c_Base != 0 && g_Base != 0)
|
|
|
|
|
{
|
|
|
|
|
client_mem.Write<uint32_t>(check_addr, 0);
|
|
|
|
|
new_client = false;
|
|
|
|
|
printf("\nReady\n");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -647,7 +626,8 @@ static void item_glow_t()
|
|
|
|
|
{
|
|
|
|
|
uint64_t centity = 0;
|
|
|
|
|
apex_mem.Read<uint64_t>(entitylist + ((uint64_t)i << 5), centity);
|
|
|
|
|
if (centity == 0) continue;
|
|
|
|
|
if (centity == 0)
|
|
|
|
|
continue;
|
|
|
|
|
Item item = getItem(centity);
|
|
|
|
|
|
|
|
|
|
if (item.isItem() && !item.isGlowing())
|
|
|
|
@ -666,7 +646,8 @@ static void item_glow_t()
|
|
|
|
|
{
|
|
|
|
|
uint64_t centity = 0;
|
|
|
|
|
apex_mem.Read<uint64_t>(entitylist + ((uint64_t)i << 5), centity);
|
|
|
|
|
if (centity == 0) continue;
|
|
|
|
|
if (centity == 0)
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
Item item = getItem(centity);
|
|
|
|
|
|
|
|
|
@ -702,6 +683,7 @@ int main(int argc, char *argv[])
|
|
|
|
|
std::thread actions_thr;
|
|
|
|
|
std::thread itemglow_thr;
|
|
|
|
|
std::thread vars_thr;
|
|
|
|
|
bool proc_not_found = false;
|
|
|
|
|
while (active)
|
|
|
|
|
{
|
|
|
|
|
if (apex_mem.get_proc_status() != process_status::FOUND_READY)
|
|
|
|
@ -720,16 +702,24 @@ int main(int argc, char *argv[])
|
|
|
|
|
itemglow_thr.~thread();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
proc_not_found = apex_mem.get_proc_status() == process_status::NOT_FOUND;
|
|
|
|
|
|
|
|
|
|
if (proc_not_found)
|
|
|
|
|
{
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::seconds(1));
|
|
|
|
|
printf("Searching for apex process...\n");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
apex_mem.open_proc(ap_proc);
|
|
|
|
|
|
|
|
|
|
if (apex_mem.get_proc_status() == process_status::FOUND_READY)
|
|
|
|
|
{
|
|
|
|
|
g_Base = apex_mem.get_proc_baseaddr();
|
|
|
|
|
if (proc_not_found)
|
|
|
|
|
{
|
|
|
|
|
printf("\nApex process found\n");
|
|
|
|
|
printf("Base: %lx\n", g_Base);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
aimbot_thr = std::thread(AimbotLoop);
|
|
|
|
|
esp_thr = std::thread(EspLoop);
|
|
|
|
|