Пользователь
-
Автор темы
- #1
Gamesense leg movement.
C++:
void movement::leg_movement(c_user_cmd* cmd)
{
int buttons = cmd->m_buttons & ~(IN_MOVERIGHT | IN_MOVELEFT | IN_BACK | IN_FORWARD);
if (!g_context.configs.antiaim.leg_movement)
{
if (cmd->m_forwardmove <= 0.0)
{
if (cmd->m_forwardmove < 0.0)
buttons |= IN_BACK;
}
else
buttons |= IN_FORWARD;
if (cmd->m_sidemove > 0.0)
goto LABEL_15;
if (cmd->m_sidemove >= 0.0)
goto LABEL_18;
goto LABEL_17;
}
if (g_context.configs.antiaim.leg_movement != 1)
goto LABEL_18;
if (cmd->m_forwardmove <= 0.0)
{
if (cmd->m_forwardmove < 0.0)
buttons |= IN_FORWARD;
}
else
buttons |= IN_BACK;
if (cmd->m_sidemove > 0.0)
{
LABEL_17:
buttons |= IN_MOVELEFT;
goto LABEL_18;
}
if (cmd->m_sidemove < 0.0)
LABEL_15:
buttons |= IN_MOVERIGHT;
LABEL_18:
cmd->m_buttons = buttons;
}