Skip to content

Commit f85b8f5

Browse files
committed
inlined functions and added IFPAnimationsPointer functions
1 parent c5ee5da commit f85b8f5

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Client/mods/deathmatch/logic/CClientPed.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -465,15 +465,18 @@ class CClientPed : public CClientStreamElement, public CAntiCheatModule
465465
CAnimBlendAssociation * GetAnimation ( AnimationId id );
466466
CAnimBlendAssociation * GetFirstAnimation ( void );
467467

468-
bool isNextAnimationCustom ( ) { return m_bisNextAnimationCustom; }
469-
void setNextAnimationCustom ( const SString & strBlockName, const SString & strAnimationName ) { m_bisNextAnimationCustom = true; m_strCustomIFPBlockName = strBlockName; m_strCustomIFPAnimationName = strAnimationName; }
470-
void setCurrentAnimationCustom ( bool bCustom ) { m_bisCurrentAnimationCustom = bCustom; }
468+
inline bool isNextAnimationCustom ( ) { return m_bisNextAnimationCustom; }
469+
inline void setNextAnimationCustom ( const SString & strBlockName, const SString & strAnimationName ) { m_bisNextAnimationCustom = true; m_strCustomIFPBlockName = strBlockName; m_strCustomIFPAnimationName = strAnimationName; }
470+
inline void setCurrentAnimationCustom ( bool bCustom ) { m_bisCurrentAnimationCustom = bCustom; }
471+
inline bool IsCurrentAnimationCustom ( void ) { return m_bisCurrentAnimationCustom; }
472+
inline SIFPAnimations * GetIFPAnimationsPointer ( void ) { return m_pIFPAnimations; }
473+
inline void SetIFPAnimationsPointer ( SIFPAnimations * pIFPAnimations ) { m_pIFPAnimations = pIFPAnimations; }
471474

472475
// This will indicate that we have played custom animation, so next animation can be internal GTA animation
473476
// You must call this function after playing a custom animation
474-
void setNextAnimationNormal ( void ) { m_bisNextAnimationCustom = false; }
475-
const SString & GetNextAnimationCustomBlockName ( void ) { return m_strCustomIFPBlockName; }
476-
const SString & GetNextAnimationCustomName ( void ) { return m_strCustomIFPAnimationName; }
477+
inline void setNextAnimationNormal ( void ) { m_bisNextAnimationCustom = false; }
478+
inline const SString & GetNextAnimationCustomBlockName ( void ) { return m_strCustomIFPBlockName; }
479+
inline const SString & GetNextAnimationCustomName ( void ) { return m_strCustomIFPAnimationName; }
477480

478481
void ReplaceAnimation ( CAnimBlendHierarchy * pInternalAnimHierarchy, CClientIFP * pIFP, CAnimBlendHierarchySAInterface * pCustomAnimHierarchy );
479482
void RestoreAnimation ( CAnimBlendHierarchy * pInternalAnimHierarchy );
@@ -681,6 +684,7 @@ class CClientPed : public CClientStreamElement, public CAntiCheatModule
681684
bool m_bisCurrentAnimationCustom;
682685
SString m_strCustomIFPBlockName;
683686
SString m_strCustomIFPAnimationName;
687+
SIFPAnimations * m_pIFPAnimations;
684688

685689
// Key: Internal GTA animation, Value: Custom Animation
686690
ReplacedAnim_type m_mapOfReplacedAnimations;

0 commit comments

Comments
 (0)