Help me please
Guyz i had no recoil working before but not working now whats wrong with my no recoil in my code?
Code:
#include "stdafx.h"
#define LTClient_Adress 0x377CC790
#include <windows.h>
//lol u put sleep on 1 and speed on other//w
const int iRenderSpeed = 50;
bool Memoria( void * pDest, char * szPatch, size_t sSize )//NOP Function
{
DWORD dwOrgProtect = NULL;
if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
return FALSE;
memcpy( pDest, szPatch, sSize );
VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
return TRUE;
}
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )( LTClient_Adress );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
void main()
{
while(true)
{
PushToConsole("ShowFps 1");
PushToConsole("SkelModelStencil 1");
PushToConsole("DrawParticles 0");
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");
char* pushCmd;
pushCmd=("PlayerGravity -800");
PushToConsole( pushCmd );
if( GetAsyncKeyState( 30 ) < 0 ){
pushCmd=("PlayerGravity 800");
PushToConsole( pushCmd );
}else{
pushCmd=("PlayerGravity -800");
PushToConsole( pushCmd );
}
}
memcpy((LPVOID)0x3741B720, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3741B734, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3741B737, "\x90\x90\x90\x90\x90\x90", 3);
memcpy((LPVOID)0x3741B740, "\x90\x90\x90", 3);
Sleep(iRenderSpeed);
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(25);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
if( MessageBox(0, TEXT("Inject Hack Now?"), TEXT("wassup40"), MB_YESNO)==IDYES){
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
}


maybe it will work longer if the whole world is using add esp, 4 ;-) But ok if its working for you