๐Ÿ™ aimbot adventure continue

Posts 1โ€“4 of 4 ยท Page 1 of 1
๐Ÿ™ aimbot adventure continue
Today i compute my main trouble in aimbot. t is wrong calculate angles.
and look at this picture:

imagine the projection of the game on this circle.
in the imaginary part of the second of this circle, calculation it is not true.
form -90 to 0 it calculated wrong Y angle.
look at this:


Here is my CalcAngle source code:
Code:
void CalcAngle(Vector &src, Vector &dst, Vector &angles, int rcs)
{
	double delta[3] = { (src.x - dst.x), (src.y - dst.y), (src.z - dst.z) };
	double hyp = sqrt(delta[0] * delta[0] + delta[1] * delta[1]);
	angles.x = (float)(asinf(delta[2] / hyp) * 57.295779513082f) - MyPlayer.Punch.x * 2.0f * rcs;
	angles.y = (float)(atanf(delta[1] / delta[0]) * 57.295779513082f) - MyPlayer.Punch.y * 2.0f * rcs;
	angles.z = 0;

	if (delta[0] >= 0.0) { angles.y += 180.0f; }
}
How can i fix it?
whats the use of
Code:
 - MyPlayer.Punch.x * 2.0f * rcs;
?
And once more, n_o_r_m_a_l_i_z_e_e_v_e_r_y_t_h_i_n_g.

I said it atleast 5 times already, yet you ignore it.
1 week has passed and no further replies have been made by the OP. Assuming solved.

/Closed.
Posts 1โ€“4 of 4 ยท Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us