PHCreed

PHCreed Unlimitboard Online Tambayan
 
HomePortalCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Code for no recoil

Go down 
AuthorMessage
Admin
Admin
Admin
avatar

Posts : 92
Join date : 17/02/2013
Age : 23
Location : iloilo

PostSubject: Code for no recoil   Fri Feb 22, 2013 5:52 pm

Hello coders . Can you make a no recoil ? I have the code but i don't know what to do with it . I leech it on other forums (exelgaming) .


This is the code :


#include <windows.h>

#define Base_ptr 0xA77970

bool g_bNoRecoilSpr = false;

DWORD GetPlayerBase()
{
DWORD Base = *(DWORD*)Base_ptr;
if(!Base)
return NULL;

Base = *(DWORD*)(Base+0x30);
if(!Base)
return NULL;

Base = *(DWORD*)(Base+0x1c);
if(!Base)
return NULL;

return Base;
}

void NoRecoilSpr()
{
DWORD WeaponBase = NULL;

if(g_bNoRecoilSpr == true)
{
WeaponBase = GetPlayerBase();
if(WeaponBase)
{
WeaponBase = *(DWORD*)(WeaponBase+0x54);
if(WeaponBase)
{
*(BYTE*)(WeaponBase + 0x161D4) = 0;
*(BYTE*)(WeaponBase + 0x161D8) = 0;
*(BYTE*)(WeaponBase + 0x16204) = 0;
}
}
}
}

DWORD Init()
{

while(1)
{
if(GetAsyncKeyState(VK_F2)&1)g_bNoRecoilSpr = !g_bNoRecoilSpr;

NoRecoilSpr();

Sleep(100);
}

return 0;
}

BOOL __stdcall DllMain(HMODULE module, DWORD reason, LPVOID reserved)
{
if(reason == DLL_PROCESS_ATTACH)
{
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Init, 0,0,0);
}

return TRUE;
}
Back to top Go down
View user profile http://phcreed.forumeiros.com
 
Code for no recoil
Back to top 
Page 1 of 1
 Similar topics
-
» Building setback??

Permissions in this forum:You cannot reply to topics in this forum
PHCreed :: Programming :: C++-
Jump to: