Merge pull request #57 from IMXNOOBX/main
Merge updates from main into experimental
This commit is contained in:
@@ -40,29 +40,34 @@ namespace hack {
|
|||||||
|
|
||||||
const Vector3 c4ScreenPos = c4Origin.world_to_screen(view_matrix);
|
const Vector3 c4ScreenPos = c4Origin.world_to_screen(view_matrix);
|
||||||
|
|
||||||
float distance = localOrigin.calculate_distance(c4Origin);
|
/**
|
||||||
float roundedDistance = std::round(distance / 500.f);
|
* Sometimes C4 Position bugged if you look behind the C4, or C4 Screen Pos not in Screen Area
|
||||||
|
*/
|
||||||
|
if (c4ScreenPos.z >= 0.01f) {
|
||||||
|
float distance = localOrigin.calculate_distance(c4Origin);
|
||||||
|
float roundedDistance = std::round(distance / 500.f);
|
||||||
|
|
||||||
float height = 10 - roundedDistance;
|
float height = 10 - roundedDistance;
|
||||||
float width = height * 1.4f;
|
float width = height * 1.4f;
|
||||||
|
|
||||||
render::DrawFilledBox(
|
render::DrawFilledBox(
|
||||||
g::hdcBuffer,
|
g::hdcBuffer,
|
||||||
c4ScreenPos.x - (width / 2),
|
c4ScreenPos.x - (width / 2),
|
||||||
c4ScreenPos.y - (height / 2),
|
c4ScreenPos.y - (height / 2),
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
config::esp_box_color_enemy
|
config::esp_box_color_enemy
|
||||||
);
|
);
|
||||||
|
|
||||||
render::RenderText(
|
render::RenderText(
|
||||||
g::hdcBuffer,
|
g::hdcBuffer,
|
||||||
c4ScreenPos.x + (width / 2 + 5),
|
c4ScreenPos.x + (width / 2 + 5),
|
||||||
c4ScreenPos.y,
|
c4ScreenPos.y,
|
||||||
"C4",
|
"C4",
|
||||||
config::esp_name_color,
|
config::esp_name_color,
|
||||||
10
|
10
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int playerIndex = 0;
|
int playerIndex = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user