Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. void Indicators() {
  2. if (Globals::LocalPlayer) {
  3. if (Globals::LocalPlayer->IsAlive()) {
  4.  
  5. if (!Globals::LocalPlayer->AnimState())
  6. return;
  7.  
  8. static int iWidth, iHeight;
  9. g_pEngine->GetScreenSize(iWidth, iHeight);
  10.  
  11. static bool _pressed = true;
  12. if (c_config::get().indicators)
  13. {
  14. if (Globals::LocalPlayer->IsAlive())
  15. {
  16. auto local_player = Globals::pLocalEntity = g_pEntityList->GetClientEntity(g_pEngine->GetLocalPlayer());
  17. float desyncAmt = GetMaxDesyncDelta(local_player->AnimState());
  18. float diffrence = (Globals::RealAngle.y - Globals::LocalPlayer->GetLowerBodyYaw());
  19. float Velocity = Globals::LocalPlayer->GetVelocity().Length2D();
  20. int offset = 40;
  21. Color fake = desyncAmt <= 29 ? Color(255, 0, 0) : (desyncAmt >= 55 ? Color(132, 195, 16) : Color(255 - (desyncAmt * 2.55), desyncAmt * 2.55, 0));
  22. std::string choke;
  23. auto NetChannel = g_pEngine->GetNetChannel();
  24.  
  25. if (!NetChannel)
  26. return;
  27.  
  28. /*choke += "choke: " + std::to_string(NetChannel->m_nChokedPackets);
  29. g_pSurface->DrawT(20, (iHeight - offset - 90), Color(255, 255, 255), Globals::gIndicators, false, choke.c_str()); */
  30.  
  31. if (Velocity < 285) // we can make this seperate but im lazy af so no
  32. g_pSurface->DrawT(11, (iHeight - offset - 50), Color(132, 195, 16), Globals::gIndicators, false, "");
  33. else
  34. g_pSurface->DrawT(11, (iHeight - offset - 50), Color(132, 195, 16), Globals::gIndicators, false, "LC");
  35.  
  36. if (GetAsyncKeyState(c_config::get().fakeduck_bind))
  37. g_pSurface->DrawT(11, (iHeight - offset - 25), Color(255, 255, 255), Globals::gIndicators, false, "DUCK");;
  38.  
  39. if (GetAsyncKeyState(c_config::get().fakeduck_bind))
  40. g_pSurface->DrawT(11, (iHeight - offset - 50), fake, Globals::gIndicators, false, "FAKE");
  41. else
  42. //if (desyncAmt < 29) && g_Menu.Config.DesyncAngle)
  43. g_pSurface->DrawT(11, (iHeight - offset - 25), fake, Globals::gIndicators, false, "FAKE");
  44. }
  45. }
  46. }
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement