@@ -270,7 +270,6 @@ CClientGame::CClientGame ( bool bLocalPlay )
270270 g_pMultiplayer->SetPostWorldProcessHandler ( CClientGame::StaticPostWorldProcessHandler );
271271 g_pMultiplayer->SetPreFxRenderHandler ( CClientGame::StaticPreFxRenderHandler );
272272 g_pMultiplayer->SetPreHudRenderHandler ( CClientGame::StaticPreHudRenderHandler );
273- g_pMultiplayer->SetCAnimBlendAssocHierConstructorHandler ( CClientGame::StaticCAnimBlendAssocHierConstructorHandler );
274273 g_pMultiplayer->SetCAnimBlendAssocDestructorHandler ( CClientGame::StaticCAnimBlendAssocDestructorHandler );
275274 g_pMultiplayer->SetAddAnimationHandler ( CClientGame::StaticAddAnimationHandler );
276275 g_pMultiplayer->SetAddAnimationAndSyncHandler ( CClientGame::StaticAddAnimationAndSyncHandler );
@@ -432,7 +431,6 @@ CClientGame::~CClientGame ( void )
432431 g_pMultiplayer->SetPostWorldProcessHandler ( NULL );
433432 g_pMultiplayer->SetPreFxRenderHandler ( NULL );
434433 g_pMultiplayer->SetPreHudRenderHandler ( NULL );
435- g_pMultiplayer->SetCAnimBlendAssocHierConstructorHandler ( NULL );
436434 g_pMultiplayer->SetCAnimBlendAssocDestructorHandler ( NULL );
437435 g_pMultiplayer->SetAddAnimationHandler ( NULL );
438436 g_pMultiplayer->SetAddAnimationAndSyncHandler ( NULL );
@@ -3701,11 +3699,6 @@ bool CClientGame::StaticChokingHandler ( unsigned char ucWeaponType )
37013699 return g_pClientGame->ChokingHandler ( ucWeaponType );
37023700}
37033701
3704- bool CClientGame::StaticCAnimBlendAssocHierConstructorHandler ( SIFPAnimations ** pOutIFPAnimations, CAnimBlendAssociationSAInterface * pThis, RpClump * pClump, CAnimBlendHierarchySAInterface ** pOutAnimHierarchy )
3705- {
3706- return g_pClientGame->CAnimBlendAssocHierConstructorHandler ( pOutIFPAnimations, pThis, pClump, pOutAnimHierarchy );
3707- }
3708-
37093702void CClientGame::StaticCAnimBlendAssocDestructorHandler ( CAnimBlendAssociationSAInterface * pThis )
37103703{
37113704 g_pClientGame->CAnimBlendAssocDestructorHandler ( pThis );
@@ -4013,62 +4006,6 @@ bool CClientGame::ChokingHandler ( unsigned char ucWeaponType )
40134006}
40144007
40154008
4016- bool CClientGame::CAnimBlendAssocHierConstructorHandler ( SIFPAnimations ** pOutIFPAnimations, CAnimBlendAssociationSAInterface * pThis, RpClump * pClump, CAnimBlendHierarchySAInterface ** pOutAnimHierarchy )
4017- {
4018- bool isCustomAnimationToPlay = false ;
4019-
4020- CAnimBlendHierarchySAInterface * pAnimHierarchy = *pOutAnimHierarchy;
4021-
4022- printf (" pAnimHierarchy->usNumSequences: %d\n " , pAnimHierarchy->usNumSequences );
4023-
4024- CAnimManager * pAnimationManager = g_pGame->GetAnimManager ();
4025- CClientPed * pClientPed = GetClientPedByClump ( *pClump );
4026- if ( pClientPed != nullptr )
4027- {
4028- printf (" CAnimBlendAssocHierConstructorHandler: Found pClientPed\n " );
4029- if ( pClientPed->isNextAnimationCustom () )
4030- {
4031- const SString & strBlockName = pClientPed->GetNextAnimationCustomBlockName ( );
4032- CClientIFP * pIFP = GetIFPPointerFromMap ( strBlockName );
4033- if ( pIFP )
4034- {
4035- const SString & strAnimationName = pClientPed->GetNextAnimationCustomName ( );
4036- auto pCustomAnimBlendHierarchy = pIFP->GetAnimationHierarchy ( strAnimationName );
4037- if ( pCustomAnimBlendHierarchy != nullptr )
4038- {
4039- if ( pIFP->isIFPLoaded ( ) )
4040- {
4041- SIFPAnimations * pIFPAnimations = pIFP->GetIFPAnimationsPointer ();
4042- pIFPAnimations->iReferences ++;
4043-
4044- pClientPed->setCurrentAnimationCustom ( true );
4045- pClientPed->setNextAnimationNormal ( );
4046-
4047- *pOutIFPAnimations = pIFPAnimations;
4048- *pOutAnimHierarchy = pCustomAnimBlendHierarchy;
4049- isCustomAnimationToPlay = true ;
4050- return isCustomAnimationToPlay;
4051- }
4052- }
4053- else
4054- {
4055- printf (" CAnimBlendAssocHierConstructorHandler: could not find IFP animation hierarchy '%s'\n " , strAnimationName.c_str ());
4056- }
4057- }
4058- else
4059- {
4060- printf (" CAnimBlendAssocHierConstructorHandler: could not find IFP block name '%s'\n " , strBlockName.c_str ());
4061- }
4062- }
4063-
4064- pClientPed->setCurrentAnimationCustom ( false );
4065- pClientPed->setNextAnimationNormal ( );
4066- }
4067- printf (" CClientGame::CAnimBlendAssocHierConstructorHandler RETURNING! sAnimID: %d\n " , pThis->sAnimID );
4068- return isCustomAnimationToPlay;
4069- }
4070-
4071-
40724009void CClientGame::CAnimBlendAssocDestructorHandler ( CAnimBlendAssociationSAInterface * pThis )
40734010{
40744011 // printf("CClientGame::CAnimBlendAssocDestructorHandler called! sAnimID: %d\n", pThis->sAnimID);
@@ -4149,7 +4086,7 @@ bool CClientGame::BlendAnimationHierarchyHandler ( SIFPAnimations ** pOutIFPAni
41494086 CClientPed * pClientPed = GetClientPedByClump ( *pClump );
41504087 if ( pClientPed != nullptr )
41514088 {
4152- printf (" CAnimBlendAssocHierConstructorHandler : Found pClientPed\n " );
4089+ printf (" CClientGame::BlendAnimationHierarchyHandler : Found pClientPed\n " );
41534090 if ( pClientPed->isNextAnimationCustom () )
41544091 {
41554092 const SString & strBlockName = pClientPed->GetNextAnimationCustomBlockName ( );
@@ -4176,12 +4113,12 @@ bool CClientGame::BlendAnimationHierarchyHandler ( SIFPAnimations ** pOutIFPAni
41764113 }
41774114 else
41784115 {
4179- printf (" CAnimBlendAssocHierConstructorHandler : could not find IFP animation hierarchy '%s'\n " , strAnimationName.c_str ());
4116+ printf (" CClientGame::BlendAnimationHierarchyHandler : could not find IFP animation hierarchy '%s'\n " , strAnimationName.c_str ());
41804117 }
41814118 }
41824119 else
41834120 {
4184- printf (" CAnimBlendAssocHierConstructorHandler : could not find IFP block name '%s'\n " , strBlockName.c_str ());
4121+ printf (" CClientGame::BlendAnimationHierarchyHandler : could not find IFP block name '%s'\n " , strBlockName.c_str ());
41854122 }
41864123 }
41874124
0 commit comments