SF 1 Tricks Source

Discussion in 'C and C++' started by Jhunz1337, Dec 21, 2016.

  1. I want to share my Source


    The AddRs and OFFSets, i set to 0x0(
    Cuz OutDated) i Hope You can find it :D Good Luck


    OWN RISK

    for Main.cpp
    Code:
    #include <windows.h>
    
    #define ADR_PROXY 0x004B0E9C 
    template <typename T> __declspec(naked) T _cdecl ProxyCall(LPVOID Target, UINT NumberOfParams,LPVOID ProxyFFD5, ...)
    {
        __asm mov edx, esp; // stackframe on edx - edx points now to the return adress - Target, NumberOfParams, ProxyFFD5, Params after.
        __asm push esp; // save esp
        __asm push ebp; // save ebp
        __asm push esi; // save esi
    
        __asm lea esi, [edx+8]; // Points to NumberOfParams
        __asm mov ecx, [esi]; // Get Number Of Params
        __asm inc ecx; // Also push ProxyFFD5
    
    PushParams:
        __asm mov eax, [esi+ecx*4]; // Get Parameter from right to left
        __asm push eax; // and push them on the stack
        __asm loop PushParams; // Repeat until all params pushed (ecx != 0) - Stack is done after this
    
        __asm mov ebp, ReturnHere; // Mov Returnadress into ebp to be called by proxy
        __asm mov eax, [edx+4]; // Get Target
        __asm jmp eax; // jump to target
    
    ReturnHere:
        __asm add esp, 4; // remove return address from Proxy
        __asm pop esi; // restore esi
        __asm pop ebp; // restore ebp
        __asm pop esp; // restore stack
        __asm retn; // return
    } 
    void Damage()
    {
    
    //*(double*)0x000 = 10.000000f; //Maximum, If auto on: expect lag.
    //Want to add hotkey? Like if you press left mouse:
    
    if(ProxyCall<SHORT>(&GetAsyncKeyState,1,(void*)ADR_PROXY,VK_LBUTTON)) // Left Mouse Click < VK_LBUTTON
    {
    *(double*)0x000 = 10.000000f; //Maximum, you can set it to 99999 if you want.
    }
    } 
    void Player()
    {
    DWORD x1 = *(PDWORD)0x0;
        if(x1)
        {
            x1 = *(PDWORD)(x1 + 0x00);
            if(x1)
            {
                x1 = *(PDWORD)(x1 + 0x0);
                if(x1)
                {
                    x1 = *(PDWORD)(x1 + 0x0);
                    if(x1)
                    {
                        x1 = *(PDWORD)(x1 + 0x0);
                        if(x1)
                        {
                           if(ProxyCall<SHORT>(&GetAsyncKeyState,1,(void*)ADR_PROXY,0x57)) //0x57 = >> W <<
                            {
                            *(FLOAT*)(x1 + 0x0) = 1000.0f;//Speed Hack
                           }
                            if(ProxyCall<SHORT>(&GetAsyncKeyState,1,(void*)ADR_PROXY,VK_SPACE))// SpaceBar < VK_SPACE
                            {
                           *(FLOAT*)(x1 + 0x0) = 10;//S.Jump
                            }
                        }
                    }
                }
            }
        }
    } 
    void ShootWalls()
    {
    //will be released after a while, I'll just update :)
    } 
    void Ammo()
    {
    DWORD x1 = *(PDWORD)0x0000;
        if(x1)
        {
            x1 = *(PDWORD)(x1 + 0x0000);
            if(x1)
            {
             if(ProxyCall<SHORT>(&GetAsyncKeyState,1,(void*)ADR_PROXY,VK_END)) // END key
    //           {
                *(PDWORD)(x1 + 0x00) = 1;//Rapid Knife
                *(PDWORD)(x1 + 0x0) = 59;//Ammo (59 - 29 = 30 //Your ammo will be 30)
                *(PDWORD)(x1 + 0x0) = 10100;//Rapid Fire
        //        }
            }
        }
    } 
    
    void NoRecoil()
    {
    DWORD x1 = *(PDWORD)0x0;
    if (x1)
    {
        x1 = *(PDWORD)(x1 + 0x0);
        if (x1)
        {
            x1 = *(PDWORD)(x1 + 0x0);
            if (x1)
            {
                x1 = *(PDWORD)(x1 + 0x0);
                if (x1)
                {
                    x1 = *(PDWORD)(x1 + 0x0);
                    if (x1)
                    {
                        *(PDWORD)(x1 + 0x00) = 0;
                        *(PDWORD)(x1 + 0x00) = 0;
                    }
                }
            }
        }
    }
    } 
    
    
    
    
    DWORD WINAPI Main(LPVOID Param)
    {
    while(1)
    {
    //call your hax
    Damage();
    NoRecoil();
    Player();
    Ammo();
    ShootWalls();
    
    ProxyCall<void>(&Sleep,1,(void*)ADR_PROXY,50);
    }
    return false;
    }
    BOOL WINAPI DllMain(HMODULE hDll,DWORD Reason,LPVOID lpReserved)
    {
        if(Reason == DLL_PROCESS_ATTACH)
        {
            CloseHandle(CreateThread(0,0,Main,0,0,0));
            return TRUE;
        }
        return FALSE;
    }  

    Gecko
    Shad0w_
    Zen_Barbie / Casper / Zen
    Ponzi
    Tutorial
    UnknownPK
    SilverDeath
     
  2. Great,, X3 Isn't detected if use Manual Mapping HAHAH :D
     
    troy2099 and Jhunz1337 like this.
  3. How to update this code?
    #define ADR_PROXY 0x004B0E9C
     
  4. already updated 0x004B0E9C < :happy:
     
  5. Another useful tricks :p

    Code:
    if (EXP)
        {
           
            if ((*(PDWORD)0x868898) == 1011) 
            {
                (*(PDWORD)0x868898) = 16011; 
            }
            EXP = false;
        }
     
  6. how can I use any of that cheats ?
     
  7. Update ADR_PROXY : 00508BA3

    How I found it ? Search for FF D5 (Byte)
    - steb
     
  8. How to use it? Should I code it in c++ to update the exp hack?
     
  9. i need the right offset para sa no recoil. kasi sa sniper nag bubug :(
     

Share This Page