Movement + Silent Aim

Posts 1–5 of 5 · Page 1 of 1
Movement + Silent Aim
So, Im Making A Internal CSGO hack atm and iv fun into a issue that needs a formula that i have no idea where to start on, When using Silent Aim Your Movment is Offset to the silent aim's angle instead of your Client side angle.

so when i send the movement packet 'cmd->sidemove = -650.f;' (in my createmove function) it will move me sideways from where The server sees me looking. Is there a way to change how it sees my movement so i move via client side angles. if so how / could i have a formula that would fit at the bottom of my createmove func to do so?

Thanks Heaps To Anyone Who Can Help. The Client And Server Angles Are Vectors (probably already know, but putting here shit) i dont think any source is neaded as all is neaded is a formula (im guessing here, probably wrong!)
but im happy to give any asked for, (not whole source tho as ill get detected Dx)
Thankyou to anybody who can help me as this is really annoying as i cant make a AA that has a offset Turn as it will F*** up my movement.

Thanks.
Ok here:
Code:
void CorrectMovement(QAngle vOldAngles, CUserCmd* pCmd, float fOldForward, float fOldSidemove)
{
	float deltaView = pCmd->viewangles.y - vOldAngles.y;
	float f1;
	float f2;

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

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

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

	pCmd->forwardmove = cos(DEG2RAD(deltaView)) * fOldForward + cos(DEG2RAD(deltaView + 90.f)) * fOldSidemove;
	pCmd->sidemove = sin(DEG2RAD(deltaView)) * fOldForward + sin(DEG2RAD(deltaView + 90.f)) * fOldSidemove;
}
usage:
Code:
QAngle old = cmd->viewangles;
cmd->viewangles = ClampAnglesQ(newAngle);
CorrectMovement(oldA, cmd, cmd->forwardmove, cmd->sidemove);
/Moved to the correct section.
THANKYOU SOOO MUCH, im soo happy someone helped. the last time i asked a question on this fourm nobody helped. BUT THANK U SOO MUCH NOW I CAN BE AWESOME AND MOVE WELL. atleast there is a part of this fourm that does not flame all the time. xD have a great day, hope Christmas is a good day for you.
Seems this has been solved.

/Closed.
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us