Need help with DrawModelExecute
Hey, I'm trying to hook DrawModelExecute. And in my hook, when i dont call the original one, I wont crash but obviously all my models are invisible. So when i try to call the original like i do with other hooks, my game just crashes. Attaching a debugger, I'm getting "Exception thrown at 0x0C9FBD96 (engine.dll) in csgo.exe: 0xC0000005: Access violation reading location 0x000A0503.
Don't really know what that's suposed to mean.
Anyways, here's my hook.
void __stdcall Hooks::Hooked_DrawModelExecute(void* context, void* state, const ModelRenderInfo_t &pInfo, SourceEngine::matrix3x4_t *pCustomBoneToWorld)
{
oDrawModelExecute(context, state, pInfo, pCustomBoneToWorld);
}
Thanks in advance
Don't really know what that's suposed to mean.
Anyways, here's my hook.
void __stdcall Hooks::Hooked_DrawModelExecute(void* context, void* state, const ModelRenderInfo_t &pInfo, SourceEngine::matrix3x4_t *pCustomBoneToWorld)
{
oDrawModelExecute(context, state, pInfo, pCustomBoneToWorld);
}
Thanks in advance

