Knife OHK problem

Posts 31–36 of 36 · Page 3 of 3
@OMFGDUDE
value is wrong and you need 2 offsets
you can find the rigth Offsets here:
http://www.mpgh.net/forum/242-crossf...onlog-etc.html
KnifeOHK1: 0xBBC
KnifeOHK2: 0xBC8
(@DaRk)


Code:
#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( pWeaponMgr)
{
         for(int i=0; i<600; i++)
         {
               DWORD Waffe= *(DWORD*)(pWeaponMgr+(4*i));
				if(Waffe || && knives)
				{
					for(int y=0; y<10; y++)
					{
						*(float*)(Waffe + OFFSET+y*4) = Wert/VALUE;
						*(float*)(Waffe + OFFSET+y*4) = Wert/VALUE;
					}}
Quote Originally Posted by CFhackerfree View Post
@OMFGDUDE
value is wrong and you need 2 offsets
you can find the rigth Offsets here:
http://www.mpgh.net/forum/242-crossf...onlog-etc.html
KnifeOHK1: 0xBBC
KnifeOHK2: 0xBC8
(@DaRk)


Code:
#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( pWeaponMgr)
{
         for(int i=0; i<600; i++)
         {
               DWORD Waffe= *(DWORD*)(pWeaponMgr+(4*i));
				if(Waffe || && knives)
				{
					for(int y=0; y<10; y++)
					{
						*(float*)(Waffe + OFFSET+y*4) = Wert/VALUE;
						*(float*)(Waffe + OFFSET+y*4) = Wert/VALUE;
					}}
@CFhackerfree can i ask u why ur looping through 10?? 10*4 = 40, 40 as hex is 28. so BBC + 28 = BE4 that's not right coz KnifeNormalAmmoDamage offset is 0xBBC and KnifeNormalAmmoDamge2 is BD4. u have to loop through 4 bytes each to BD4 . but u looped with 10, which equals BE4, that's not right ...it's suppose to be 6 why coz..6*4 = 24 and 24 as hex is 18 so BBC + 18 = BD4. Same thing goes for BC8, BC8 + 18 = BEO which is KnifeBigShotAmmoDamage2

PS. u dont have to define knives
Ok, thanks all, i made it for CF NA and it works great, but for CF RU it dont takes any damage. Why? It is patched or what? What do you think?
Quote Originally Posted by CFhackerfree View Post
@DaRk
hm... for me working fine -.-
i am just saying it's suppose to be 6 not 10
Quote Originally Posted by OMFGDUDE View Post
Ok, thanks all, i made it for CF NA and it works great, but for CF RU it dont takes any damage. Why? It is patched or what? What do you think?
.................................................. ....
Posts 31–36 of 36 · Page 3 of 3

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us