Simple No Recoil

Posts 1–15 of 16 · Page 1 of 2
Simple No Recoil
Enjoy

Code:
#include <Windows.h>

struct localweaponinfo_t
{
    BYTE Unknown0[72];
    FLOAT Recoil[9]; 
};

localweaponinfo_t* localweaponinfo = ( localweaponinfo_t* )0x79E700;

BOOL WINAPI RecoilThread( VOID* lpArguments )
{
    while( TRUE )
    {
        for( INT i = 0; i < 9; i++ )
            localweaponinfo->Recoil[i] = 0.0f;

        Sleep( 1 );
    }

    return TRUE;
}

BOOL WINAPI DllMain( HMODULE hModule, DWORD Reason, VOID* Reserved )
{
    if( Reason == DLL_PROCESS_ATTACH )
        CreateThread( NULL, 0, ( LPTHREAD_START_ROUTINE )RecoilThread, NULL, 0, NULL );

    return TRUE;
}
Credits: R4z8r
Thank you for contributing

And it's great that you provided credits
How would you change it to 50% less recoil, for example? 0.5? What number would you change to?
50% does not allow. is a simple no recoil 100% only.
if you want less recoil need to modify the code for you.
so where do i put this? sry im new to this stuff
Quote Originally Posted by RenaRyuugu View Post
so where do i put this? sry im new to this stuff
You need to know C++, and need something to compile this code in. (Visual C++ Epxress | Code Block or something)
OMG This is gonna lag like hell @_@
Code:
#include <Windows.h>

struct localweaponinfo_t
{
    BYTE Unknown0[72];
    FLOAT Recoil[9]; 
};

localweaponinfo_t* localweaponinfo = ( localweaponinfo_t* )0x79E700;

BOOL WINAPI RecoilThread( VOID* lpArguments )
{
    while( TRUE )
    {
        for( INT i = 0; i < 9; i++ )
            localweaponinfo->Recoil[i] = 0.0f;

        Sleep( 1000 ); //Sleeping every one millisecond? Do you change weapons 1000 times per second?
    }

    return TRUE;
}

BOOL WINAPI DllMain( HMODULE hModule, DWORD Reason, VOID* Reserved )
{
    if( Reason == DLL_PROCESS_ATTACH )
        CreateThread( NULL, 0, ( LPTHREAD_START_ROUTINE )RecoilThread, NULL, 0, NULL );

    return TRUE;
}
How to handle the address
Thank you for contributing
Quote Originally Posted by rupper999 View Post
where do you paste that?
Are you serious.
Thank you, is there a way to make it work on Mac?
where and how do you activate those ?
Quote Originally Posted by legendairy View Post
where and how do you activate those ?
Make a dll w/ the code and inject w/ dll injector or something.... in the cod4

PS: is detected, but you can do it undetc...
What to do with this code?
and where to paste it?
plz help.. m not familiar of these thing..
but i know c,c++
Posts 1–15 of 16 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us