Knife OHK problem

Posts 16–30 of 36 · Page 2 of 3
Quote Originally Posted by Royku View Post

why are you Looping all the 4Offsets?
and why are you looping the speed offsets??
do you actually know how a loop works and wat it does?
Yeah I think of that before, since those offsets are just for knives, why we would loop the 600+ guns if it is just for knives? I looked them in the google and most of them put loops. So I just follow them.
Quote Originally Posted by Ryuzaki2 View Post
Yeah I think of that before, since those offsets are just for knives, why we would loop the 600+ guns if it is just for knives? I looked them in the google and most of them put loops. So I just follow them.
Then i think:
@Royku
@Ryuzaki2
Code:
if (pWeaponMgr)
{
for (int j=0; j<9 ; j++)
{
*(float*)(WeaponMgr +  0xA2C+j*4) = 2.5;//fast
*(float*)(WeaponMgr +  0xA50+j*4) = 2.5;//fast
*(float*)(WeaponMgr +  0xBBC+j*4) = 200;//OHK
*(float*)(WeaponMgr +  0xBD4+j*4) = 200;//OHK
*(float*)(WeaponMgr +  0xBC8+j*4) = 200;//OHK
*(float*)(WeaponMgr +  0xBE0+j*4) = 200;//OHK
	}
    }
    }
	}
But Knife ares on the Guns Loops...
Then...?
Quote Originally Posted by darlwis View Post
Then i think:
Code:
if (pWeaponMgr)
{
for (int j=0; j<9 ; j++)
{
*(float*)(WeaponMgr +  0xA2C+j*4) = 2.5;//fast
*(float*)(WeaponMgr +  0xA50+j*4) = 2.5;//fast
*(float*)(WeaponMgr +  0xBBC+j*4) = 200;//OHK
*(float*)(WeaponMgr +  0xBD4+j*4) = 200;//OHK
*(float*)(WeaponMgr +  0xBC8+j*4) = 200;//OHK
*(float*)(WeaponMgr +  0xBE0+j*4) = 200;//OHK
	}
    }
    }
	}
still not correct ... come on
Quote Originally Posted by Royku View Post


still not correct ... come on
Code:
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD Weapon = *(DWORD*) (CShell + 0xAAC3D0);
if(Weapon)
{
	for(int i=0; i<600; i++)
	{
		DWORD pWeapon = *(DWORD*)(Weapon+(4*i));
		if(pWeapon != NULL)
		{
			*(float*)(pWeapon + 0xBBC) = 200;
			*(float*)(pWeapon + 0xBD4) = 200; 
			*(float*)(pWeapon + 0xBC8) = 200;
			*(float*)(pWeapon + 0xBE0) = 200;
		}
	}
}
Quote Originally Posted by darlwis View Post
Then i think:
@Royku
@Ryuzaki2
Code:
if (pWeaponMgr)
{
for (int j=0; j<9 ; j++)
{
*(float*)(WeaponMgr +  0xA2C+j*4) = 2.5;//fast
*(float*)(WeaponMgr +  0xA50+j*4) = 2.5;//fast
*(float*)(WeaponMgr +  0xBBC+j*4) = 200;//OHK
*(float*)(WeaponMgr +  0xBD4+j*4) = 200;//OHK
*(float*)(WeaponMgr +  0xBC8+j*4) = 200;//OHK
*(float*)(WeaponMgr +  0xBE0+j*4) = 200;//OHK
	}
    }
    }
	}
But Knife ares on the Guns Loops...
Then...?
hmm according to my theory, (epic word lol) just change the value like see ghost which has no loop but I did not tested it yet.
@Royku am I right I am just guessing/
Quote Originally Posted by Ryuzaki2 View Post
Yeah I think of that before, since those offsets are just for knives, why we would loop the 600+ guns if it is just for knives? I looked them in the google and most of them put loops. So I just follow them.
wow hes not talking about the 600 loop..hes talking about the 9 loop..the 600 loop is the number of all guns in CF...the offset will automatically define knifes...but u still need the 600 loop because it has all the guns and knives in CF

---------- Post added at 09:34 AM ---------- Previous post was at 09:33 AM ----------

Quote Originally Posted by darlwis View Post
Then i think:
@Royku
@Ryuzaki2
Code:
if (pWeaponMgr)
{
for (int j=0; j<9 ; j++)
{
*(float*)(WeaponMgr +  0xA2C+j*4) = 2.5;//fast
*(float*)(WeaponMgr +  0xA50+j*4) = 2.5;//fast
*(float*)(WeaponMgr +  0xBBC+j*4) = 200;//OHK
*(float*)(WeaponMgr +  0xBD4+j*4) = 200;//OHK
*(float*)(WeaponMgr +  0xBC8+j*4) = 200;//OHK
*(float*)(WeaponMgr +  0xBE0+j*4) = 200;//OHK
	}
    }
    }
	}
But Knife ares on the Guns Loops...
Then...?
another stupid error...GOSH u people need to learn..
Quote Originally Posted by Royku View Post

why are you Looping all the 4Offsets?
and why are you looping the speed offsets??
do you actually know how a loop works and wat it does?
i know wath is a loop
way you guys want perfect numbers, i could put that the value to 999999999999999999 it does not matter -_-
Quote Originally Posted by Coder[Vb10e] View Post


i know wath is a loop
way you guys want perfect numbers, i could put that the i=999999999999999999 it does not matter -_-
it will just waste memory..
That made my day @Coder[Vb10e]: You are really pro boy. Go for it and try to put in a 99999 value in the loop and i promise you, your game will instantly crashing. It wont waste memory, but it will overwrite (important) data oder code.


And this code is absolutely senseless:
Code:
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBD4+j*4) = 200;//OHK
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBC8+j*4) = 200;//OHK
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBE0+j*4) = 200;//OHK
It loops 9 times. Look at the first and the second offset for example. The distance between 0xBC8 and 0xBD4 is 0xC = 12. Now guess what the2nd line of code does: It changes 4 * 9 = 36 (0x24 in hex) bytes from 0xBC8 to 0xBEC.
You can see that the two other addresses are already in here, because 0xBE0 and 0xBD4 are clearly between 0xBC8 and 0xBEC.
Quote Originally Posted by Zacherl View Post
That made my day @Coder[Vb10e]: You are really pro boy. Go for it and try to put in a 99999 value in the loop and i promise you, your game will instantly crashing. It wont waste memory, but it will overwrite (important) data oder code.


And this code is absolutely senseless:
Code:
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBD4+j*4) = 200;//OHK
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBC8+j*4) = 200;//OHK
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBE0+j*4) = 200;//OHK
It loops 9 times. Look at the first and the second offset for example. The distance between 0xBC8 and 0xBD4 is 0xC = 12. Now guess what the2nd line of code does: It changes 4 * 9 = 36 (0x24 in hex) bytes from 0xBC8 to 0xBEC.
You can see that the two other addresses are already in here, because 0xBE0 and 0xBD4 are clearly between 0xBC8 and 0xBEC.
yes @Coder[Vb10e] dude why would u loop through 9? do u why we use a loop?? KnifeNormalAmmoDamage offset is 0xBBC and KnifeNormalAmmoDamage2 is 0xBD4... to make leftclick OHK u would need the offsets between 0xBBC and 0xBD4..the size of a pointer in a 32 bit app is 4 bytes so u would have to go +4 to 0xBD4..that's why u use a loop..to shorten out ur code so u dont have to do it again or repeat the code..it wont repeat the code because u did this 4*i..it will add 4 bytes each time it repeats...if u didn't use a loop u would have to do this..
Code:
*(float*)(Weapon + 0xBBC+(0x4)) = 200;
*(float*)(Weapon + 0xBBC+(0x8)) = 200;
*(float*)(Weapon + 0xBBC+(0xC)) = 200;
*(float*)(Weapon + 0xBBC+(0x10)) = 200;
*(float*)(Weapon + 0xBBC+(0x14)) = 200;
*(float*)(Weapon + 0xBBC+(0x18)) = 200;
instead of making ur code long..u just loop like this
Code:
for(int y=0; y<6; y++)

and u use it like this *(float*)(Weapon + 0xBBC+y*4) = 200;
the samething goes for the KnifeBigShotAmmoDamage and KnifeBigShotAmmoDamage2.. this is basic C++
Quote Originally Posted by Zacherl View Post
That made my day @Coder[Vb10e]: You are really pro boy. Go for it and try to put in a 99999 value in the loop and i promise you, your game will instantly crashing. It wont waste memory, but it will overwrite (important) data oder code.


And this code is absolutely senseless:
Code:
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBD4+j*4) = 200;//OHK
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBC8+j*4) = 200;//OHK
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBE0+j*4) = 200;//OHK
It loops 9 times. Look at the first and the second offset for example. The distance between 0xBC8 and 0xBD4 is 0xC = 12. Now guess what the2nd line of code does: It changes 4 * 9 = 36 (0x24 in hex) bytes from 0xBC8 to 0xBEC.
You can see that the two other addresses are already in here, because 0xBE0 and 0xBD4 are clearly between 0xBC8 and 0xBEC.
this is wat i was trying to make clearn thanks
Lol, guys, i still can't make it!

The method, that gives Coder[Vb10e] not works for me.

Code:
if (CShell+WeaponMgr)
		 {
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
{
for (int j=0; j<9 ; j++)
{
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xA2C+j*4) = 2.5;//fast
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xA50 +j*4) = 2.5;//fast
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBBC+j*4) = 200;//OHK
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBD4+j*4) = 200;//OHK
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBC8+j*4) = 200;//OHK
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBE0+j*4) = 200;//OHK
	}
}
		 }
	}
I know i'm not good at coding and all i can do is just C+P, but i just want to make this hack for private use, not more. Maybe someone provide some code for OHK? Plz, guys. I'll be very happy.
Quote Originally Posted by OMFGDUDE View Post
Lol, guys, i still can't make it!

The method, that gives Coder[Vb10e] not works for me.

Code:
if (CShell+WeaponMgr)
		 {
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
{
for (int j=0; j<9 ; j++)
{
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xA2C+j*4) = 2.5;//fast
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xA50 +j*4) = 2.5;//fast
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBBC+j*4) = 200;//OHK
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBD4+j*4) = 200;//OHK
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBC8+j*4) = 200;//OHK
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBE0+j*4) = 200;//OHK
	}
}
		 }
	}
I know i'm not good at coding and all i can do is just C+P, but i just want to make this hack for private use, not more. Maybe someone provide some code for OHK? Plz, guys. I'll be very happy.
why ru looping through 9? first learn what a loop is then fix it ur self.
You need this LooP:
(int j=0; j<10 ; j++) and Define all knifes!
Quote Originally Posted by CFhackerfree View Post
You need this LooP:
(int j=0; j<10 ; j++) and Define all knifes!
#define knives ((i==5)||(i==35)||(i==74)||(i==132)||(i==189)||(i= =239)||(i==261)||(i==269)||(i==270)||(i==271)||(i= =372)||(i==437)||(i==517)||(548))
if ( knives )
{
for (int j=0; j<10 ; j++)
{
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xA2C+j*4) = 2.5;//fast
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xA50 +j*4) = 2.5;//fast
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBBC+j*4) = 200;//OHK
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBD4+j*4) = 200;//OHK
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBC8+j*4) = 200;//OHK
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBE0+j*4) = 200;//OHK
}
}

Not fucking works.

CFhackerfree, if you made it, can you pm your code? Plz, dude, because i tryed a lot and still gets this not working shit.
Posts 16–30 of 36 · Page 2 of 3

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us