Advertisement
tonti666

Untitled

Oct 17th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. #pragma once
  2. #include "SkinChanger.h"
  3. #include "Resolver.h"
  4. #include "HookIncludes.h"
  5. #include "GloveChanger.h"
  6. #include "LagComp.h"
  7. typedef void(__stdcall *fsn_t)(ClientFrameStage_t);
  8.  
  9. void __stdcall hkFrameStageNotify(ClientFrameStage_t curStage)
  10. {
  11. static auto ofunc = hooks::client.get_original<fsn_t>(36);
  12. if (g_Engine->IsConnected() && g_Engine->IsInGame())
  13. {
  14. if (curStage == FRAME_RENDER_START)
  15. {
  16. auto pLocal = g_EntityList->GetClientEntity(g_Engine->GetLocalPlayer());
  17. auto dwDeadFlag = NetVarManager->GetOffset("DT_CSPlayer", "deadflag"); // int
  18. if ((Menu::Window.MiscTab.OtherAimbotDebug.GetState()))
  19. {
  20. static bool debug = false;
  21. if (!debug)
  22. {
  23. ConVar* sv_cheats = g_CVar->FindVar("sv_cheats");
  24. SpoofedConvar* sv_cheats_spoofed = new SpoofedConvar(sv_cheats);
  25. sv_cheats_spoofed->SetInt(1);
  26. debug = true;
  27. }
  28. }
  29.  
  30. static bool debug = false;
  31. if (Menu::Window.MiscTab.OtherAimbotDebug.GetState() && pLocal->IsAlive())
  32. {
  33. if (!debug)
  34. {
  35. g_Engine->ClientCmd_Unrestricted("net_fakeloss 3");
  36. g_Engine->ClientCmd_Unrestricted("net_fakelag 123");
  37. g_Engine->ClientCmd_Unrestricted("net_fakejitter 53535353");
  38. debug = true;
  39. }
  40. }
  41. else if (!Menu::Window.MiscTab.OtherAimbotDebug.GetState() && pLocal->IsAlive())
  42. {
  43. debug = false;
  44. }
  45.  
  46. static bool debug1 = false;
  47. if (!Menu::Window.MiscTab.OtherAimbotDebug.GetState() && pLocal->IsAlive())
  48. {
  49. if (!debug1)
  50. {
  51. g_Engine->ClientCmd_Unrestricted("net_fakeloss 0");
  52. g_Engine->ClientCmd_Unrestricted("net_fakelag 0");
  53. g_Engine->ClientCmd_Unrestricted("net_fakejitter 0");
  54. debug1 = true;
  55. }
  56. }
  57. else if (Menu::Window.MiscTab.OtherAimbotDebug.GetState())
  58. {
  59. debug1 = false;
  60. }
  61. if (pLocal)
  62. {
  63. if (pLocal->IsAlive() && g_Input->m_fCameraInThirdPerson)
  64. {
  65. *reinterpret_cast<Vector*>(reinterpret_cast<DWORD>(pLocal) + dwDeadFlag + 4) = qLastTickAngles;
  66. }
  67. }
  68. }
  69. }
  70. ofunc(curStage);
  71. if (curStage == FRAME_NET_UPDATE_POSTDATAUPDATE_START) {
  72. if(g_Options.Ragebot.Resolver) Resolver3();
  73. if (g_Options.Skinchanger.Enabled)
  74. {
  75. GloveChanger();
  76. SkinChanger();
  77.  
  78. }
  79. backtracking->Update(g_Globals->tickcount);
  80. }
  81.  
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement