File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Client/mods/deathmatch/logic Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -454,6 +454,13 @@ class CClientPed : public CClientStreamElement, public CAntiCheatModule
454
454
CAnimBlendAssociation * GetAnimation ( AnimationId id );
455
455
CAnimBlendAssociation * GetFirstAnimation ( void );
456
456
457
+ bool isNextAnimationCustom ( ) { return m_bisNextAnimationCustom; }
458
+ void setNextAnimationCustom ( const SString & strBlockName, const SString & strAnimationName ) { m_bisNextAnimationCustom = true ; m_strCustomIFPBlockName = strBlockName; m_strCustomIFPAnimationName = strAnimationName; }
459
+
460
+ // This will indicate that we have played custom animation, so next animation can be internal GTA animation
461
+ // You must call this function after playing a custom animation
462
+ void setNextAnimationNormal ( void ) { m_bisNextAnimationCustom = false ; }
463
+
457
464
protected:
458
465
// This constructor is for peds managed by a player. These are unknown to the ped manager.
459
466
CClientPed ( CClientManager* pManager, unsigned long ulModelID, ElementID ID, bool bIsLocalPlayer );
@@ -647,6 +654,12 @@ class CClientPed : public CClientStreamElement, public CAntiCheatModule
647
654
648
655
CVector m_vecPrevTargetPosition;
649
656
uint m_uiForceLocalCounter;
657
+
658
+ // This is checked within AddAnimation and AddAnimationAndSync
659
+ // It is set to false when custom animation is played.
660
+ bool m_bisNextAnimationCustom;
661
+ SString m_strCustomIFPBlockName;
662
+ SString m_strCustomIFPAnimationName;
650
663
};
651
664
652
665
#endif
You can’t perform that action at this time.
0 commit comments