daily pastebin goal
37%
SHARE
TWEET

CO TO MA BYC XDD

a guest Feb 13th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  if (Lbywithin35(pEntity))//if lby and eye angles subtracted < 35 then we assume that theyre using an lby breaker
  2.              {
  3.                  if (Backtracking->arr_infos.at(pEntity->GetIndex()).TickRecords.size() < 2)
  4.                      return;
  5.                  for (auto& r : record.TickRecords) {
  6.                      if (r.m_flLowerBodyYawTarget == prevlby)
  7.                          continue;
  8.  
  9.                      prevlby = r.m_flLowerBodyYawTarget;
  10.  
  11.                      float diff = r.m_flLowerBodyYawTarget - prevlby;
  12.  
  13.                      avg += static_cast<int>(diff);
  14.                      count++;
  15.                  }
  16.                  avg /= count;
  17.                  pEntity->GetEyeAnglesXY()->y += avg;
  18.              }
RAW Paste Data
Top