Undid some things

pull/30/head
NerfBatInc 3 years ago
parent 47013c5620
commit 6ecbf28d64

@ -31,9 +31,7 @@ bool aiming = false;
extern float smooth; extern float smooth;
extern int bone; extern int bone;
bool thirdperson = false; bool thirdperson = false;
//WorldtoScreen res
int lengthws = 1080;
int widthws = 1920;
//chargerifle hack //chargerifle hack
@ -486,12 +484,12 @@ static void EspLoop()
} }
Vector bs = Vector(); Vector bs = Vector();
WorldToScreen(EntityPosition, m.matrix, widthws, lengthws, bs); WorldToScreen(EntityPosition, m.matrix, 1920, 1080, bs);
if (esp) if (esp)
{ {
Vector hs = Vector(); Vector hs = Vector();
Vector HeadPosition = Target.getBonePositionByHitbox(0); Vector HeadPosition = Target.getBonePositionByHitbox(0);
WorldToScreen(HeadPosition, m.matrix, widthws, lengthws, hs); WorldToScreen(HeadPosition, m.matrix, 1920, 1080, hs);
float height = abs(abs(hs.y) - abs(bs.y)); float height = abs(abs(hs.y) - abs(bs.y));
float width = height / 2.0f; float width = height / 2.0f;
float boxMiddle = bs.x - (width / 2.0f); float boxMiddle = bs.x - (width / 2.0f);
@ -566,12 +564,12 @@ static void EspLoop()
} }
Vector bs = Vector(); Vector bs = Vector();
WorldToScreen(EntityPosition, m.matrix, widthws, lengthws, bs); WorldToScreen(EntityPosition, m.matrix, 1920, 1080, bs);
if (esp) if (esp)
{ {
Vector hs = Vector(); Vector hs = Vector();
Vector HeadPosition = Target.getBonePositionByHitbox(0); Vector HeadPosition = Target.getBonePositionByHitbox(0);
WorldToScreen(HeadPosition, m.matrix, widthws, lengthws, hs); WorldToScreen(HeadPosition, m.matrix, 1920, 1080, hs);
float height = abs(abs(hs.y) - abs(bs.y)); float height = abs(abs(hs.y) - abs(bs.y));
float width = height / 2.0f; float width = height / 2.0f;
float boxMiddle = bs.x - (width / 2.0f); float boxMiddle = bs.x - (width / 2.0f);
@ -846,14 +844,10 @@ static void set_vars(uint64_t add_addr)
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t)*90, weapon_rampage_addr); client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t)*90, weapon_rampage_addr);
uint64_t weapon_car_smg_addr = 0; uint64_t weapon_car_smg_addr = 0;
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t)*91, weapon_car_smg_addr); client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t)*91, weapon_car_smg_addr);
uint64_t lengthws_addr = 0;
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; uint64_t aimdist_addr = 0;
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t)*94, aimdist_addr); client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t)*92, aimdist_addr);
uint64_t itemglowbrightness_addr = 0; uint64_t itemglowbrightness_addr = 0;
client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t)*95, itemglowbrightness_addr); client_mem.Read<uint64_t>(add_addr + sizeof(uint64_t)*93, itemglowbrightness_addr);
@ -966,8 +960,6 @@ static void set_vars(uint64_t add_addr)
client_mem.Read<bool>(weapon_3030_repeater_addr, weapon_3030_repeater); client_mem.Read<bool>(weapon_3030_repeater_addr, weapon_3030_repeater);
client_mem.Read<bool>(weapon_rampage_addr, weapon_rampage); client_mem.Read<bool>(weapon_rampage_addr, weapon_rampage);
client_mem.Read<bool>(weapon_car_smg_addr, weapon_car_smg); 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); client_mem.Read<float>(aimdist_addr, aimdist);
client_mem.Read<int>(itemglowbrightness_addr, itemglowbrightness); client_mem.Read<int>(itemglowbrightness_addr, itemglowbrightness);
@ -1015,7 +1007,7 @@ static void item_glow_t()
uint64_t entitylist = g_Base + OFFSET_ENTITYLIST; uint64_t entitylist = g_Base + OFFSET_ENTITYLIST;
if (item_glow) if (item_glow)
{ {
for (int i = 0; i < 20000; i++) for (int i = 0; i < 15000; i++)
{ {
uint64_t centity = 0; uint64_t centity = 0;
apex_mem.Read<uint64_t>(entitylist + ((uint64_t)i << 5), centity); apex_mem.Read<uint64_t>(entitylist + ((uint64_t)i << 5), centity);
@ -1754,7 +1746,7 @@ static void item_glow_t()
{ {
if(k==1) if(k==1)
{ {
for (int i = 0; i < 20000; i++) for (int i = 0; i < 15000; i++)
{ {
uint64_t centity = 0; uint64_t centity = 0;
apex_mem.Read<uint64_t>(entitylist + ((uint64_t)i << 5), centity); apex_mem.Read<uint64_t>(entitylist + ((uint64_t)i << 5), centity);
@ -1789,7 +1781,7 @@ int main(int argc, char *argv[])
//const char* ap_proc = "EasyAntiCheat_launcher.exe"; //const char* ap_proc = "EasyAntiCheat_launcher.exe";
//Client "add" offset //Client "add" offset
uint64_t add_off = 0x1419d0; uint64_t add_off = 0x140990;
std::thread aimbot_thr; std::thread aimbot_thr;
std::thread esp_thr; std::thread esp_thr;

@ -1080,7 +1080,7 @@ ImGuiIO::ImGuiIO()
DisplaySize = ImVec2(-1.0f, -1.0f); DisplaySize = ImVec2(-1.0f, -1.0f);
DeltaTime = 1.0f / 60.0f; DeltaTime = 1.0f / 60.0f;
IniSavingRate = 5.0f; IniSavingRate = 5.0f;
IniFilename = NULL; // Important: "imgui.ini" is relative to current working dir, most apps will want to lock this to an absolute path (e.g. same path as executables). IniFilename = "imgui.ini"; // Important: "imgui.ini" is relative to current working dir, most apps will want to lock this to an absolute path (e.g. same path as executables).
LogFilename = "imgui_log.txt"; LogFilename = "imgui_log.txt";
MouseDoubleClickTime = 0.30f; MouseDoubleClickTime = 0.30f;
MouseDoubleClickMaxDist = 6.0f; MouseDoubleClickMaxDist = 6.0f;

@ -35,10 +35,6 @@ int shoot_key2 = VK_RBUTTON; //Right Click
bool toggleaim = false; bool toggleaim = false;
bool toggleaim2 = false; bool toggleaim2 = false;
extern int e; extern int e;
//World to Screen res
int lengthws = 1920;
int widthws = 1920;
extern int wss;
bool firing_range = false; bool firing_range = false;
bool use_nvidia = true; //Nvidia Shadowplay Overlay bool use_nvidia = true; //Nvidia Shadowplay Overlay
bool active = true; bool active = true;
@ -60,14 +56,6 @@ float glowr = 120.0f; //Red Value
float glowg = 0.0f; //Green Value float glowg = 0.0f; //Green Value
float glowb = 0.0f; //Blue Value float glowb = 0.0f; //Blue Value
float glowcolor[3] = { 000.0f, 000.0f, 000.0f }; float glowcolor[3] = { 000.0f, 000.0f, 000.0f };
//Radar multi res
extern int wstimesx;
extern int wstimesy;
float fwstimesx = 170.0f;
float fwstimesy = 170.0f;
//MiniMap Radar
int minimapposx = 0;
int minimapposy = 0;
extern int minimapradardotsize1; extern int minimapradardotsize1;
extern int minimapradardotsize2; extern int minimapradardotsize2;
bool minimapradar = false; bool minimapradar = false;
@ -454,17 +442,23 @@ void DrawRadarPoint(D3DXVECTOR3 EneamyPos, D3DXVECTOR3 LocalPos, float LocalPlay
//MiniMap Radar Stuff //MiniMap Radar Stuff
void MiniMapRadar(D3DXVECTOR3 EneamyPos, D3DXVECTOR3 LocalPos, float LocalPlayerY, float eneamyDist, int TeamId) void MiniMapRadar(D3DXVECTOR3 EneamyPos, D3DXVECTOR3 LocalPos, float LocalPlayerY, float eneamyDist, int TeamId)
{ {
ImGuiStyle* style = &ImGui::GetStyle();
style->WindowRounding = 0.2f;
ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(0.13529413f, 0.14705884f, 0.15490198f, 0.82f));
ImGuiWindowFlags TargetFlags; ImGuiWindowFlags TargetFlags;
//Radar Window Flags: No Move, Resize, Title bar, Background etc. makes it so you can change it once set. //Radar Window Flags: No Move, Resize, Title bar, Background etc. makes it so you can change it once set.
//slash out | ImGuiWindowFlags_::ImGuiWindowFlags_NoMove to move the minimap //slash out | ImGuiWindowFlags_::ImGuiWindowFlags_NoMove to move the minimap
TargetFlags = ImGuiWindowFlags_::ImGuiWindowFlags_NoResize | ImGuiWindowFlags_::ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_::ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_::ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_::ImGuiWindowFlags_NoMove; TargetFlags = ImGuiWindowFlags_::ImGuiWindowFlags_NoResize | ImGuiWindowFlags_::ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_::ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_::ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_::ImGuiWindowFlags_NoMove;
if (!firstS) //dunno
{
ImGui::SetNextWindowPos(ImVec2{ 1200, 60 }, ImGuiCond_Once);
firstS = true;
}
if (RadarSettings::Radar == true) if (RadarSettings::Radar == true)
{ {
ImGui::SetNextWindowPos(ImVec2{ fwstimesx - 125, fwstimesy - 125});
ImGui::SetNextWindowSize({ 250, 250 }); ImGui::SetNextWindowSize({ 250, 250 });
ImGui::Begin(("Radar"), 0, TargetFlags); ImGui::Begin(("Radar"), 0, TargetFlags);
//if (ImGui::Begin(xorstr("Radar", 0, ImVec2(200, 200), -1.f, TargetFlags))) { //if (ImGui::Begin(xorstr("Radar", 0, ImVec2(200, 200), -1.f, TargetFlags))) {
@ -482,7 +476,7 @@ void MiniMapRadar(D3DXVECTOR3 EneamyPos, D3DXVECTOR3 LocalPos, float LocalPlayer
} }
ImGui::End(); ImGui::End();
} }
ImGui::PopStyleColor();
} }
bool IsKeyDown(int vk) bool IsKeyDown(int vk)
{ {
@ -811,11 +805,8 @@ int main(int argc, char** argv)
add[89] = (uintptr_t)&weapon_3030_repeater; add[89] = (uintptr_t)&weapon_3030_repeater;
add[90] = (uintptr_t)&weapon_rampage; add[90] = (uintptr_t)&weapon_rampage;
add[91] = (uintptr_t)&weapon_car_smg; add[91] = (uintptr_t)&weapon_car_smg;
add[92] = (uintptr_t)&lengthws; add[92] = (uintptr_t)&aimdist;
add[93] = (uintptr_t)&widthws; add[93] = (uintptr_t)&itemglowbrightness;
add[94] = (uintptr_t)&aimdist;
add[95] = (uintptr_t)&itemglowbrightness
;
@ -953,11 +944,6 @@ int main(int argc, char** argv)
config >> toggleaim; config >> toggleaim;
config >> toggleaim2; config >> toggleaim2;
config >> e; config >> e;
config >> lengthws;
config >> widthws;
config >> wss;
config >> wstimesx;
config >> wstimesy;
config >> minimapradardotsize1; config >> minimapradardotsize1;
config >> minimapradardotsize2; config >> minimapradardotsize2;
config >> aimdist; config >> aimdist;

@ -23,20 +23,11 @@ extern int allied_spectators;
extern bool toggleaim; extern bool toggleaim;
extern bool toggleaim2; extern bool toggleaim2;
int e = 0; int e = 0;
//World to Screen Res
extern int lengthws;
extern int widthws;
int wss = 0;
//glow color and type //glow color and type
extern float glowr; //Red Value extern float glowr; //Red Value
extern float glowg; //Green Value extern float glowg; //Green Value
extern float glowb; //Blue Value extern float glowb; //Blue Value
extern float glowcolor[3]; extern float glowcolor[3];
//Radar multi res
int wstimesx = 1;
int wstimesy = 1;
extern float fwstimesx;
extern float fwstimesy;
//MiniMap Radar //MiniMap Radar
int minimapradardotsize1 = 5; int minimapradardotsize1 = 5;
int minimapradardotsize2 = 5; int minimapradardotsize2 = 5;
@ -419,12 +410,7 @@ void Overlay::RenderMenu()
config << std::boolalpha << weapon_car_smg << "\n"; config << std::boolalpha << weapon_car_smg << "\n";
config << toggleaim << "\n"; config << toggleaim << "\n";
config << toggleaim2 << "\n"; config << toggleaim2 << "\n";
config << e << "\n"; config << e << "\n";
config << lengthws << "\n";
config << widthws << "\n";
config << wss << "\n";
config << wstimesx << "\n";
config << wstimesy << "\n";
config << minimapradardotsize1 << "\n"; config << minimapradardotsize1 << "\n";
config << minimapradardotsize2 << "\n"; config << minimapradardotsize2 << "\n";
config << aimdist << "\n"; config << aimdist << "\n";
@ -538,12 +524,7 @@ void Overlay::RenderMenu()
config >> weapon_car_smg; config >> weapon_car_smg;
config >> toggleaim; config >> toggleaim;
config >> toggleaim2; config >> toggleaim2;
config >> e; config >> e;
config >> lengthws;
config >> widthws;
config >> wss;
config >> wstimesx;
config >> wstimesy;
config >> minimapradardotsize1; config >> minimapradardotsize1;
config >> minimapradardotsize2; config >> minimapradardotsize2;
config >> aimdist; config >> aimdist;
@ -563,38 +544,7 @@ void Overlay::RenderMenu()
ImGui::Text(XorStr("Main Map Radar Dot Size")); ImGui::Text(XorStr("Main Map Radar Dot Size"));
ImGui::SliderInt(XorStr("Main Map Dot Width"), &mainmapradardotsize1, 1, 10); ImGui::SliderInt(XorStr("Main Map Dot Width"), &mainmapradardotsize1, 1, 10);
ImGui::SliderInt(XorStr("Main Map Dot length"), &mainmapradardotsize2, 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;
wstimesx = 1;
fwstimesx = 170.0f;
wstimesy = 1;
fwstimesy = 170.0f;
}
else if (wss == 2)
{
lengthws = 1440;
widthws = 2560;
wstimesx = 1.3333333;
fwstimesx = 226.0f;
wstimesy = 1.3333333;
fwstimesy = 226.0f;
}
else if (wss == 3)
{
lengthws = 3840;
widthws = 2160;
wstimesx = 2;
fwstimesx = 340.0f;
wstimesy = 2;
fwstimesy = 340.0f;
}
ImGui::EndTabItem(); ImGui::EndTabItem();
} }
if (ImGui::BeginTabItem(XorStr("Item Filter List"))) if (ImGui::BeginTabItem(XorStr("Item Filter List")))

Loading…
Cancel
Save