summaryrefslogtreecommitdiffstats
path: root/src/esp.cpp
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-26 16:09:38 +0100
committersalmonik <salmonik@tuta.io>2026-10-26 16:09:59 +0100
commite2d238e1b4071ccbf3858eacb7b3ce8f98fa48e1 (patch)
tree95e968f13428d181276932c93a53eaf2106ab8a6 /src/esp.cpp
parentBones: client-side SetupBones/studiohdr groundwork (diff)
downloadhl2h-e2d238e1b4071ccbf3858eacb7b3ce8f98fa48e1.tar.gz
hl2h-e2d238e1b4071ccbf3858eacb7b3ce8f98fa48e1.zip
Bones: robust head lookup (hitbox name -> head bone) + hitbox dump
Diffstat (limited to 'src/esp.cpp')
-rw-r--r--src/esp.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/esp.cpp b/src/esp.cpp
index b384bc4..996a886 100644
--- a/src/esp.cpp
+++ b/src/esp.cpp
@@ -334,8 +334,14 @@ void esp_draw() {
334 if (!ent || !bones_update(t.idx, ent)) 334 if (!ent || !bones_update(t.idx, ent))
335 continue; 335 continue;
336 Vector head; 336 Vector head;
337 if (!hitbox_center(t.idx, "head", head)) 337 if (!head_position(t.idx, head)) {
338 static int no_head = 0;
339 if (no_head < 4) {
340 no_head++;
341 logf("head: idx=%d no head hitbox/bone", t.idx);
342 }
338 continue; 343 continue;
344 }
339 float hx, hy; 345 float hx, hy;
340 if (!world_to_screen(head, hx, hy)) 346 if (!world_to_screen(head, hx, hy))
341 continue; 347 continue;