Home Forum MultiPlayer Game Hacks & Cheats CrossFire Hacks & Cheats CrossFire Hack Coding / Programming / Source Code Knife OHK problem Posts 1–15 of 36 · Page 1 of 3
Knife OHK problem
The offsets are taking from DaRk's thread, thanks him.
Code:
Code:
if ( pWeaponMgr )
{
for ( int i = 0; i < 600; i++ )
{
if ( (*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL )
{
// Speed knife works
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xA2C) = (float) 3.5f;
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xA50) = (float) 3.5f;
// This code doesn't affect on a game
for ( int j = 0; j < 6; j++ )
{
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xBBC) = (float) 100.0f;
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xBC8) = (float) 100.0f;
}
}
}
}
Ideas?
Originally Posted by
OMFGDUDE
The offsets are taking from DaRk's thread, thanks him.
Code:
Code:
if ( pWeaponMgr )
{
for ( int i = 0; i < 600; i++ )
{
if ( (*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL )
{
// Speed knife works
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xA2C) = (float) 3.5f;
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xA50) = (float) 3.5f;
// This code doesn't affect on a game
for ( int j = 0; j < 6; j++ )
{
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xBBC) = (float) 100.0f;
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xBC8) = (float) 100.0f;
}
}
}
}
Ideas?
Code:
for ( int y = 0; y < 10; y++ )
{
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xBBC) = 200;
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xBC8) = 200;
}
Try this.
Originally Posted by
darlwis
Code:
for ( int y = 0; y < 10; y++ )
{
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xBBC) = 200;
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xBC8) = 200;
}
Try this.
Thanks, but same shit. It does't take
any affect on a game. I can comment this lines and it gives the same result.
wrong
i have a other methode
Originally Posted by
[G]a[M]e[R]
wrong
i have a other methode
Pm me, pls
Originally Posted by
Coder[Vb10e]
make it like no recoil
Like this?
for ( int y = 0; y < 10; y++ )
{
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xBBC) = 200;
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xBC8) = 200;
}
This way don't works for me, dude.
Originally Posted by
OMFGDUDE
Like this?
for ( int y = 0; y < 10; y++ )
{
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xBBC) = 200;
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xBC8) = 200;
}
This way don't works for me, dude.
Works here perfectly.
Originally Posted by
OMFGDUDE
Pm me, pls
Like this?
for ( int y = 0; y < 10; y++ )
{
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xBBC) = 200;
*(float*) ((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xBC8) = 200;
}
This way don't works for me, dude.
fast knife + knife OHK
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
}
}
}
}
---------- Post added at 10:05 AM ---------- Previous post was at 10:04 AM ----------
@Ryuzaki2 this will work for all melee
Originally Posted by
Coder[Vb10e]
[FONT="Comic Sans MS"]
[SIZE="2"][I][B]
---------- Post added at 10:05 AM ---------- Previous post was at 10:04 AM ----------
@Ryuzaki2 this will work for all melee
Yeah I think so, maybe that is caused by my internet connection I am pretty lag when I use the knife. Oh about the fast knife, when I change the value into 2.5, will it still give an error when using normal knife? Because I tried 3.0 it gives error in normal knife but when I use other melee weapon, works perfectly.
Originally Posted by
Ryuzaki2
Yeah I think so, maybe that is caused by my internet connection I am pretty lag when I use the knife. Oh about the fast knife, when I change the value into 2.5, will it still give an error when using normal knife? Because I tried 3.0 it gives error in normal knife but when I use other melee weapon, works perfectly.
i use 2 works with out errors for me
Originally Posted by
Coder[Vb10e]
fast knife + knife OHK
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
}
}
}
}
---------- Post added at 10:05 AM ---------- Previous post was at 10:04 AM ----------
@Ryuzaki2 this will work for all melee
GoodJob
Originally Posted by
Coder[Vb10e]
fast knife + knife OHK
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
}
}
}
}
---------- Post added at 10:05 AM ---------- Previous post was at 10:04 AM ----------
@Ryuzaki2 this will work for all melee
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? ....u shouldn't even try to make a hack because u dont even know what ur doing..all u did was C+P
the reason it's not working is very simple..u didn't use the second loop..
Originally Posted by
DaRk
....u shouldn't even try to make a hack because u dont even know what ur doing..all u did was C+P
the reason it's not working is very simple..u didn't use the second loop..
yeah, i thought that was a little strange xD@
Coder[Vb10e]
I confirmed and it is working in normal knife
Posts 1–15 of 36 · Page 1 of 3