Note thats is leeched from GP, I'm posting it here because i want some1 that try to make 1 or just say if it's working...
I don't know if this is already posted but i already tried "serch button"
For doing this you will need : D3D starterkit 3.0 (attached) and VC ++ 6
Virus scan of the starter kit 3.0
Ok first of all open starterkit folder then open d3d9 folder, Copy the 2 files called: TatniumD3D.dsw and .dsp from old_workspace folder and paste it in the d3d9 folder.
Now open TatniumD3D.dsw with VC ++ 6. Then look in d3d9dev.cpp for : #define D3DHOOK_TEXTURES, put right under it
Code:
float ScreenCenterX = 0.0f;
float ScreenCenterY = 0.0f;
bool crosshair = false;
D3DCOLOR color = D3DCOLOR_XRGB( 200, 0, 0 ); // Add your own values if you want....
Now press Ctrl + F and search for SetViewport
And again write under right under : HRESULT APIENTRY hkIDirect3DDevice9::SetViewport(CONST D3DVIEWPORT9 *pViewport)
{
That
Code:
ScreenCenterX = ( float )pViewport->Width / 2;
ScreenCenterY = ( float )pViewport->Height / 2;
This should lokk like :
Code:
HRESULT APIENTRY hkIDirect3DDevice9::SetViewport(CONST D3DVIEWPORT9 *pViewport)
{
ScreenCenterX = ( float )pViewport->Width / 2;
ScreenCenterY = ( float )pViewport->Height / 2;
return m_pD3Ddev->SetViewport(pViewport);
}
Now Press Ctrl + F again and search for EndScene
Put
Code:
if(crosshair)
{
D3DRECT rec2 = {ScreenCenterX-20, ScreenCenterY, ScreenCenterX+ 20, ScreenCenterY+2};
D3DRECT rec3 = {ScreenCenterX, ScreenCenterY-20, ScreenCenterX+ 2,ScreenCenterY+20};
m_pD3Ddev->Clear(1, &rec2, D3DCLEAR_TARGET,color, 0, 0);
m_pD3Ddev->Clear(1, &rec3, D3DCLEAR_TARGET,color, 0, 0);
}
In EndScene
Finish, now for the hotkey ....
Put
Code:
if( GetAsyncKeyState( VK_Insert ) & 1 )
{
crosshair = !crosshair;
}
in endspace or beginspace they are both working.
Built it and your done, i tried this but i had 6 errors
I also find a fps rate, Some guy here released that menu+Fps rate and everyone thought he was releasing a hack in GP.
They say it's easy
Just pick the source of the menu (i released in her)
And put this source into it:
Code:
//includes
#include <time.h>
//globals
float fFps = 0.0f;
float fLastTickCount = 0.0f;
float fCurrentTickCount;
char cFrameRate[50] = {0};
//Do the rest in EndScene
HRESULT APIENTRY IDirect3DDevice9::EndScene()
{
fCurrentTickCount = clock() * 0.001f;
++fFps;
if((fCurrentTickCount - fLastTickCount) > 1.0f)
{
fLastTickCount = fCurrentTickCount;
sprintf(cFrameRate, "[ FPS: %d ]", int(fFps));
fFps = 0;
}
return Device->EndScene();
}
I hope it helpful and pleae don't flame me, thanks me if you want and please any1 try to make that crosshair