@@ -270,7 +270,6 @@ CClientGame::CClientGame ( bool bLocalPlay )
270
270
g_pMultiplayer->SetPostWorldProcessHandler ( CClientGame::StaticPostWorldProcessHandler );
271
271
g_pMultiplayer->SetPreFxRenderHandler ( CClientGame::StaticPreFxRenderHandler );
272
272
g_pMultiplayer->SetPreHudRenderHandler ( CClientGame::StaticPreHudRenderHandler );
273
- g_pMultiplayer->SetCAnimBlendAssocHierConstructorHandler ( CClientGame::StaticCAnimBlendAssocHierConstructorHandler );
274
273
g_pMultiplayer->SetCAnimBlendAssocDestructorHandler ( CClientGame::StaticCAnimBlendAssocDestructorHandler );
275
274
g_pMultiplayer->SetAddAnimationHandler ( CClientGame::StaticAddAnimationHandler );
276
275
g_pMultiplayer->SetAddAnimationAndSyncHandler ( CClientGame::StaticAddAnimationAndSyncHandler );
@@ -432,7 +431,6 @@ CClientGame::~CClientGame ( void )
432
431
g_pMultiplayer->SetPostWorldProcessHandler ( NULL );
433
432
g_pMultiplayer->SetPreFxRenderHandler ( NULL );
434
433
g_pMultiplayer->SetPreHudRenderHandler ( NULL );
435
- g_pMultiplayer->SetCAnimBlendAssocHierConstructorHandler ( NULL );
436
434
g_pMultiplayer->SetCAnimBlendAssocDestructorHandler ( NULL );
437
435
g_pMultiplayer->SetAddAnimationHandler ( NULL );
438
436
g_pMultiplayer->SetAddAnimationAndSyncHandler ( NULL );
@@ -3701,11 +3699,6 @@ bool CClientGame::StaticChokingHandler ( unsigned char ucWeaponType )
3701
3699
return g_pClientGame->ChokingHandler ( ucWeaponType );
3702
3700
}
3703
3701
3704
- bool CClientGame::StaticCAnimBlendAssocHierConstructorHandler ( SIFPAnimations ** pOutIFPAnimations, CAnimBlendAssociationSAInterface * pThis, RpClump * pClump, CAnimBlendHierarchySAInterface ** pOutAnimHierarchy )
3705
- {
3706
- return g_pClientGame->CAnimBlendAssocHierConstructorHandler ( pOutIFPAnimations, pThis, pClump, pOutAnimHierarchy );
3707
- }
3708
-
3709
3702
void CClientGame::StaticCAnimBlendAssocDestructorHandler ( CAnimBlendAssociationSAInterface * pThis )
3710
3703
{
3711
3704
g_pClientGame->CAnimBlendAssocDestructorHandler ( pThis );
@@ -4013,62 +4006,6 @@ bool CClientGame::ChokingHandler ( unsigned char ucWeaponType )
4013
4006
}
4014
4007
4015
4008
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
-
4072
4009
void CClientGame::CAnimBlendAssocDestructorHandler ( CAnimBlendAssociationSAInterface * pThis )
4073
4010
{
4074
4011
// printf("CClientGame::CAnimBlendAssocDestructorHandler called! sAnimID: %d\n", pThis->sAnimID);
@@ -4149,7 +4086,7 @@ bool CClientGame::BlendAnimationHierarchyHandler ( SIFPAnimations ** pOutIFPAni
4149
4086
CClientPed * pClientPed = GetClientPedByClump ( *pClump );
4150
4087
if ( pClientPed != nullptr )
4151
4088
{
4152
- printf (" CAnimBlendAssocHierConstructorHandler : Found pClientPed\n " );
4089
+ printf (" CClientGame::BlendAnimationHierarchyHandler : Found pClientPed\n " );
4153
4090
if ( pClientPed->isNextAnimationCustom () )
4154
4091
{
4155
4092
const SString & strBlockName = pClientPed->GetNextAnimationCustomBlockName ( );
@@ -4176,12 +4113,12 @@ bool CClientGame::BlendAnimationHierarchyHandler ( SIFPAnimations ** pOutIFPAni
4176
4113
}
4177
4114
else
4178
4115
{
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 ());
4180
4117
}
4181
4118
}
4182
4119
else
4183
4120
{
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 ());
4185
4122
}
4186
4123
}
4187
4124
0 commit comments