View Single Post
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-08-2015 , 13:06   Re: StudioSetupBones Fix for CS
Reply With Quote #18

I really doubt why do you hook StudioSetupBones from engine (maybe you want to get function address but you don't know without hooking it? lol), but you actually are doing nothing. An also, wrong parameters are passed

Quote:
#ifdef _WIN32
void __cdecl FuncStudioSetupBones_EngineHook( struct model_s *pModel, float frame,int sequence,const vec3_t angles,const vec3_t origin,const byte *pcontroller,const byte *pblending, edict_t * pEdict, signed int iBone )
#else
void FuncStudioSetupBones_EngineHook( struct model_s *pModel, float frame,int sequence,const vec3_t angles,const vec3_t origin,const byte *pcontroller,const byte *pblending, edict_t * pEdict, signed int iBone )
#endif
{
if( FuncStudioSetupBonesEngineHook->Restore() )
{
FuncStudioSetupBonesEngineOrig(pModel,frame,s equence,angles,origin,pcontroller,pblending,iBone,pEdict);
FuncStudioSetupBonesEngineHook->Patch();
}
}
This has not been fixed on CS binaries, right?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline