Advertisement
Guest User

Untitled

a guest
Jun 12th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. if ((Config.bThirdperson) || Menu::Window.RageBotTab.AccuracyPositionAdjustment.GetState())
  2. {
  3. static bool rekt = false;
  4.  
  5. if (!rekt)
  6. {
  7. ConVar* sv_cheats = Interfaces::CVar->FindVar("sv_cheats");
  8. SpoofedConvar* sv_cheats_spoofed = new SpoofedConvar(sv_cheats);
  9. sv_cheats_spoofed->SetInt(1);
  10. rekt = true;
  11. }
  12. }
  13.  
  14. if (Config.bToggleMiscellaneous)
  15. {
  16. if (Config.iThirdpersonAngle == 0 && pLocal->IsAlive() && *(bool*)((DWORD)Interfaces::pInput + 0xAD))
  17. {
  18. *(Vector*)((DWORD)pLocal + 0x31D8) = LastAngleAA;
  19. }
  20.  
  21. else if (Config.iThirdpersonAngle == 1 && pLocal->IsAlive() && *(bool*)((DWORD)Interfaces::pInput + 0xAD))
  22. {
  23. *(Vector*)((DWORD)pLocal + 0x31D8) = vecLastAngleAntiAimReal;
  24. }
  25.  
  26. else if (Config.iThirdpersonAngle == 2 && pLocal->IsAlive() && *(bool*)((DWORD)Interfaces::pInput + 0xAD))
  27. {
  28. *(Vector*)((DWORD)pLocal + 0x31D8) = vecLowerBodyYawThirdPersonAngle;
  29. }
  30.  
  31. static bool rekt1 = false;
  32. if (Config.bThirdperson && pLocal->IsAlive())
  33. {
  34. if (Config.iThirdpersonKey)
  35. {
  36. *(bool*)((DWORD)Interfaces::pInput + 0xAD) = false;
  37. *(float*)((DWORD)Interfaces::pInput + 0x31D8) = 0;
  38.  
  39. if (GetKeyState(Config.iThirdpersonKey) && pLocal->IsAlive())
  40. {
  41. *(bool*)((DWORD)Interfaces::pInput + 0xAD) = true;
  42. *(float*)((DWORD)Interfaces::pInput + 0x31D8) = Config.fThirdpersonRange;
  43. }
  44. }
  45. }
  46. }
  47.  
  48. if (!Config.bThirdperson || !Config.bToggleMiscellaneous)
  49. {
  50. *(bool*)((DWORD)Interfaces::pInput + 0xAD) = false;
  51. *(float*)((DWORD)Interfaces::pInput + 0x31D8) = 0;
  52. }
  53.  
  54. static bool kek = false;
  55. if (Config.bThirdperson && pLocal->IsAlive() && Config.bToggleMiscellaneous)
  56. {
  57. if (!kek)
  58. {
  59. Interfaces::Engine->ClientCmd_Unrestricted("thirdperson");
  60. kek = true;
  61. }
  62. }
  63. else if (pLocal->IsAlive() == 0)
  64. {
  65. kek = false;
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement