Code:
Knife Speed 1 - 0xA64
Knife Speed 2 - 0xA68
=(float)1 !!!!!!
By means of the Cheat Engine program I managed to find offsets which are responsible for speed of a knife (these offsets the correct 100 %, I checked them several times). How it is correct to write down now them in a code? I have made such code, but for me does not work. How it is correct to write down a code?
Code:
if(cItem.CF_KnifeSpeed)
{
if (pWeaponMgr != NULL)
{
for(int i=0 ; i<800 ; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
{
Weapon = (*(DWORD*)(pWeaponMgr + (4*i)));
if(Weapon != NULL)
{
*(float*)( Weapon + (0xA64 + (4*i))) = (float)1;
*(float*)( Weapon + (0xA68 + (4*i))) = (float)1;
}}}}}