Skip to content

Commit eb23760

Browse files
committed
[NOT TESTED] isGateWayAnimationHierarchy is called in AddAnimationHandler for checking and playing custom animation, but it is not tested because IFP reader needs to be added asap.
1 parent b5a6198 commit eb23760

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Client/mods/deathmatch/logic/CClientGame.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3987,11 +3987,18 @@ CAnimBlendAssociationSAInterface * CClientGame::AddAnimationHandler ( RpClump *
39873987
{
39883988
printf ( "AddAnimationHandler called! pClump, GroupID, AnimID: %p, %d, %d\n", (void*)pClump, animGroup, animID );
39893989

3990-
//CClientPed * pPed = m_pPedManager->Get ( pClump, true );
3991-
CClientPed * pClientPed = g_pGame->GetAnimManager()->GetClientPedFromClumpMap ( pClump );
3990+
CAnimManager * pAnimationManager = g_pGame->GetAnimManager();
3991+
3992+
CClientPed * pClientPed = pAnimationManager->GetClientPedFromClumpMap ( pClump );
39923993
if ( pClientPed != nullptr )
39933994
{
3994-
printf ("pClientPed found!\n");
3995+
// printf ("pClientPed found! | GroupID: %d | AnimID: %d \n\n", pAnimStaticAssoc->sAnimGroup, pAnimStaticAssoc->sAnimID);
3996+
3997+
auto pAnimStaticAssoc = pAnimationManager->GetAnimStaticAssociation ( animGroup, animID );
3998+
if ( pAnimationManager->isGateWayAnimationHierarchy ( pAnimStaticAssoc->pAnimHeirarchy ) )
3999+
{
4000+
4001+
}
39954002
}
39964003

39974004
std::unique_ptr < CAnimBlendAssocGroup > pAnimAssocGroup = g_pGame->CreateAnimBlendAssocGroup ( animGroup );

0 commit comments

Comments
 (0)