Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (c_config::get().desync == 4) {
- float Desync = Globals::LocalPlayer->DesyncValue() / 100 * g_Math.NormalizeYaw(Globals::pCmd->viewangles.y) + 30.0f;
- float MM = 1.10f;
- float m_flDesyncAmount = 58.f;
- if (Globals::pCmd->buttons & IN_DUCK)
- MM *= 3;
- if (Globals::pCmd->tick_count % 2)
- MM = -MM;
- static float LBY = 0;
- if (g_pGlobalVars->curtime < LBY && Globals::pCmd->sidemove <4 && Globals::pCmd->sidemove > -4)
- Globals::pCmd->sidemove = MM;
- if (!Globals::bSendPacket) {
- if (g_pGlobalVars->curtime >= LBY && Globals::LocalPlayer->GetVelocity().Length() < 4) {
- Globals::pCmd->viewangles.y += 180.0f;
- LBY = g_pGlobalVars->curtime + 0.22f;
- }
- else {
- Globals::pCmd->viewangles.y += Desync;
- }
- }
- m_flDesyncAmount = Desync / 2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement