Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (rotate) {
- if (rotate == 1) {
- if (jitter_side == 1)
- Globals::pCmd->viewangles.y += inverse_desync;
- else
- Globals::pCmd->viewangles.y += desync - 190.0f;
- }
- }
- else {
- if (jitter_side == 1)
- Globals::pCmd->viewangles.y += desync - 190.0f;
- else
- Globals::pCmd->viewangles.y += inverse_desync;
- //g_Context->m_bShouldChoke = true;
- }
- if (++m_iRotate >= 3)
- m_iRotate = 0;
- }
- else {
- #if 1
- float stretch = Globals::pCmd->viewangles.y;
- if (type == Stretch)
- stretch -= 90.0f;
- else
- stretch += 90.0f;
- stretch = AngleNormalize(stretch);
- if (DesyncRotate(stretch, type == Stretch))
- return;
- #endif
- float desync = GetMaxDelta(Globals::LocalPlayer->AnimState());
- float balance = 1.0f;
- if (type == Balance)
- balance = -1.0f;
- if (lbyUpdate()) {
- /*if (!g_Context->m_bShouldChoke && g_ClientState->chokedcommands >= 2) {
- Globals::pCmd->viewangles.y = AngleNormalize(Globals::pCmd->viewangles.y);
- return;
- }*/
- if (type == Still)
- Globals::pCmd->viewangles.y -= 100.0f;
- else
- Globals::pCmd->viewangles.y += (balance * 120.0f);
- }
- else if (type != Still) {
- // lby breaker
- Globals::pCmd->viewangles.y -= (desync + 30.0f) * balance;
- }
- // g_Context->m_bShouldChoke = true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement