I decided to write a nice little tutorial for new coders here. I am also new but through tutorials I have read on this forum, I have gradually expanded my knowledge.
This Tutorial Includes:
- How to Use Teleport Addy
- How to Use No Recoil Addy
These are all tested and works 100% for the [9-22] patch!
Teleport Addy:
Credits: CodeDemon
How To Use:
Here are your Globals:
Code:
#define playerpoint 0x66F34
#define teleportaddy 0x3782E360
#define yoffset 0xCC
#define posyoffset 0xCC
DWORD nom, pos, teleloc;
Here is the "Teleport" function:
Code:
void teleport(void) {
while(1){
nom=NULL;
nom = (DWORD)GetModuleHandleA("ClientFX.fxd");
nom += playerpoint;
memcpy(&pos,(void *)(nom),4);
pos += posyoffset;
memcpy(&teleloc,(void *)(teleportaddy),4);
teleloc += yoffset;
if(GetAsyncKeyState(VK_INSERT)&1) //this stores the location you want to teleport
{
if(pos > posyoffset && teleloc > yoffset)
{
*(float*)teleloc = *(float*)pos;
*(float*)(teleloc+0x4) = *(float*)(pos+0x4);
*(float*)(teleloc-0x4) = *(float*)(pos-0x4);
}
}
if(GetAsyncKeyState(VK_DELETE)<0) // this teleports you back
{
if(pos > posyoffset && teleloc > yoffset)
{
*(float*)pos = *(float*)teleloc;
*(float*)(pos+0x4) = *(float*)(teleloc+0x4);
*(float*)(pos-0x4) = *(float*)(teleloc-0x4);
}
}
}
}
No Recoil Addies:
Code:
0x3745FA90
0x3745FAA1
0x3745FAB0
0x3745FAA4
Credits: ppl2pass
How to Use:
Define Memoria Function:
Code:
bool Memoria( void * pDest, char * szPatch, size_t sSize )
{
DWORD dwOrgProtect = NULL;
if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
return FALSE;
memcpy( pDest, szPatch, sSize );
VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
return TRUE;
}
Here is the No Recoil code:
Code:
Memoria((LPVOID) (0x3745FA90), "\x90\x90\x90", 3);
Memoria((LPVOID) (0x3745FAA1), "\x90\x90\x90", 3);
Memoria((LPVOID) (0x3745FAB0), "\x90\x90\x90", 3);
Memoria((LPVOID) (0x3745FAA4), "\x90\x90\x90\x90\x90\x90", 6);