Since I'm renewing my hack atm, I want to use DrawModelEx instead of D3D hooks. In PaintTraverse hook I use the following (thanks to aVitamin!):
__asm { PUSH allowForce PUSH forceRepaint PUSH vguiPanel MOV ECX, pPanel CALL pPaintTraverse }
Here is how it _should_ be:
int iReturn = 0; __asm { PUSH pInfo MOV ECX, pModelRender CALL pDrawModelEx // copy <data>, iReturn } return iReturn;
Comment