Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. if (c_config::get().desync == 4) {
  2. float Desync = Globals::LocalPlayer->DesyncValue() / 100 * g_Math.NormalizeYaw(Globals::pCmd->viewangles.y) + 30.0f;
  3. float MM = 1.10f;
  4. float m_flDesyncAmount = 58.f;
  5. if (Globals::pCmd->buttons & IN_DUCK)
  6. MM *= 3;
  7. if (Globals::pCmd->tick_count % 2)
  8. MM = -MM;
  9.  
  10. static float LBY = 0;
  11.  
  12. if (g_pGlobalVars->curtime < LBY && Globals::pCmd->sidemove <4 && Globals::pCmd->sidemove > -4)
  13. Globals::pCmd->sidemove = MM;
  14.  
  15. if (!Globals::bSendPacket) {
  16. if (g_pGlobalVars->curtime >= LBY && Globals::LocalPlayer->GetVelocity().Length() < 4) {
  17. Globals::pCmd->viewangles.y += 180.0f;
  18. LBY = g_pGlobalVars->curtime + 0.22f;
  19. }
  20. else {
  21. Globals::pCmd->viewangles.y += Desync;
  22. }
  23. }
  24.  
  25. m_flDesyncAmount = Desync / 2;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement