@@ -152,26 +152,29 @@ class CAnimManagerSA : public CAnimManager
152152 CAnimBlendHierarchy * GetAnimBlendHierarchy ( CAnimBlendHierarchySAInterface * pInterface );
153153
154154 bool isGateWayAnimationHierarchy ( CAnimBlendHierarchySAInterface * pInterface );
155+ const SString & GetGateWayBlockName ( void );
156+ const SString & GetGateWayAnimationName ( void );
155157
156158 // This is used in AddAnimationHandler and AddAnimationAndSyncHandler for playing
157159 // custom animations and to help in replacing and restoring animations
158- void InsertPedClumpToMap ( RpClump * pClump, CClientPed * pClientPed );
159- void RemovePedClumpFromMap ( RpClump * pClump );
160- CClientPed * GetClientPedFromClumpMap ( RpClump * pClump );
160+ void InsertPedPointerToMap ( RpClump * pClump, CClientPed * pClientPed );
161+ void RemovePedPointerFromMap ( RpClump * pClump );
162+ CClientPed * GetPedPointerFromMap ( RpClump * pClump );
161163
162164private:
163165 CAnimBlendAssocGroup * m_pAnimAssocGroups [ MAX_ANIM_GROUPS ];
164166 CAnimBlendHierarchy * m_pAnimations [ MAX_ANIMATIONS ];
165167 CAnimBlock * m_pAnimBlocks [ MAX_ANIM_BLOCKS ];
166168 std::list < CAnimBlendAssociation * > m_Associations;
167- ClumpMap_type m_mapOfPedClumps ;
169+ ClumpMap_type m_mapOfPedPointers ;
168170
169- // This animation name will allow us to play custom animations by simply playing this animation
171+ // This "gateway" animation will allow us to play custom animations by simply playing this animation
170172 // and then in AddAnimation and AddAnimationAndSync hook, we can return our custom animation in the
171- // hook instead of run_wuzi. This will trick GTA SA into thinking that it is playing run_wuzi, but in
172- // reality, it's playing our custom animation, and Of course, we can return run_wuzi animation within
173- // the hook if we want to play it instead. Why run_wuzi? We can also use another animation, but I've
174- // tested with this one mostly, so let's stick to this.
173+ // hook instead of run_wuzi. This will trick GTA SA into thinking that it is playing run_wuzi from
174+ // ped block, but in reality, it's playing our custom animation, and Of course, we can return run_wuzi
175+ // animation within the hook if we want to play it instead. Why run_wuzi? We can also use another animation,
176+ // but I've tested with this one mostly, so let's stick to this.
177+ const SString m_kGateWayBlockName = " ped" ;
175178 const SString m_kGateWayAnimationName = " run_wuzi" ;
176179
177180};
0 commit comments