Update hack.hpp

- Made the head tracker more accurate when up close
This commit is contained in:
ifBars
2023-10-12 01:53:45 -06:00
committed by GitHub
parent b3e236bf46
commit 06d1b5ffea
+12 -1
View File
@@ -170,7 +170,7 @@ namespace hack {
if (config::head_tracker) if (config::head_tracker)
{ {
if (roundedDistance > 25) if (roundedDistance > 35)
{ {
render::DrawFilledBox( render::DrawFilledBox(
g::hdcBuffer, g::hdcBuffer,
@@ -181,6 +181,17 @@ namespace hack {
rainbowColor rainbowColor
); );
} }
else if (roundedDistance > 5)
{
render::DrawFilledBox(
g::hdcBuffer,
screenHead.x - (width2 / 2),
screenHead.y + 25 - (height2 / 2),
width2,
height2,
rainbowColor
);
}
} }
if (config::rainbow) if (config::rainbow)