Weapon Range

Posts 1–5 of 5 · Page 1 of 1
Weapon Range
My weapon Range keep crashing my CF.

this is my code

[highlight=c++]

void GameInfo::Range(DWORD weapon, BYTE val)
{
//!range
switch (val)
{
//off
case 0:
if (weapon)
{
for (int i=0; i<533; i++)
{
DWORD Weapon = *(DWORD*)(weapon +(4*i));
*(float*)( Weapon + WRange ) = this->WeaponInfo[i].Range;
}
}
break;
//XX
case 4:

if (weapon)
{
for (int i=0; i<533; i++)
{
DWORD Weapon = *(DWORD*)(weapon +(4*i));
*(float*)( Weapon + WRange ) = (float)(9999999999999999);
}
}
break;
//All others
default:
{
if (weapon)
{
for (int i=0; i<533; i++)
{
DWORD Weapon = *(DWORD*)(weapon +(4*i));
*(float*)( Weapon + WRange) = (float)(2000*val);
}
}
}
break;
}
}

[/highlight]
I think your value's very strong!
Basic Code:
Code:
{
	for(int i=0 ; i<512 ; i++)
    {
		DWORD Weapon = *(DWORD*)( CshellModule + i * 4 );
			if( Weapon !=0 )
      {
			if ( wRange == 1 )
	 {
		*(float*)(*(DWORD*)(CshellModule + (4*i)) + 0x7EC ) = 200000;
         }
      }
   }
}
Quote Originally Posted by ***** View Post
I think your value's very strong!
Basic Code:
Code:
{
	for(int i=0 ; i<512 ; i++)
    {
		DWORD Weapon = *(DWORD*)( CshellModule + i * 4 );
			if( Weapon !=0 )
      {
			if ( wRange == 1 )
	 {
		*(float*)(*(DWORD*)(CshellModule + (4*i)) + 0x7EC ) = 200000;
         }
      }
   }
}
yours and min are the same :O


should i want till i am ingame? or i can change before login
LOL change the float at 99999999 to lower XD
The Value is very strong dude
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us