Useful Hack Information + Details to become a hack coder - [MUST READ]
This is in fact very useful for beginners learning... I'm gonna to try to make it as short as possible, but I think it will be fairly long...
This thread will contain...
FAQ (Frequently Asked Questions)
- C++ (DETAILED)
- ASM (You need to know it's knowledge to know how to utilize Olly)
- Memory Hacks
- D3D(Direct 3D)
Questions that will be answered
- How can I make a hack?
- What is C++?
- How do I make a memory hack?
- How do I make a D3D wallhack?
- How can I hook D3D?
- How can I hook?!?
First, we will go over C++.
If you want to create a hack the first step you should make is learning the programming language, C++...You can read tutorials off Youtube. But books are the most effective way. You can buy books in computer-related stores or anywhere else you think you may be able to buy them. We also have some books, tutorials and resources here. Check out the tutorials and such in Crossfire's Hack Source Code Section or the C++/Programming Section.
Here are some books and resources and tutorials that can help you get started with C++:
ASM
You will need to know the ASM(Assembly) programming language... It's very useful and not very difficult to learn... It will help you in finding addresses(addies), offsets and everything related to Olly... The following links should help you understand better.
After you know what ASM is... You will get to unpack CShell.dll(Client Shell). With this .dll, you can find addresses, offsets, etc. The following tutorial will help you unpack CShell.
Memory Hacks
To create a memory hack, you will need to know a couple of things:
- Includes and Defines (Defines: You will need the addys or offsets to work it out)
- Loading CShell (You use them to find Offsets or Addys)
- Base - Contains Loops and values(Will be mentioned, but not explained.)
- Hook
This link will help you get started...
Lets take every step one by one...
1. Includes and Defines
At the top of your hack you need to #include "stdafx.h" or #include <windows.h> (You will understand why when you Learn C++)
Then you need To #define a Mgr (Pointer)
Like Weapon Mgr-Wall Mgr-<<Ghost Mgr< (BasicPlayerInfo).
Then #define 0xaddy - You will understand how to get it through @moathebest's tutorial. Some of the addys and text strings that can help you.
PS:Some features may need more than 2-3 addys and some need only one. You will know according to the following:
Code:
WeaponMgr WeaponMgr: 10a68f80 = You need it most for the following. ZoomInMoveSpeedPenalty: 2458 = DONT KNOW MovePenaltyForDelayFire: 245c = DONT KNOW WallShotDamageRatio: 2668 = SHOOT THROUGH WALLS BulletPosOffset: 1930 = LESS RECOIL ReloadAnimRatio: 269c = NORELOAD ChangeWeaponAnimRatio: 26a0 =NOCHANGE CrossHairRatioPerRealSize: 26a4 = NOSPREAD ContinuousShotInterval: 26b8 = DON'T KNOW ContinuousShotKeyInterval: 26bc = DON'T KNOW ZoomMode: aa8 = DON'T KNOW NoZoom: aac = DON'T KNOW FullZoom: aac = DON'T KNOW HalfZoom: aac GunKnifeRange: 2784 = DON'T KNOW StunTime: ac4 = No Knock Back ShotsPerAmmo: 828 = No Shotgun Spread Range: 7ec UnlimitedAmmo: 7fc = Must be put with NoReload AmmoDamage: 7f8 = One Hit LowerAnimRate: 2520 = More Less Recoil 1 LowerAnimRate: 258c =// 2 LowerAnimRate: 2590 = // 3 LowerAnimRate: 2594 = //4
Code:
WallMgr: 10a68f6c = Shoot Through Walls (1) EdgeShotEnabled: 4e8 = //2 WallShotEnabled?: 4ec = //3 PerfectWallShotEnabled: 4f0 =//4
Code:
GhstMgr: 10a021f8 CharacterHiddenAlpha: 88 = See Ghost (1) CharacterHiddenWalkAlpha: 8c = See Ghost (2) CharacterHiddenRunAlpha: 90 = //3 CharacterHiddenAlpha: 88 = //4 MovementHiddenRate: 9C = Speed Hack C4PlantTime: 7C = Fast Plant C4DefuseTime: 80 = Fast Defuse (1) MaxCanDefuseDistance: 84 = Fast defuse (2) DamagePenaltyTime: 74 = Not entirely sure. DamagePenaltyMoveRate: 78 = Not entirely sure.
2. Loading CShell
After the includes and defines you have to load CShell. There are 2 ways. (Under it you must put Weaponmgr, WallMgr or GhostMgr).
First:
Code:
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWallMgr = *(PDWORD)(CShell+WallMgr);
Code:
DWORD CShell = (DWORD)LoadLibraryA("CShell.dll");
DWORD pWallMgr = *(PDWORD)(CShell+WallMgr);
3. Base
Never use someone else's base. It's no good. If you are a new C++ you would for 1-2 TIMES ONLY to help you a little bit.
The base of a hack is the most important part in a hack. The hack doesn't work without it.
To make your own base, follow this link:
4. Hook
You have to hook your Memory Hacks. Some people say memory hacks can be done without a hook and some people say it can't. Anyways, here is a tutorial on how to hook It was found in Brimir's signature. You will find it useful.

Values and Loops
NoRecoil: (Special feature - It needs two loops unlike others.)
Value:
Code:
0.0f FLOAT
First Loop:
Code:
for(int i=0; i<560; i++)
Code:
for(int j=0; j<10; j++)
Loop:
Code:
for(int i=0; i<560; i++)
Code:
0.0f FLOAT
Loop:
Code:
for(int i=0; i<560; i++)
Code:
0.0f FLOAT
Loop:
Code:
for(int i=0; i<560; i++)
Code:
100.0f FLOAT
Loop:
Code:
for(int i=0; i<560; i++)
Code:
90 FLOAT
No Weapon Weight:
First Value With No Weapon Weight:
Code:
-0.18f (float)
Code:
6000.0f
D3D
I dont know much about D3D, so it may be a little complex.
A D3D hack contains:
- 1. Direct X.
- 2. Special #includes - it doesn't have defines.
- 3. Special Hooks.
The following links will help you a lot. But remember, The Detours.H Method is patched. Also, it's not for crossfire. Just read...
About DirectX...
You must get some includes from Direct X. To do that you must download Direct X SDK Summer update. The link for the download is below.
After that...
Go to C++, Tools, Options, Projects and Solutions. VC++ Directories, include directories, Edit - And you will see an icon like a folder... Press it - Go to Browse
C:/Direct X/include
AND
Go to C++, Tools, Options, Projects and Solutions, VC++ Directories, Library Directories, Edit - And then you will see an icon like a folder, press it and go to Browse
C:/Direct X/lib.
Or if you have an error and you can open tools>options, you would simply do the same but,
you would go to: {Name Here}

Right click on it. Then go to properties, VC++ Directories.
Second Part...
There are 5 different methods to hook D3D. However I only know 2 ways so I'm not going to show how to do it. However, this is used so you guys know what kinds of methods to D3D hooking are - so you can work your way from here and then move onto other tutorials on how to hook with that specific method.
- Vtable Hooking
- Midfunction hooking
- SSDM Hooking
And now this tutorial has ended. Hope you liked it. Sorry if it's a little bit complex to you.
Credits all go to:
@Assassin's Creed[/URL]
@Brimir
@Hassan
@moathebest
@Ryuesi
@Skrillexed
Code:
Shoot through walls: Loop: 64 Value: true; IMUL: 4F4 Seeghost: loop: doesnt have value: 300.0f Fast Plant: Loop: dont know Value: 1 Fast defuse: Loop: dont know Value: 1

.... but why did u delete the one that contained things about weapon hack..??u could have just edited it 
