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

Method EnabledCallbacks

ogsr_engine/xrGame/PHShell.cpp:1000–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998}
999
1000void CPHShell::EnabledCallbacks(BOOL val)
1001{
1002 if (val)
1003 {
1004 SetCallbacks(BonesCallback);
1005 // set callback owervrite in used bones
1006 ELEMENT_I i, e;
1007 i = elements.begin();
1008 e = elements.end();
1009 for (; i != e; ++i)
1010 {
1011 CBoneInstance& B = m_pKinematics->LL_GetBoneInstance((*i)->m_SelfID);
1012 B.set_callback_overwrite(TRUE);
1013 }
1014 }
1015 else
1016 ZeroCallbacks();
1017}
1018
1019static u16 element_position_in_set_calbacks = u16(-1);
1020static BoneCallbackFun* bones_callback; // temp ror SetCallbacksRecursive

Callers 8

SetBoneCallbacksMethod · 0.80
ResetBoneCallbacksMethod · 0.80
SpawnInitPhysicsMethod · 0.80
state_startMethod · 0.80
state_endMethod · 0.80
DieHelicopterMethod · 0.80
attach_ActorMethod · 0.80
detach_ActorMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected