Knife OHK problem
Then i think:
@Royku
@Ryuzaki2
But Knife ares on the Guns Loops...
Then...?
@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
}
}
}
}
Then...?
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;
}
}
}
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/
) 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/

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 ----------
another stupid error...GOSH u people need to learn..
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 ----------
another stupid error...GOSH u people need to learn..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:
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.
@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
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..
instead of making ur code long..u just loop like this
the samething goes for the KnifeBigShotAmmoDamage and KnifeBigShotAmmoDamage2..
this is basic C++
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;
Code:
for(int y=0; y<6; y++) and u use it like this *(float*)(Weapon + 0xBBC+y*4) = 200;
this is basic C++Lol, guys, i still can't make it!
The method, that gives Coder[Vb10e] not works for me.
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
.
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
}
}
}
}
.You need this LooP:
(int j=0; j<10 ; j++) and Define all knifes!
(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.
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.
Similar Threads
CrossFire HelpAk Knife Disconnection Problem[SOLVED]
4 CrossFire Hack Coding / Programming / Source CodeKnife OHK is patched 22 CrossFire Hack Coding / Programming / Source Codeknife weapon hack problem
15 CrossFire Hacks & CheatsAeroNex Hack Version. 4 [D3D MENU + OHK KNIFE + WALL HACK +FULL BRIGHT! 3/4/2012]AE 123 Combat Arms Mod DiscussionSuper Knife problem
13

why are you Looping all the 4Offsets?![=]](/forum/images/emotions/=].gif)