added Aim max Dist slider

aim max distance .
pull/30/head
NerfBatInc 3 years ago
parent 8a6cc53031
commit 16afa2ccf3

@ -118,6 +118,9 @@ bool weapon_bow = false;
bool weapon_3030_repeater = false;
bool weapon_rampage = false;
bool weapon_car_smg = false;
//aim dist check
float aimdist = 200.0f * 40.0f;
@ -192,7 +195,7 @@ void ProcessPlayer(Entity& LPlayer, Entity& target, uint64_t entitylist, int ind
Vector LocalPlayerPosition = LPlayer.getPosition();
float dist = LocalPlayerPosition.DistTo(EntityPosition);
//std::printf(" X: %.6f || Y:%.6f",LocalPlayerPosition.x, LocalPlayerPosition.y); //Prints x and y cords of localplayer to get mainmap radar stuff.
if (dist > max_dist) return;
if (dist > aimdist) return;
if(!firing_range)
if (entity_team < 0 || entity_team>50 || entity_team == team_player) return;
@ -845,6 +848,8 @@ static void set_vars(uint64_t add_addr)
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t)*92, lengthws_addr);
uint64_t widthws_addr = 0;
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t)*93, widthws_addr);
uint64_t aimdist_addr = 0;
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t)*94, aimdist_addr);
@ -959,6 +964,7 @@ static void set_vars(uint64_t add_addr)
client_mem.Read<bool>(weapon_car_smg_addr, weapon_car_smg);
client_mem.Read<int>(lengthws_addr, lengthws);
client_mem.Read<int>(widthws_addr, widthws);
client_mem.Read<float>(aimdist_addr, aimdist);
@ -1677,7 +1683,7 @@ static void item_glow_t()
{
apex_mem.Write<int>(centity + OFFSET_GLOW_ENABLE, 1);
apex_mem.Write<int>(centity + OFFSET_GLOW_THROUGH_WALLS, 1); // 1 = far, 2 = close
apex_mem.Write<GlowMode>(centity + 0x2C4, { 101,101,99,90 });
apex_mem.Write<float>(centity + 0x1D0, 144); // r
apex_mem.Write<float>(centity + 0x1D4, 238); // g
@ -1731,7 +1737,7 @@ int main(int argc, char *argv[])
//const char* ap_proc = "EasyAntiCheat_launcher.exe";
//Client "add" offset
uint64_t add_off = 0x1409a0;
uint64_t add_off = 0x1409b0;
std::thread aimbot_thr;
std::thread esp_thr;

@ -147,6 +147,8 @@ bool weapon_bow = false;
bool weapon_3030_repeater = false;
bool weapon_rampage = false;
bool weapon_car_smg = false;
// Aim distance check
float aimdist = 9905.0f;
bool thirdperson = false;
@ -155,7 +157,7 @@ int allied_spectators = 0; //write
bool valid = true; //write
bool next2 = true; //read write
uint64_t add[95];
uint64_t add[96];
bool k_f5 = 0;
bool k_f6 = 0;
@ -779,6 +781,7 @@ int main(int argc, char** argv)
add[91] = (uintptr_t)&weapon_car_smg;
add[92] = (uintptr_t)&lengthws;
add[93] = (uintptr_t)&widthws;
add[94] = (uintptr_t)&aimdist;
@ -921,6 +924,9 @@ int main(int argc, char** argv)
config >> wss;
config >> wstimesx;
config >> wstimesy;
config >> minimapradardotsize1;
config >> minimapradardotsize2;
config >> aimdist;
config.close();
}
}
@ -981,6 +987,7 @@ int main(int argc, char** argv)
{
aiming = false;
}
}
ready = false;
ov1.Clear();

@ -118,6 +118,8 @@ extern bool weapon_bow;
extern bool weapon_3030_repeater;
extern bool weapon_rampage;
extern bool weapon_car_smg;
//Aim Dist check
extern float aimdist;
int width;
@ -218,6 +220,11 @@ void Overlay::RenderMenu()
ImGui::Sliderbox(XorStr("ESP Toggle"), &esp);
ImGui::Sliderbox(XorStr("AIM Toggle"), &aim_enable);
ImGui::Text(XorStr("Aim Distance:"));
ImGui::SameLine();
ImGui::SliderFloat(XorStr("##Aim Distance"), &aimdist, 10.0f * 39.62, 1600.0f * 39.62, "##");
ImGui::SameLine();
ImGui::TextColored(GREEN, "%.0f ", aimdist / 39.62);
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);
@ -413,7 +420,8 @@ void Overlay::RenderMenu()
config << wstimesx << "\n";
config << wstimesy << "\n";
config << minimapradardotsize1 << "\n";
config << minimapradardotsize2;
config << minimapradardotsize2 << "\n";
config << aimdist;
config.close();
}
}
@ -530,6 +538,7 @@ void Overlay::RenderMenu()
config >> wstimesy;
config >> minimapradardotsize1;
config >> minimapradardotsize2;
config >> aimdist;
config.close();
}
@ -727,9 +736,9 @@ void Overlay::RenderMenu()
void Overlay::RenderInfo()
{
ImGui::SetNextWindowPos(ImVec2(0, 0));
ImGui::SetNextWindowSize(ImVec2(160, 25));
ImGui::SetNextWindowSize(ImVec2(300, 25));
ImGui::Begin(XorStr("##info"), (bool*)true, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar);
DrawLine(ImVec2(1, 5), ImVec2(160, 5), RED, 2);
DrawLine(ImVec2(1, 5), ImVec2(300, 5), RED, 2);
ImGui::TextColored(RED, "%d", spectators);
ImGui::SameLine();
ImGui::Text("--");
@ -738,6 +747,9 @@ void Overlay::RenderInfo()
ImGui::SameLine();
ImGui::Text("--");
ImGui::SameLine();
ImGui::TextColored(GREEN, "%.0f ", aimdist / 39.62);
ImGui::Text("--");
ImGui::SameLine();
//Aim is on = 2, On but No Vis Check = 1, Off = 0
if (aim == 2)
{
@ -747,6 +759,7 @@ void Overlay::RenderInfo()
{
ImGui::TextColored(RED, "Aim Off %d", aim);
}
ImGui::End();
}

Loading…
Cancel
Save