#include "functions.h"
#include "CA_classes.h"
void hacks()
{
for(;;)
{
while(GetAsyncKeyState(VK_NUMPAD1))
{
hover(500.0f);
Sleep(10);
}
Sleep(30);
}
}
void setup()
{
DWORD dwClientFxEntry;
dwClientFxEntry = (DWORD)GetModuleHandle( "Clientfx.fxd" );
DWORD dwClass = *(DWORD*)( dwClientFxEntry + 0x66F34 );
ADR_X = ( dwClass + 0xC8 );
ADR_Y = ( dwClass + 0xCC );
ADR_Z = ( dwClass + 0xD0 );
}
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void thread()
{
while( !IsGameReadyForHook() )
Sleep(100);
setup();
hacks();
}
--------------------------- functions.h ----------------------------------
void hover( float height ) //only function u need to see
{
*(float*)(ADR_Z) = height;
}

*(float*)(ADR_Z) += height;