Results 1 to 6 of 6
  1. #1
    moathebest's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    308
    Reputation
    17
    Thanks
    249
    My Mood
    Paranoid

    Need Help Coding CF Hack !!

    Well i made a code for C++ (CrossFire) and i updated all the addys and offsets and debugged and there were no error and when i start the game the message box appears normally but nothing happens in the game should i post the code here or u guys will be able to help me without a code Arr
    Well it contains "No Recoil" and in the game it is normal Recoil..
    Code:



    Code:
    #include "stdafx.h"
    #define WeaponMgr 0xA68F90
    #define norecoil1   0x258C  
    #define norecoil2   0x1928
    #define norecoil3   0x192C
    #define norecoil4   0x1930
    #define norecoil5   0x2520
    #define norecoil6   0x2594
    #define norecoil7   0x2590
    #define norecoil8   0x26A4
    DWORD WINAPI Hacks(LPVOID) 
    {
    
    bool norecoil = true; 
    
    
    while(1)
    {
    DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
    
    if(norecoil1)
    {
    if (pWeaponMgr)
    {
    for (int y=0; y<560; y++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*y)) ) != NULL )
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + 0x258C) = 0.0f;
    }
    
    }
    }
    if(norecoil2)
    {
    if (pWeaponMgr)
    {
    for(int y=0; y<560; y++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*y)) ) != NULL )
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + 0x1928) = 0.0f;
    }
    
    }
    }
    if(norecoil3)
    {
    if (pWeaponMgr)
    {
    for(int y=0; y<560; y++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*y)) ) != NULL )
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + 0x192C) = 0.0f;
    }
    
    }
    }
    if(norecoil4)
    {
    if (pWeaponMgr)
    {
    for(int y=0; y<560; y++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*y)) ) != NULL )
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + 0x1930) = 0.0f;
    }
    
    }
    }
    if(norecoil5)
    {
    if (pWeaponMgr)
    {
    for(int y=0; y<560; y++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*y)) ) != NULL )
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + 0x2520) = 0.0f;
    }
    
    }
    }
    if(norecoil6)
    {
    if (pWeaponMgr)
    {
    for(int y=0; y<560; y++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*y)) ) != NULL )
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + 0x2594) = 0.0f;
    }
    
    }
    }
    if(norecoil7)
    {
    if (pWeaponMgr)
    {
    for(int y=0; y<560; y++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*y)) ) != NULL )
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + 0x2590) = 0.0f;
    }
    
    }
    }
    if(norecoil8)
    {
    if (pWeaponMgr)
    {
    for (int y=0; y<560; y++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*y)) ) != NULL )
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + 0x26A4) = 0.0f;
    }
    
    }
    }
    Sleep(100);
    }
    
    }
    
    bool Ready2Hook()
    {
    if(GetModuleHandleA("CShell.dll") != NULL
    && GetModuleHandleA("ClientFx.fxd") != NULL)
    return 1;
    return 0;
    }
    
    DWORD WINAPI Wait(LPVOID)
    {
    while(!Ready2Hook()) Sleep(200);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
    return 0;
    }
    
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    
    MessageBoxA(0, "Credits- Moathebest V2","Beta Hack", 0);
    
    
    CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
    }
    return 1;
    }
    Last edited by Hassan; 11-25-2011 at 05:58 AM. Reason: Added code tags.

  2. #2
    moathebest's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    308
    Reputation
    17
    Thanks
    249
    My Mood
    Paranoid
    thx but it is still Normal Recoil in the game it didnt work....
    V4 The best Release..No joke... 4 More Features!! Here is the link

    https://www.mpgh.net/forum/175-crossf...ures-best.html


  3. #3
    Hexicidal˛'s Avatar
    Join Date
    Jul 2011
    Gender
    male
    Location
    Milky Road
    Posts
    1,042
    Reputation
    64
    Thanks
    1,576
    My Mood
    Fine
    Quote Originally Posted by moathebest View Post
    thx but it is still Normal Recoil in the game it didnt work....
    No recoil is patched

  4. #4
    PiNKYPiE's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    PiNKIEPiE <3
    Posts
    163
    Reputation
    -6
    Thanks
    7
    My Mood
    Pensive
    Quote Originally Posted by SH-Backup View Post


    No recoil is patched
    nope its not

  5. #5
    .::SCHiM::.'s Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    733
    Reputation
    180
    Thanks
    880
    My Mood
    Twisted
    Guys, the cpp section doesn't mind game-specific questions. But take the patched/unpatched discussions back to the designated sections. It has nothing to do with cpp and the discussions are generaly unproductive and fuel trolls and flamers.

    @op

    The only thing I can think of is that the recoil address is wrong,or you're not using the right bytes. Try searching for the bytes to replace and then try again if you're sure it's the right address.
    Last edited by .::SCHiM::.; 11-26-2011 at 03:38 AM.

    I'm SCHiM

    Morals derive from the instinct to survive. Moral behavior is survival behavior above the individual level.

    Polymorphic engine
    Interprocess callback class
    SIN
    Infinite-precision arithmetic
    Hooking dynamic linkage
    (sloppy)Kernel mode Disassembler!!!

    Semi debugger




  6. #6
    maxpower439's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Hell
    Posts
    409
    Reputation
    12
    Thanks
    79
    My Mood
    Hungover
    @SH-Backup Nup check Team rev v5 = perfect norecoil spread!
    Life Is Simple , We Complicate It.


Similar Threads

  1. [Help Request] i need help whit simpson hack
    By bloodzor in forum CrossFire Help
    Replies: 9
    Last Post: 08-22-2011, 03:18 AM
  2. [Help Request] Need help with these hacks..
    By mgelmo11 in forum Vindictus Help
    Replies: 4
    Last Post: 07-28-2011, 10:50 PM
  3. [Help Request] i need help with the hack im using
    By kingster626 in forum Combat Arms Help
    Replies: 12
    Last Post: 06-18-2011, 10:15 PM
  4. [Help Request] I need Help With CAEU Hacks
    By ♪ςander!♪ in forum Combat Arms EU Help
    Replies: 3
    Last Post: 06-08-2011, 03:47 AM
  5. Need help with ammo hack
    By AthlaS in forum WarRock - International Hacks
    Replies: 4
    Last Post: 01-19-2006, 01:50 PM