AA / Aimbot corrections?

Posts 1–10 of 10 · Page 1 of 1
AA / Aimbot corrections?
Hey! I made an aimbot (with a little help on this forum) and I made an AntiAim. Its just a simple y = 89.0f and x= 180.00f. its pretty good but when I turn it on, my view angles set to these positions. (sorry for myenglis) so i cant move simply. Like when i press left it goes backwards xD and when i shoot with the aimbot my viewangle set to the enemy and i have the same problem like in antiaim.
Code is :
cmd->viewangles.y += 89.0f;
cmd->viewangles.x = 180.00f;


aimbot :
cmd->viewangles.x = aimangle.x; // Y
cmd->viewangles.y = aimangle.y; // X yes i am a retarded
Code:
	void Math::MovementCorrection(QAngle oldAngles, CUserCmd * cmd, float oldForward, float oldSideMove)
	{
		// side/forward move correction
		float deltaView;
		float f1;
		float f2;

		if (oldAngles.y < 0.f)
			f1 = 360.0f + oldAngles.y;
		else
			f1 = oldAngles.y;

		if (cmd->viewangles.y < 0.0f)
			f2 = 360.0f + cmd->viewangles.y;
		else
			f2 = cmd->viewangles.y;

		if (f2 < f1)
			deltaView = abs(f2 - f1);
		else
			deltaView = 360.0f - abs(f1 - f2);

		deltaView = 360.0f - deltaView;

		cmd->forwardmove = cos(DEG2RAD(deltaView)) * oldForward + cos(DEG2RAD(deltaView + 90.f)) * oldSideMove;
		cmd->sidemove = sin(DEG2RAD(deltaView)) * oldForward + sin(DEG2RAD(deltaView + 90.f)) * oldSideMove;
	}
Credits to aixxe.
Quote Originally Posted by Don Coderleone View Post
Code:
	void Math::MovementCorrection(QAngle oldAngles, CUserCmd * cmd, float oldForward, float oldSideMove)
	{
		// side/forward move correction
		float deltaView;
		float f1;
		float f2;

		if (oldAngles.y < 0.f)
			f1 = 360.0f + oldAngles.y;
		else
			f1 = oldAngles.y;

		if (cmd->viewangles.y < 0.0f)
			f2 = 360.0f + cmd->viewangles.y;
		else
			f2 = cmd->viewangles.y;

		if (f2 < f1)
			deltaView = abs(f2 - f1);
		else
			deltaView = 360.0f - abs(f1 - f2);

		deltaView = 360.0f - deltaView;

		cmd->forwardmove = cos(DEG2RAD(deltaView)) * oldForward + cos(DEG2RAD(deltaView + 90.f)) * oldSideMove;
		cmd->sidemove = sin(DEG2RAD(deltaView)) * oldForward + sin(DEG2RAD(deltaView + 90.f)) * oldSideMove;
	}
Credits to aixxe.
thanks man
//solved
Quote Originally Posted by britguy420 View Post
cmd->viewangles.x = 180.00f;
hf with untrusted.
Quote Originally Posted by affe2626 View Post
hf with untrusted.
i found this in TeamGamerfood source. And i used it in MM and still not banned
Quote Originally Posted by britguy420 View Post
i found this in TeamGamerfood source. And i used it in MM and still not banned
X can only be from -89 to 89. Maybe TGF has mixed up Y and X, idk. Y can go from -179 to 179.
Quote Originally Posted by affe2626 View Post
X can only be from -89 to 89. Maybe TGF has mixed up Y and X, idk. Y can go from -179 to 179.
actually

stolen from polak the p coder from another forum
:

Code:
  if ( v12 )
      {
        if ( !(unsigned __int8)(*(int (__fastcall **)(__int64))(*(_QWORD *)v12 + 4016LL))(v12) )
        {
          v22 = v21->viewangles_x;
          if ( v22 > 89.099998
            || v22 < -89.099998
            || (v28 = v21->viewangles_y, v28 > 180.10001)
            || v28 < -180.10001
            || (v29 = v21->viewangles_z, v29 > 90.099998)
            || v29 < -90.099998 )
          {
            a2 = (__int64)&v37[112 * v19];
            sub_8F77A0(v12, (__int64)v21);
          }
        }
      }
Quote Originally Posted by WildAssassinz View Post
actually

stolen from polak the p coder from another forum
:

Code:
  if ( v12 )
      {
        if ( !(unsigned __int8)(*(int (__fastcall **)(__int64))(*(_QWORD *)v12 + 4016LL))(v12) )
        {
          v22 = v21->viewangles_x;
          if ( v22 > 89.099998
            || v22 < -89.099998
            || (v28 = v21->viewangles_y, v28 > 180.10001)
            || v28 < -180.10001
            || (v29 = v21->viewangles_z, v29 > 90.099998)
            || v29 < -90.099998 )
          {
            a2 = (__int64)&v37[112 * v19];
            sub_8F77A0(v12, (__int64)v21);
          }
        }
      }
Thats mean i can use it or not? its looks like UT angles fix me if not
Quote Originally Posted by WildAssassinz View Post
actually

stolen from polak the p coder from another forum
:

Code:
  if ( v12 )
      {
        if ( !(unsigned __int8)(*(int (__fastcall **)(__int64))(*(_QWORD *)v12 + 4016LL))(v12) )
        {
          v22 = v21->viewangles_x;
          if ( v22 > 89.099998
            || v22 < -89.099998
            || (v28 = v21->viewangles_y, v28 > 180.10001)
            || v28 < -180.10001
            || (v29 = v21->viewangles_z, v29 > 90.099998)
            || v29 < -90.099998 )
          {
            a2 = (__int64)&v37[112 * v19];
            sub_8F77A0(v12, (__int64)v21);
          }
        }
      }
Yeah, I did know that it wasn't 179 and 89 but I use it to be safe xd. But the Z, can that be 90.9? Thought it was 50 to -50 lol

- - - Updated - - -

Quote Originally Posted by britguy420 View Post
Thats mean i can use it or not? its looks like UT angles fix me if not
v22 is angle x.
v28 is angle y.
v29 is angle z.
The || are OR operators so if any expression evaluates as true you'll get banned.

*angle* > X is pretty obvious.

- - - Updated - - -

Quote Originally Posted by WildAssassinz View Post
actually

stolen from polak the p coder from another forum
:

Code:
  if ( v12 )
      {
        if ( !(unsigned __int8)(*(int (__fastcall **)(__int64))(*(_QWORD *)v12 + 4016LL))(v12) )
        {
          v22 = v21->viewangles_x;
          if ( v22 > 89.099998
            || v22 < -89.099998
            || (v28 = v21->viewangles_y, v28 > 180.10001)
            || v28 < -180.10001
            || (v29 = v21->viewangles_z, v29 > 90.099998)
            || v29 < -90.099998 )
          {
            a2 = (__int64)&v37[112 * v19];
            sub_8F77A0(v12, (__int64)v21);
          }
        }
      }
Btw, if you made v12 always false, wouldn't that skip the checks? EDIT: I'm retarded, the checks are server-sided xD
Wasn't reading your code, sorry. Store your viewangle at a temp, and clamp that temp then pass it to cmd->viewangles.
Problem solved.
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us