Hi, i want to calculate mousedx mousedy in OnPlayerRunCmd forward to check is player using aimbot(compare server mouse with client mouse, with a bit of inaccuracies of course). How i can build it properly? Currently, i found in the internet bunch of methods but it's all not even closer to client side mouse.
The method I tried:
PHP Code:
for (int i = 0;i< 2;i++)
{
float delta = viewangles[i] - old_angles[client][i];
float mouse = ( old_angles[client][i] - delta ) / (m_pitch_yaw[client][i] /* * cl_sensitivity[client]*/);
old_angles[client][i] = viewangles[i];
}
Any suggestions?