Merhaba Ben Ezgi
Main:
Cizim:
Main:
inline static float GetBackgroundHeight(float x, float y)
{
try
{
typedef float(__thiscall* GetBackgroundHeight)(void* pThis, float x, float y);
tGetHeight GetBackgroundHeight = (tGetHeight)(sdk_client + 0x19F140);
void* Background = *(void**)(sdk_client + 0x388520);
if (Background != nullptr)
{
try {
return GetBackgroundHeight(Background, x, y);
}
catch (...) {
return 0.0f;
}
}
return 0.0f;
}
catch (...)
{
}
}
inline DWORD WINAPI Set_AllFarmBot(HMODULE hModule)
{
CreateConsole();
while (true)
{
try
{
float z = GetBackgroundHeight(c_players.x, c_players.y);
printf(" %.1f, %.1f ", c_players.x, c_players.y, z);
}
catch (...)
{
}
Sleep(Engine::C_AutoFarmSpeed);
}
return 0;
}
Cizim:
static void DrawImGuiCircle3D(ImDrawList* drawList, float x, float y, float radius, int points, ImU32 color, int width, int height) {
float step = (D3DX_PI * 2.0f) / points;
std::vector<ImVec2> screenPoints;
for (float a = 0; a < (D3DX_PI * 2.0f); a += step) {
float worldX = x + cosf(a) * radius;
float worldY = y + sinf(a) * radius;
float groundZ = GetBackgroundHeight(worldX, worldY);
D3DXVECTOR3 worldPos(worldX, worldY, groundZ + 5.0f);
ImVec2 screenPos;
if (WorldToScreen(worldPos, screenPos, width, height)) {
screenPoints.push_back(screenPos);
}
}
if (screenPoints.size() > 1) {
for (size_t i = 0; i < screenPoints.size(); i++) {
ImVec2 p1 = screenPoints[i];
ImVec2 p2 = screenPoints[(i + 1) % screenPoints.size()];
drawList->AddLine(p1, p2, color, 2.0f);
}
}
}
Hilelerinize renk verip daha güzel özellikler cıkarta bilirsiniz!


