Aimbot aims above head when getting head bone
http://prntscr.com/fp8pa3 This is what it looks like. My aimbot aims above the head by quite a bit.
This is how I am getting the head bone position. In my aimbot I am using my players eye position and the returnBonePosition values to calculate my angle.
So the question is am I reading the bone position wrong?
Thanks.
- - - Updated - - -
/Closed sorry for taking up space..
Code:
ReadProcessMemory(processHandle, (LPVOID)(Entity + m_dwBoneMatrix), &BoneMatrix, sizeof(BoneMatrix), 0); ReadProcessMemory(processHandle, (LPVOID)(BoneMatrix + 0x30 * TargetBone + 0x0C), &returnBonePosition.x, sizeof(returnBonePosition.x), 0); ReadProcessMemory(processHandle, (LPVOID)(BoneMatrix + 0x30 * TargetBone + 0x1C), &returnBonePosition.y, sizeof(returnBonePosition.y), 0); ReadProcessMemory(processHandle, (LPVOID)(BoneMatrix + 0x30 * TargetBone + 0x2C), &returnBonePosition.z, sizeof(returnBonePosition.z), 0);
So the question is am I reading the bone position wrong?
Thanks.
- - - Updated - - -
/Closed sorry for taking up space..