for (int i = 0; i < 16; ++i) {
// deference olarak iletmeniz gerek. gidip düz iletmeyin adresi
uintptr_t ent = *(uintptr_t*)(0x18E73C0 + (i * 0x88));
if (!ent) // klasik check
continue;
int health = *(int*)(ent + 0x1C8);
if (health > 0)
std::cout << "all zombies health :" << health << std::endl;
Vector3 x_position = *(Vector3*)(ent + 0x18); // ayak pozisyonu
Vector3 head_pos = *(Vector3*)(ent + 0x154); // kafa pozisyonu
Vector2 screen;
Vector2 screen_v2;
if (WorldToScreen(x_position, screen)) {
if (WorldToScreen(head_pos, screen_v2))
{
// azcık matematik
float head = screen_v2.y - screen.y;
float width = head / 2;
float center = width / -2;
float extra = head / -6;
DrawBox(screen.x + center, screen.y + center, width, head - extra, 25, 90, 60, 250, 90);
}
if (!health)
continue;
}
system("cls");
}