Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. // Paint Traverse Hooked function
  2. void __fastcall PaintTraverse_Hooked(PVOID pPanels, int edx, unsigned int vguiPanel, bool forceRepaint, bool allowForce)
  3. {
  4. IClientEntity *pLocal = Interfaces::EntList->GetClientEntity(Interfaces::Engine->GetLocalPlayer());
  5.  
  6. if (!strcmp(("HudZoom"), Interfaces::Panels->GetName(vguiPanel)) && Menu::Window.VisualsTab.OtherNoScope.GetState() > 0 && pLocal->IsScoped() && Interfaces::Engine->IsConnected() && Interfaces::Engine->IsInGame() && pLocal->IsAlive())
  7. {
  8. return;
  9. }
  10.  
  11. oPaintTraverse(pPanels, vguiPanel, forceRepaint, allowForce);
  12.  
  13. static unsigned int FocusOverlayPanel = 0;
  14. static bool FoundPanel = false;
  15.  
  16. if (!FoundPanel)
  17. {
  18. PCHAR szPanelName = (PCHAR)Interfaces::Panels->GetName(vguiPanel);
  19. if (strstr(szPanelName, "MatSystemTopPanel"))
  20. {
  21. FocusOverlayPanel = vguiPanel;
  22. FoundPanel = true;
  23. }
  24. }
  25. else if (FocusOverlayPanel == vguiPanel)
  26. {
  27.  
  28. Render::Text(10, 10, Color(255, 255, 255, 255), Render::Fonts::ESP , "Project-Rose");
  29.  
  30.  
  31. if (Interfaces::Engine->IsConnected() && Interfaces::Engine->IsInGame())
  32. Hacks::DrawHacks();
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement