@@ -152,26 +152,29 @@ class CAnimManagerSA : public CAnimManager
152
152
CAnimBlendHierarchy * GetAnimBlendHierarchy ( CAnimBlendHierarchySAInterface * pInterface );
153
153
154
154
bool isGateWayAnimationHierarchy ( CAnimBlendHierarchySAInterface * pInterface );
155
+ const SString & GetGateWayBlockName ( void );
156
+ const SString & GetGateWayAnimationName ( void );
155
157
156
158
// This is used in AddAnimationHandler and AddAnimationAndSyncHandler for playing
157
159
// 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 );
161
163
162
164
private:
163
165
CAnimBlendAssocGroup * m_pAnimAssocGroups [ MAX_ANIM_GROUPS ];
164
166
CAnimBlendHierarchy * m_pAnimations [ MAX_ANIMATIONS ];
165
167
CAnimBlock * m_pAnimBlocks [ MAX_ANIM_BLOCKS ];
166
168
std::list < CAnimBlendAssociation * > m_Associations;
167
- ClumpMap_type m_mapOfPedClumps ;
169
+ ClumpMap_type m_mapOfPedPointers ;
168
170
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
170
172
// 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" ;
175
178
const SString m_kGateWayAnimationName = " run_wuzi" ;
176
179
177
180
};
0 commit comments