From 3a04238eec9a4dc66665fa57ad2173b34d743840 Mon Sep 17 00:00:00 2001 From: ifBars <114284668+ifBars@users.noreply.github.com> Date: Mon, 30 Oct 2023 04:57:14 -0600 Subject: [PATCH] Fix for rendering non players & Update offsets --- memory-external/hacks/hack.hpp | 3 +++ offsets/offsets.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/memory-external/hacks/hack.hpp b/memory-external/hacks/hack.hpp index 195ffe3..31252bd 100644 --- a/memory-external/hacks/hack.hpp +++ b/memory-external/hacks/hack.hpp @@ -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); diff --git a/offsets/offsets.json b/offsets/offsets.json index b4c5268..45bcaf5 100644 --- a/offsets/offsets.json +++ b/offsets/offsets.json @@ -3,7 +3,7 @@ "dwLocalPlayer": 25067864, "dwEntityList": 24745408, "dwViewMatrix": 25720624, - "dwBuildNumber": 4748564, + "dwBuildNumber": 4752660, "dwPlantedC4": 25739232, "m_flC4Blow": 3760, "m_flNextBeep": 3756, @@ -22,4 +22,4 @@ "m_sSanitizedPlayerName": 1824, "m_iTeamNum": 959, "m_vecOrigin": 4628 -} \ No newline at end of file +}