When my aimbot locked enemy's head, even if he move behind walls it still following his head even not WH enabled. How can I fix this?.
I'm the creator of my hack ofc not zero to end I tried crosshair id now it's also shoot behind the smoke
if (Aimbot)
{
if (pTarget != null && Input.GetKey(KeyCode.Q))
{
Vector3 BoneToAim = pTarget.Avatar.Decorator.GetBone(BoneIndex.Head).p osition;
if (!LegitBot)
{
BoneToAim = pTarget.Avatar.Decorator.GetBone(BoneIndex.Head).p osition;
}
else if (LegitBot)
{
BoneToAim = new Vector3(pTarget.Avatar.Decorator.GetBone(BoneIndex .Hips).position.x, pTarget.Avatar.Decorator.GetBone(BoneIndex.Hips).p osition.y + (Vector3.Distance(pTarget.Avatar.Decorator.GetBone (BoneIndex.Hips).position, pTarget.Avatar.Decorator.GetBone(BoneIndex.Head).p osition) / 2), pTarget.Avatar.Decorator.GetBone(BoneIndex.Head).p osition.z);
}
GameObject obj = new GameObject
{
transform = { position = Camera.main.transform.position, rotation = Camera.main.transform****tation }
};
obj.transform.LookAt(BoneToAim, Vector3.up);
float x = obj.transform****tation.eulerAngles.x;
if (x > 180f)
{
x -= 360f;
}
UserInput.SetRotation(obj.transform****tation.eule rAngles.y, x);
what i need to change for my aimbot dont lock other player?