Fix for rendering non players & Update offsets

This commit is contained in:
ifBars
2023-10-30 04:57:14 -06:00
parent e3bfc8ac68
commit 3a04238eec
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -128,6 +128,9 @@ namespace hack {
if (config::render_distance != -1 && (localOrigin - origin).length2d() > config::render_distance)
continue;
if (origin.x == 0 && origin.y == 0 && origin.z == 0)
continue;
const Vector3 screenPos = origin.world_to_screen(view_matrix);
const Vector3 screenHead = head.world_to_screen(view_matrix);