CM2Model::HasKeyBone
function · models · orchestration
- Address
0x711d20· 68 bytes, up to0x711d63- Signature
uint32_t __thiscall (CM2Model *this, uint32_t keyBone)- Meaning
- Returns 1 for −1 or a key bone id whose lookup entry is not 0xffff, else 0
- Confidence
- verified, proof one
- Finding
- models/model#key-bones-and-cameras
Finding: Key bones and cameras in models: the instance
HasKeyBone(id) waits for the shared model and returns 1 for −1 and for an id whose key bone
lookup entry is not 0xffff, else 0; an id past the lookup reads as 0xffff. GetCameraById(id)
maps the id through the camera lookup and GetCamera(index) takes the index as given; both return
the camera at +0x80 of the instance's camera state index, 0x84 bytes each at +0x3c4. Neither
bounds the index: an id the camera lookup lacks gives 0xffff, read 0xffff·0x84 bytes into the
array. HasCamera, the camera lookup's presence test, has no caller.
The derivation is in the doc.
Callers 4
- CGUnit_C::OnModelLoaded objectlayer
- AddAnimSpeedEffect objectlayer
- CEffect::Stop objectlayer
- CEffect::Update objectlayer
Callees 2
- M2LookupIndex models
- CM2Model::WaitForShared models
Calls and jumps by a bare address, from tables/calls.tsv.