diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-26 16:04:18 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-26 16:04:18 +0100 |
| commit | 7101b7955071485a9bff33d55fc9f83f117b8f58 (patch) | |
| tree | 3351eca32146d6f88f740ff73da7c84045942a55 /build.sh | |
| parent | Menu: start fully collapsed on first open (diff) | |
| download | hl2h-7101b7955071485a9bff33d55fc9f83f117b8f58.tar.gz hl2h-7101b7955071485a9bff33d55fc9f83f117b8f58.zip | |
Bones: client-side SetupBones/studiohdr groundwork
- bones.cpp: resolve IClientRenderable via IClientUnknown slot 6, validate it
against IVModelInfo GetModel, call SetupBones (slot 16) with engine Time()
(slot 14), and parse the studio header (GetStudiomodel, slot 29) for
bones/bone names/parents and hitboxes
- cache up to 64 entity bone snapshots, refreshed at ~30 Hz
- helpers: bone_find/parent/pos, hitbox_center (e.g. "head")
- debug probe: HL2H_BONE_DEBUG=1 draws a white marker at each NPC's head
hitbox center and logs bone count/head position once
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -3,6 +3,6 @@ set -e | |||
| 3 | cd "$(dirname "$0")" | 3 | cd "$(dirname "$0")" |
| 4 | g++ -m32 -O2 -std=c++17 -Wall -Wextra -Werror -fPIC -shared -fvisibility=hidden \ | 4 | g++ -m32 -O2 -std=c++17 -Wall -Wextra -Werror -fPIC -shared -fvisibility=hidden \ |
| 5 | -o libhl2hake.so \ | 5 | -o libhl2hake.so \ |
| 6 | src/hl2h.cpp src/modules.cpp src/cinput.cpp src/netvars.cpp src/menu.cpp src/esp.cpp src/server.cpp \ | 6 | src/hl2h.cpp src/modules.cpp src/cinput.cpp src/netvars.cpp src/menu.cpp src/esp.cpp src/server.cpp src/bones.cpp \ |
| 7 | -ldl | 7 | -ldl |
| 8 | file libhl2hake.so | 8 | file libhl2hake.so |
