Benvenuto! Per postare e godere delle funzionalità del forum registrati, occorrono pochi secondi ed è gratis!

[Address] ?

maurow
Messaggi: 6,041
Discussioni: 2,066
Registrato: 03-2011
Mix: 8,107
Spoiler:


#include <Windows.h>
#include "Addys.h"
#include "2012Patch.h"
#include "Variablen.h"


DWORD *ingame = (DWORD*)ADR_PLAYERPOINTER;
DWORD *outgame = (DWORD*)ADR_SERVERPOINTER;

void PlayerHacks()
{
DWORD pp = *(DWORD*)ADR_PLAYERPOINTER;
if(pp != 0)
{


/* SuperJump*/
if (GetAsyncKeyState(VK_UP)&1) superjump += 500;
if (GetAsyncKeyState(VK_DOWN)&1) superjump -= 500;
if (superjump<500) superjump = 500;
if (GetAsyncKeyState(VK_CONTROL)&0x8000)
*(float*)(pp+OFS_Z) = superjump;

/*RealSuperJump*/
if (GetAsyncKeyState(VK_NUMPAD3))
*(float*)ADR_SuperJump = 600;
if (GetAsyncKeyState(VK_NUMPAD2))
*(float*)ADR_SuperJump = 180;

/* Speed */
if (GetAsyncKeyState(VK_RIGHT)&1) speed +=96;
if (GetAsyncKeyState(VK_LEFT)&1) speed -=96;
if (speed<96) speed=96;
WritePatch<double>((void*)ADR_SPEED,speed);

//CQC_Prone
if (GetAsyncKeyState('c')&0x8000)
{
*(int*)CQC_PRONE = 2;
}
/* DIG */
if(GetAsyncKeyState(VK_MENU) &0x8000)
*(float*)(pp+OFS_Z)=-1000;

/* NFD */
*(float*)(pp + OFS_NFD) = -20000;

//glasswalls
if (GetAsyncKeyState(VK_NUMPADCool)
*(int*)ADR_GlassWalls = 0;
if (GetAsyncKeyState(VK_NUMPAD9))
*(int*)ADR_GlassWalls = 1;

/* No Recoil */
if ( (pp+OFS_WEAPON)!=0)
{
*(float*)(pp + OFS_NORECOIL1) = 0;
*(float*)(pp + OFS_NORECOIL2) = 0;
*(float*)(pp + OFS_NORECOIL3) = 0;
}

/* SuperNoSpread */
if (GetAsyncKeyState(VK_NUMPAD5)) supernospread = true;
if (GetAsyncKeyState(VK_NUMPAD4)) supernospread = false;
if (supernospread==true)
WritePatch<double>((void*)ADR_SUPERNOSPREAD,0);
if (supernospread==false)
WritePatch<double>((void*)ADR_SUPERNOSPREAD,5);


/* Teleport */
if(GetAsyncKeyState(VK_F2))
{
CoordX = *(float*)(pp+OFS_X);
CoordY = *(float*)(pp+OFS_Y);
CoordZ = *(float*)(pp+OFS_Z);
}

if (GetAsyncKeyState(VK_F3))
{
*(float*)(pp + OFS_X) = CoordX;
*(float*)(pp + OFS_Y) = CoordY;
*(float*)(pp + OFS_Z) = CoordZ+1;
}

if ((ADR_NoBounds1!=0)&&(ADR_NoBounds2!=0)&&(ADR_NoBounds3!=0))
{
*(int*)ADR_NoBounds1 = 0;
*(int*)ADR_NoBounds2 = 0;
*(int*)ADR_NoBounds3 = 0;
}
/* Fast Stuff */
*(float*)ADR_FASTREPAIR = 99;
*(float*)ADR_FASTAMMO = 99;
*(float*)ADR_FASTMEDIC = 99;


*(DWORD*)( ADR_AlwaysCross1 ) = ( *(DWORD*)( ADR_AlwaysCross2) / 2 );


/* AutoAmmo/Medic BG & A.I. */
WritePatch<float>((void*)ADR_Automedic_Ammo,9999);


}
}
void ServerHacks()
{
DWORD sp = *(DWORD*)ADR_SERVERPOINTER;
if(sp != 0)
{
/* Slots */
*(int*)(sp + OFS_SLOT5) = 1;
*(int*)(sp + OFS_SLOT6) = 1;
*(int*)(sp + OFS_SLOT7) = 1;
*(int*)(sp + OFS_SLOTCool = 1;


if (GetAsyncKeyState(VK_NUMPAD1)) Invisible = true;
if (GetAsyncKeyState(VK_NUMPAD0)) Invisible = false;

if (Invisible==true)
{
if (!InviciblePatch)
{
*(long*)(sp+OFS_INVISIBLE) -= 2;
InviciblePatch = true;
}
}
else
{
if (InviciblePatch)
{
*(long*)(sp+OFS_INVISIBLE) += 2;
InviciblePatch = false;
}
}
/* Premium */
*(int*)(sp+OFS_PREMIUM) = 3;
*(float*)(sp+OFS_PREMIUM2) = 1;



La libertà non si insegna, è una scelta individuale.
30/01/2013, 17:53
#1
Cerca




Utenti che stanno guardando questa discussione: 1 Ospite(i)