Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (c_config::get().desync == 3 && Globals::LocalPlayer->AnimState()) {
- float desync = Globals::LocalPlayer->DesyncValue();
- float balance = 1.0f;
- int type = 2;
- if (type == 2)
- balance = -1.0f;
- if (g_pGlobalVars->curtime <= next_lby_update(Globals::pCmd->viewangles.y, Globals::pCmd)) {
- auto net_channel = g_pEngine->GetNetChannel();
- if (!net_channel)
- return;
- if (net_channel->m_nChokedPackets >= 2) {
- Globals::pCmd->viewangles.y = g_Math.NormalizeYaw(Globals::pCmd->viewangles.y);
- return;
- }
- if (type == 1)
- Globals::pCmd->viewangles.y -= 100.0f;
- else
- Globals::pCmd->viewangles.y += (balance * 120.0f);
- }
- else if (type != 1) {
- Globals::pCmd->viewangles.y -= (desync + 30.0f) * balance;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement