Skip to content

Commit bba1a39

Browse files
committed
added typedef of CAnimBlendAssocGroup::CopyAnimation and changed return type of StaticAddAnimationHandler and AddAnimationHandler to CAnimBlendAssociation *
1 parent d860cb8 commit bba1a39

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Client/mods/deathmatch/logic/CClientGame.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@
5555
#include "CVoiceRecorder.h"
5656
#include "CSingularFileDownloadManager.h"
5757
#include "CObjectRespawner.h"
58+
59+
typedef CAnimBlendAssociation * ( __thiscall * hCAnimBlendAssocGroup_CopyAnimation )
60+
(
61+
CAnimBlendAssocGroupSAInterface * pThis,
62+
AnimationId AnimID
63+
);
64+
5865
#define HeliKill_List_Clear_Rate 500
5966
#define MIN_PUSH_ANTISPAM_RATE 1500
6067
#define INVALID_DOWNLOAD_PRIORITY_GROUP (INT_MIN)
@@ -502,7 +509,7 @@ class CClientGame
502509
static void StaticPostWorldProcessHandler ( void );
503510
static void StaticPreFxRenderHandler ( void );
504511
static void StaticPreHudRenderHandler ( void );
505-
static void StaticAddAnimationHandler ( RpClump * pClump, AssocGroupId animGroup, AnimationId animID );
512+
static CAnimBlendAssociation * StaticAddAnimationHandler ( RpClump * pClump, AssocGroupId animGroup, AnimationId animID );
506513
static void StaticBlendAnimationHandler ( RpClump * pClump, AssocGroupId animGroup, AnimationId animID, float fBlendDelta );
507514
static bool StaticProcessCollisionHandler ( CEntitySAInterface* pThisInterface, CEntitySAInterface* pOtherInterface );
508515
static bool StaticVehicleCollisionHandler ( CVehicleSAInterface* pThisInterface, CEntitySAInterface* pOtherInterface, int iModelIndex, float fDamageImpulseMag, float fCollidingDamageImpulseMag, uint16 usPieceType, CVector vecCollisionPos, CVector vecCollisionVelocity );
@@ -533,7 +540,7 @@ class CClientGame
533540
bool ChokingHandler ( unsigned char ucWeaponType );
534541
void PreWorldProcessHandler ( void );
535542
void PostWorldProcessHandler ( void );
536-
void AddAnimationHandler ( RpClump * pClump, AssocGroupId animGroup, AnimationId animID );
543+
CAnimBlendAssociation * AddAnimationHandler ( RpClump * pClump, AssocGroupId animGroup, AnimationId animID );
537544
void BlendAnimationHandler ( RpClump * pClump, AssocGroupId animGroup, AnimationId animID, float fBlendDelta );
538545
bool ProcessCollisionHandler ( CEntitySAInterface* pThisInterface, CEntitySAInterface* pOtherInterface );
539546
bool VehicleCollisionHandler ( CVehicleSAInterface* pCollidingVehicle, CEntitySAInterface* pCollidedVehicle, int iModelIndex, float fDamageImpulseMag, float fCollidingDamageImpulseMag, uint16 usPieceType, CVector vecCollisionPos, CVector vecCollisionVelocity );

0 commit comments

Comments
 (0)