summaryrefslogtreecommitdiffstats
path: root/src/bones.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Bones: refresh snapshots every frame (head marker no longer lags)salmonik12 days1-1/+3
|
* Bones: robust head lookup (hitbox name -> head bone) + hitbox dumpsalmonik12 days1-27/+107
|
* Bones: client-side SetupBones/studiohdr groundworksalmonik12 days1-0/+288
- 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