SHARE
TWEET

Untitled

a guest Jul 21st, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. void Yaw() {
  3.     auto LocalPlayer = g::pLocalEntity;
  4.     auto maxDesyncDelta = LocalPlayer->GetMaxDesyncDelta();
  5.     auto LBYhasUpdated = LBYUpdate();
  6.     bool forceLBYOff = !g_Menu.Config.breaklby;
  7.     bool goOn = true;
  8.    
  9.     float finalReal;
  10.     switch (g_Menu.Config.Yaw) {
  11.     case 0: //static
  12.         finalReal = 0;
  13.         break;
  14.     case 1: // switch
  15.         finalReal = (-g_Menu.Config.switchRange / 2.f + std::fmodf(g_pGlobalVars->curtime * g_Menu.Config.switchSpeed, g_Menu.Config.switchRange)); //switch
  16.         break;
  17.     case 2: // jitter
  18.         finalReal = rand() % g_Menu.Config.JitterRange;
  19.         break;
  20.  
  21.     }
  22.  
  23.     float finalFake;
  24.  
  25.     switch (g_Menu.Config.DesyncYawNew) {
  26.     case 0:
  27.         finalFake = 0; // none
  28.         break;
  29.     case 1:
  30.         finalFake = maxDesyncDelta; //balance
  31.         break;
  32.     case 2:
  33.         finalFake = -55; //stretch
  34.         break;
  35.     case 3:
  36.         finalFake = 33; //still
  37.         forceLBYOff = true;
  38.         break;
  39.     case 4:
  40.         finalFake = (-maxDesyncDelta / 2.f + std::fmodf(g_pGlobalVars->curtime * g_Menu.Config.switchSpeed, maxDesyncDelta)); //switch (kinda shit gotta improve)
  41.         break;
  42.     case 5:
  43.         finalFake = maxDesyncDelta;
  44.         if (LBYhasUpdated)
  45.             finalFake = finalFake - 120.f; // split, whenever breaks lby it goes inverse of the + 120 the lby break does, by going -120; though it still goes past the max desync delta, i honestly dont care
  46.     case 6:
  47.         bool hasFlicked = false;
  48.         if (hasFlicked) {
  49.             finalFake = maxDesyncDelta;
  50.         }
  51.         else {
  52.             finalFake = -maxDesyncDelta;
  53.             hasFlicked = !hasFlicked;
  54.         }
  55.         break;
  56.  
  57.     }
  58.  
  59.     if (g::bSendPacket) {// do real
  60.         if (LBYhasUpdated & !forceLBYOff) {
  61.             g::bSendPacket = true;
  62.             g::pCmd->viewangles.y = g::pCmd->viewangles.y + 120.f;
  63.             goOn = false;
  64.         }
  65.         if (goOn) {
  66.             g::pCmd->viewangles.y = FreestandingAngle + finalReal;
  67.         }
  68.     }
  69.     if (!g::bSendPacket) {// do fake
  70.         if (g_Menu.Config.FakeRelativeToReal) {
  71.             g::pCmd->viewangles.y = FreestandingAngle + finalReal + finalFake;
  72.         }
  73.         else {
  74.             g::pCmd->viewangles.y = FreestandingAngle + finalFake;
  75.         }
  76.     }
  77. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top