Need Code Help.
I have a code, but i think im missing something.
but im not sure what.
So can you help me.
Please don't make fun of me, If the code completely wrong. It's my first time.
Don't rage either.
It's just a basic hack i want to make, for now.
dont rage plz.
but im not sure what.
So can you help me.
Please don't make fun of me, If the code completely wrong. It's my first time.
Don't rage either.
////addies 01/05/2011
#define WeaponMgr 0xA0F338
#define NoReload 0x2420
#define WeaponDamage 0x07F8
float Hithard = 999.0f;
float FragDmg = 0.0f;
////hotkeys toggle + beep sounds
if(GetAsyncKeyState(VK_F9) || GetAsyncKeyState(VK_NUMPAD0) &1) { onehit = true; Beep(512, 100); }
if(GetAsyncKeyState(VK_F10) || GetAsyncKeyState(VK_NUMPAD1) &1) { reload = true; Beep(512, 100); }
if(GetAsyncKeyState(VK_F11) || GetAsyncKeyState(VK_NUMPAD2) &1) { fragdmg = true; Beep(512, 100); }
//one hit kill
if(onehit)
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + WeaponDamage) = Hithard;
}
}
}
////no reload
if(reload)
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100;
}
}
}
#define WeaponMgr 0xA0F338
#define NoReload 0x2420
#define WeaponDamage 0x07F8
float Hithard = 999.0f;
float FragDmg = 0.0f;
////hotkeys toggle + beep sounds
if(GetAsyncKeyState(VK_F9) || GetAsyncKeyState(VK_NUMPAD0) &1) { onehit = true; Beep(512, 100); }
if(GetAsyncKeyState(VK_F10) || GetAsyncKeyState(VK_NUMPAD1) &1) { reload = true; Beep(512, 100); }
if(GetAsyncKeyState(VK_F11) || GetAsyncKeyState(VK_NUMPAD2) &1) { fragdmg = true; Beep(512, 100); }
//one hit kill
if(onehit)
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + WeaponDamage) = Hithard;
}
}
}
////no reload
if(reload)
{
if (pWeaponMgr)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100;
}
}
}
dont rage plz.
Could be his base detours or whatever else is needed in CF.

