MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / SetBoneCallbacks

Method SetBoneCallbacks

ogsr_engine/xrGame/AdvancedDetector.cpp:141–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void CUIArtefactDetectorAdv::SetBoneCallbacks()
142{
143 attachable_hud_item* itm = m_parent->HudItemData();
144 R_ASSERT(itm);
145 m_bid = itm->m_model->LL_BoneID("screen_bone");
146
147 CBoneInstance& bi = itm->m_model->LL_GetBoneInstance(m_bid);
148 bi.set_callback(bctCustom, BoneCallback, this);
149
150 float p, b;
151 bi.mTransform.getHPB(m_cur_y_rot, p, b);
152}
153
154void CUIArtefactDetectorAdv::ResetBoneCallbacks()
155{

Callers 1

on_a_hud_attachMethod · 0.45

Calls 4

HudItemDataMethod · 0.80
LL_BoneIDMethod · 0.80
set_callbackMethod · 0.80
getHPBMethod · 0.80

Tested by

no test coverage detected