Simple D3D9 Aimbot

Posts 46–51 of 51 · Page 4 of 4
dis work on heroes and generals?

- - - Updated - - -

How would i make this work for heroes and generals ?
Quote Originally Posted by visloom28vi View Post
dis work on heroes and generals?

- - - Updated - - -

How would i make this work for heroes and generals ?
it does, look here: http://www.mpgh.net/forum/showthread.php?t=954443

Code:
..
//heroes and generals
D3DXMATRIX ProjMatrix, ViewMatrix, WorldMatrix;
D3DXVECTOR3 VectorMiddle(0, 0, 0), ScreenMiddle(0, aimheight, 0);
D3DVIEWPORT9 Viewport;
Device->GetViewport(&Viewport);
Device->GetVertexShaderConstantF(204, ProjMatrix, 4);
Device->GetVertexShaderConstantF(223, ViewMatrix, 4);

D3DXMatrixIdentity(&WorldMatrix);
D3DXMatrixTranspose(&ViewMatrix, &ViewMatrix);
D3DXMatrixTranspose(&ProjMatrix, &ProjMatrix);

D3DXVec3Project(&VectorMiddle, &ScreenMiddle, &Viewport, &ProjMatrix, &ViewMatrix, &WorldMatrix);
..
sry, but how launch it under world of warships game? inject compiled dll - only some red squars in random places, mb its wrong Stride/numvert? i tried some dx9 loggers - no way,each defind different stride.
Quote Originally Posted by greatHAXOR View Post
sry, but how launch it under world of warships game? inject compiled dll - only some red squars in random places, mb its wrong Stride/numvert? i tried some dx9 loggers - no way,each defind different stride.
using stride/numvert would be fine but w2s is completely different in world of warships, I dumped the shader and tried to do w2s but failed
Code:
?
Device->GetVertexShaderConstantF(5, g_viewProj, 4);
Device->GetVertexShaderConstantF(9, g_view, 3);
?
do you mean the other coordinate system or other d3dx9 functions for drawing world?
Any idea why this doesn't work for Source Engine Games?.
Posts 46–51 of 51 · Page 4 of 4
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us