Some c++, For Crossfire hacking.
For and While Loops
First we start code a Noreload code.
- First we must include something for let the hack working...
#include<windows.h> // (Windows.header) hack will work in windows.
// also #include "stdafx.h"
- Then we must Define some addies. and maybe Weapon ID's 'i'
#define LTC client 0xA05E48 //new addies after patch, search it with ollyDgb
#define NoReload 0x2420//Noreload addie. Search for ''ReloadAnimRate'' in Olly.
Now Start make the hack codes etc..
WINAPI declares the "calling convention" basically how the compiler pushes arguments on the stack and how it generates the function call
=> DWORD WINAPI Hacks(LPVOID)
To declare such a value, you use the bool keyword.
(true or false)
Then.
Then we make Infinite loop
Now we Create the Code '//code':
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll"); //it get cshell.dll handle.
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr); // says pWeaponMgr is defined WeaponMgr(addie).
//Start coding noreload
if(noreload) //Bool
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100;
}
}
}[code]
For this part: for(int i=0; i<445; i++)
3 elements initialization, conditional, and update.
Picture from other site.
just a example
Now we code this for Crossfire.
for// loop, weapons
(int i=0;
i<445; //Loop guns, you can take 471 also..
i++)
Hope now, you can code ur own codes for Noreload and other features ;P
First we start code a Noreload code.
- First we must include something for let the hack working...
#include<windows.h> // (Windows.header) hack will work in windows.
// also #include "stdafx.h"
- Then we must Define some addies. and maybe Weapon ID's 'i'
#define LTC client 0xA05E48 //new addies after patch, search it with ollyDgb
#define NoReload 0x2420//Noreload addie. Search for ''ReloadAnimRate'' in Olly.
Now Start make the hack codes etc..
WINAPI declares the "calling convention" basically how the compiler pushes arguments on the stack and how it generates the function call
=> DWORD WINAPI Hacks(LPVOID)
To declare such a value, you use the bool keyword.
(true or false)
Then.
Code:
{
bool noreload = true; //auto on
Code:
while(1)
{
// code
}
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll"); //it get cshell.dll handle.
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr); // says pWeaponMgr is defined WeaponMgr(addie).
//Start coding noreload
if(noreload) //Bool
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100;
}
}
}[code]
For this part: for(int i=0; i<445; i++)
3 elements initialization, conditional, and update.
Picture from other site.
just a exampleNow we code this for Crossfire.
Code:
for(int i=0; i<445; i++)
(int i=0;
i<445; //Loop guns, you can take 471 also..
i++)
Hope now, you can code ur own codes for Noreload and other features ;P




