this is my first hack attempt with the help of CN's tut, and others, i had some of it working 5 mins ago, but i changed some stuff to get things to work but now nothing works
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void PushToConsole(const char* Command) {
DWORD CNADDIE = 0x007d9200;
void* Send = ( void* )*( DWORD* )(CNADDIE);
__asm
{
push Command;
call Send;
add esp, 4;
}
}
void main()
{
while(true)
{
PushToConsole("DyingTime 0");
PushToConsole("DeadCameraTime 0");
}
{
PushToConsole("SkelModelStencil -1" );
}
{
PushToConsole("FogEnable 0" );
}
{
PushToConsole("ModelDebug_DrawBoxes 0");
}
{
PushToConsole("ActivationDistance 1000000" );
}
{
PushToConsole("ReloadSpeed 0.000000" );
}
{
PushToConsole("PerturbRotationEffect 0.000000" );
PushToConsole("PerturbIncreaseSpeed 0.000000" );
PushToConsole("PerturbWalkPercent 0.000000" );
PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
PushToConsole("PerturbRecoil 0.000000" );
PushToConsole("FireMovePerturb 0.000000" );
PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
PushToConsole("ZoomedFireMovePerturb 0.000000" );
PushToConsole("ZoomedFireDuckPerturb 0.000000" );
}
{
PushToConsole("CamMaxPosYOffset 200.000000");
PushToConsole("DuckDownCamOffSet 1000.000000");
}
{
PushToConsole("ShowHitSphere 0.000000" );
}
{
PushToConsole("FireSpeed 0.0" );
}
}
DWORD WINAPI dwHackThread(LPVOID){
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
any help would get appreciated