@@ -90,6 +90,7 @@ void CClientPed::Init(CClientManager* pManager, unsigned long ulModelID, bool bI
9090
9191 m_pRequester = pManager->GetModelRequestManager ();
9292
93+ m_bCrouchToBeSetOnAnimEnd = false ;
9394 m_bisNextAnimationCustom = false ;
9495 m_bisCurrentAnimationCustom = false ;
9596 m_strCustomIFPBlockName = " Default" ;
@@ -5094,7 +5095,7 @@ CClientEntity* CClientPed::GetContactEntity()
50945095 if (pEntity)
50955096 {
50965097 CEntitySAInterface* pInterface = pEntity->GetInterface ();
5097- eEntityType entityType = pInterface ? pEntity->GetEntityType () : ENTITY_TYPE_NOTHING;
5098+ eEntityType entityType = pInterface ? pEntity->GetEntityType () : ENTITY_TYPE_NOTHING;
50985099 if (entityType == ENTITY_TYPE_VEHICLE || entityType == ENTITY_TYPE_OBJECT)
50995100 {
51005101 return pPools->GetClientEntity ((DWORD*)pInterface);
@@ -5666,8 +5667,8 @@ void CClientPed::RunAnimation(AssocGroupId animGroup, AnimationId animID)
56665667 }
56675668}
56685669
5669- void CClientPed::RunNamedAnimation (std::unique_ptr<CAnimBlock>& pBlock, const char * szAnimName, int iTime, int iBlend, bool bLoop, bool bUpdatePosition, bool bInterruptable,
5670- bool bFreezeLastFrame, bool bRunInSequence, bool bOffsetPed, bool bHoldLastFrame)
5670+ void CClientPed::RunNamedAnimation (std::unique_ptr<CAnimBlock>& pBlock, const char * szAnimName, int iTime, int iBlend, bool bLoop, bool bUpdatePosition,
5671+ bool bInterruptable, bool bFreezeLastFrame, bool bRunInSequence, bool bOffsetPed, bool bHoldLastFrame)
56715672{
56725673 /* lil_Toady: this seems to break things
56735674 // Kill any current animation that might be running
@@ -5725,6 +5726,7 @@ void CClientPed::RunNamedAnimation(std::unique_ptr<CAnimBlock>& pBlock, const ch
57255726 if (pTask)
57265727 {
57275728 pTask->SetAsPedTask (m_pPlayerPed, TASK_PRIORITY_PRIMARY);
5729+ g_pClientGame->InsertRunNamedAnimTaskToMap (reinterpret_cast <CTaskSimpleRunNamedAnimSAInterface*>(pTask->GetInterface ()), this );
57285730 }
57295731 }
57305732 else
@@ -5775,16 +5777,16 @@ void CClientPed::KillAnimation()
57755777}
57765778
57775779std::unique_ptr<CAnimBlock> CClientPed::GetAnimationBlock ()
5778- {
5780+ {
57795781 if (m_pAnimationBlock)
57805782 {
57815783 return g_pGame->GetAnimManager ()->GetAnimBlock (m_pAnimationBlock->GetInterface ());
57825784 }
5783- return nullptr ;
5785+ return nullptr ;
57845786}
57855787const char * CClientPed::GetAnimationName ()
5786- {
5787- return m_strAnimationName;
5788+ {
5789+ return m_strAnimationName;
57885790}
57895791
57905792void CClientPed::PostWeaponFire ()
@@ -6177,21 +6179,21 @@ std::unique_ptr<CAnimBlendAssociation> CClientPed::GetAnimAssociation(CAnimBlend
61776179 return nullptr ;
61786180 }
61796181
6180- auto pReplacedAnimation = GetReplacedAnimation (pOriginalHierarchyInterface);
6182+ auto pReplacedAnimation = GetReplacedAnimation (pOriginalHierarchyInterface);
61816183 CAnimBlendHierarchySAInterface* pReplacedInterface = nullptr ;
61826184 if (pReplacedAnimation != nullptr )
61836185 {
61846186 pReplacedInterface = pReplacedAnimation->pAnimationHierarchy ;
61856187 }
61866188
61876189 CAnimManager* pAnimationManager = g_pGame->GetAnimManager ();
6188- auto pAnimAssociation = pAnimationManager->RpAnimBlendClumpGetFirstAssociation (pClump);
6190+ auto pAnimAssociation = pAnimationManager->RpAnimBlendClumpGetFirstAssociation (pClump);
61896191 while (pAnimAssociation)
61906192 {
61916193 auto pAnimNextAssociation = pAnimationManager->RpAnimBlendGetNextAssociation (pAnimAssociation);
61926194 auto pAnimHierarchy = pAnimAssociation->GetAnimHierarchy ();
61936195 if (pAnimHierarchy)
6194- {
6196+ {
61956197 CAnimBlendHierarchySAInterface* pInterface = pAnimHierarchy->GetInterface ();
61966198 if (pInterface == pOriginalHierarchyInterface)
61976199 {
@@ -6205,7 +6207,6 @@ std::unique_ptr<CAnimBlendAssociation> CClientPed::GetAnimAssociation(CAnimBlend
62056207 pAnimAssociation = std::move (pAnimNextAssociation);
62066208 }
62076209 return nullptr ;
6208-
62096210}
62106211
62116212CSphere CClientPed::GetWorldBoundingSphere ()
0 commit comments