ESP Problems
Hey, I'm having some weird issues with my ESP. I have no idea what it can be so I'll share a video and some code.
EDIT: It was my CBaseEntity::Position function that was wrong (works for aimbot tho).
Can someone tell me what's wrong with it?
EDIT: It was my CBaseEntity::Position function that was wrong (works for aimbot tho).
Can someone tell me what's wrong with it?
Code:
Vector3 CBaseEntity::Position(int Bone)
{
if (this->ReadBoneMatrix())
{
Vector3 Pos;
Pos.Init();
Pos.x = *(float*)((DWORD)this->BoneMatrix + 0x30 * Bone + 0x0C);
Pos.z = *(float*)((DWORD)this->BoneMatrix + 0x30 * Bone + 0x1C);
Pos.y = *(float*)((DWORD)this->BoneMatrix + 0x30 * Bone + 0x2C);
return Pos;
}
}
Code:
DWORD CBaseEntity::ReadBoneMatrix()
{
this->BoneMatrix = *(DWORD*)((DWORD)this->Base + Offsets::m_dwBoneMatrix);
return this->BoneMatrix;
}
