diff options
Diffstat (limited to '')
| -rw-r--r-- | src/esp.cpp | 8 |
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; |
