qwertyuiop3/Magic_Recode

SSO project

Closed this issue · 3 comments

Is the Simple Strafe Optimizer Project yours?
https://yougame.biz/threads/116394/

isn't

if ( (buttons & IN_MOVERIGHT) != 0 && angledy < -0.02 )
{
 in_law_strafe_angle_1 = roundf(strafe_angle / yaw_factor) * yaw_factor;
 target_viewangles_y = ucmd->viewangles_y - in_law_strafe_angle_1;
}
else
{
 if ( (buttons & IN_MOVELEFT) == 0 || angledy <= 0.0099999998 )
	 goto Cancel;
 ucmd->sidemove = -400.0;
 ucmd->buttons = buttons & ~IN_MOVERIGHT;
 in_law_strafe_angle_2 = roundf(strafe_angle / yaw_factor) * yaw_factor;
 target_viewangles_y = in_law_strafe_angle_2 + ucmd->viewangles_y;
}
ucmd->viewangles_y = target_viewangles_y;

can you give a source?

it's IDA pseudocode