Improve LightESP

This commit is contained in:
LightCat 2018-10-19 14:24:19 +02:00
parent fa43882bd2
commit 59e58925bf

View File

@ -67,8 +67,13 @@ void draw()
draw::WorldToScreen(maxp[i], pout2))
size = fmaxf(fabsf(pout2.x - pout.x), fabsf(pout2.y - pout.y));
glez::draw::rect(out.x, out.y, size / 4, size / 4,
float minsize = 20.0f;
if (size < minsize)
size = minsize;
glez::draw::rect(out.x - fabsf(pout.x - pout2.x) / 4, out.y - fabsf(pout.y - pout2.y) / 4, fabsf(pout.x - pout2.x) / 2, fabsf(pout.y - pout2.y) / 2,
hacks::shared::lightesp::LightESPColor(pEntity));
glez::draw::rect(out.x - size / 8, out.y - size / 8, size / 4, size / 4,
colors::red);
}
}
#endif