Added minimap pos, testing traps glow

pull/30/head
NerfBatInc 3 years ago
parent 2a855effd4
commit c3322547c7

@ -1117,6 +1117,18 @@ static void item_glow_t()
apex_mem.Write<int>(centity + OFFSET_GLOW_THROUGH_WALLS, 2);
}
if (strstr(glowName, "mdl/props/caustic_gas_tank/caustic_gas_tank.rmdl"))
{
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 + GLOW_START_TIME, { 101,101,99,90 });
apex_mem.Write<float>(centity + GLOW_COLOR_R, 255 / itemglowbrightness); // r
apex_mem.Write<float>(centity + GLOW_COLOR_G, 0 / itemglowbrightness); // g
apex_mem.Write<float>(centity + GLOW_COLOR_B, 0 / itemglowbrightness); // b
}
if (healthlarge && strstr(glowName, "mdl/weapons_r5/loot/w_loot_wep_iso_health_main_large.rmdl"))
{
apex_mem.Write<int>(centity + OFFSET_GLOW_ENABLE, 1);
@ -1742,7 +1754,7 @@ int main(int argc, char *argv[])
//const char* ap_proc = "EasyAntiCheat_launcher.exe";
//Client "add" offset
uint64_t add_off = 0x1419b0;
uint64_t add_off = 0x1419c0;
std::thread aimbot_thr;
std::thread esp_thr;

@ -1080,7 +1080,7 @@ ImGuiIO::ImGuiIO()
DisplaySize = ImVec2(-1.0f, -1.0f);
DeltaTime = 1.0f / 60.0f;
IniSavingRate = 5.0f;
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).
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).
LogFilename = "imgui_log.txt";
MouseDoubleClickTime = 0.30f;
MouseDoubleClickMaxDist = 6.0f;

@ -63,7 +63,11 @@ float glowcolor[3] = { 000.0f, 000.0f, 000.0f };
//Radar multi res
int wstimesx = 0;
int wstimesy = 0;
float fwstimesx = 170.0f;
float fwstimesy = 170.0f;
//MiniMap Radar
int minimapposx = 0;
int minimapposy = 0;
extern int minimapradardotsize1;
extern int minimapradardotsize2;
bool minimapradar = false;
@ -74,7 +78,8 @@ float radarcolor[3];
//Full Map Radar
bool mainradartoggle = 0; //Toggle for Main Map radar
bool mainradarmap = false; //if the Main Map Radar is enabled
bool kingscanyon = true; //Set for map, ONLY ONE THO
bool kingscanyon = false; //Set for map, ONLY ONE THO
bool stormpoint = true; //Set for map, ONLY ONE THO
extern int mainmapradardotsize1;
extern int mainmapradardotsize2;
//Ha think i was done ?
@ -433,22 +438,17 @@ void DrawRadarPoint(D3DXVECTOR3 EneamyPos, D3DXVECTOR3 LocalPos, float LocalPlay
//MiniMap Radar Stuff
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;
//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
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;
if (!firstS) //dunno
{
ImGui::SetNextWindowPos(ImVec2{ 1200, 60 }, ImGuiCond_Once);
firstS = true;
}
if (RadarSettings::Radar == true)
{
ImGui::SetNextWindowPos(ImVec2{ fwstimesx - 125, fwstimesy - 125});
ImGui::SetNextWindowSize({ 250, 250 });
ImGui::Begin(("Radar"), 0, TargetFlags);
//if (ImGui::Begin(xorstr("Radar", 0, ImVec2(200, 200), -1.f, TargetFlags))) {
@ -466,7 +466,7 @@ void MiniMapRadar(D3DXVECTOR3 EneamyPos, D3DXVECTOR3 LocalPos, float LocalPlayer
}
ImGui::End();
}
ImGui::PopStyleColor();
}
bool IsKeyDown(int vk)
{
@ -505,7 +505,7 @@ public:
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
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, 983), ImVec2(40298.070313, 21163.728516), ImVec2(1321, 306));
world StormPoint(ImVec2(-21264.427734, -47086.878906), ImVec2(711 * wstimesx, 983 * wstimesy), ImVec2(40298.070313, 21163.728516), ImVec2(1321 * wstimesx, 306 * wstimesy));
//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));
@ -519,13 +519,19 @@ ImVec2 worldToScreenMap(D3DXVECTOR3 origin, int TeamID) {
ImVec2 w1;
ImVec2 s1;
//Is it me being lazy? or that i dont know how? prob both. True or False for the map detection, set in the overlay menu.
if (kingscanyon == true) { //KingsCanyon
/*if (kingscanyon == true) { //KingsCanyon
ratioX = KingsCanyon.ratioX;
ratioY = KingsCanyon.ratioY;
w1 = KingsCanyon.w1;
s1 = KingsCanyon.s1;
}
*/
if (stormpoint == true) { //Storm Point
ratioX = StormPoint.ratioX;
ratioY = StormPoint.ratioY;
w1 = StormPoint.w1;
s1 = StormPoint.s1;
}
else {
return ImVec2(0, 0);

@ -35,6 +35,8 @@ extern float glowcolor[3];
//Radar multi res
extern int wstimesx;
extern int wstimesy;
extern float fwstimesx;
extern float fwstimesy;
//MiniMap Radar
int minimapradardotsize1 = 5;
int minimapradardotsize2 = 5;
@ -584,17 +586,23 @@ void Overlay::RenderMenu()
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)
{
wstimesx = 2;
fwstimesx = 340.0f;
wstimesy = 2;
fwstimesy = 340.0f;
}
ImGui::EndTabItem();
}

Loading…
Cancel
Save