Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void __fastcall PaintTraverse_Hooked(PVOID pPanels, int edx, unsigned int vguiPanel, bool forceRepaint, bool allowForce)
- {
- if (Menu::Window.VisualsTab.Active.GetState() && Menu::Window.VisualsTab.OtherNoScope.GetState() && strcmp("HudZoom", Interfaces::Panels->GetName(vguiPanel)) == 0)
- return;
- oPaintTraverse(pPanels, vguiPanel, forceRepaint, allowForce);
- static unsigned int FocusOverlayPanel = 0;
- static bool FoundPanel = false;
- if (!FoundPanel)
- {
- PCHAR szPanelName = (PCHAR)Interfaces::Panels->GetName(vguiPanel);
- if (strstr(szPanelName, "MatSystemTopPanel"))
- {
- FocusOverlayPanel = vguiPanel;
- FoundPanel = true;
- }
- }
- else if (FocusOverlayPanel == vguiPanel)
- {
- if (Menu::Window.VisualsTab.Clock.GetState())
- {
- static float rainbow;
- rainbow += 0.0004f;
- if (rainbow > 1.f) rainbow = 0.f;
- Render::Textf(10, 24, Color::FromHSB(rainbow, 1.f, 1.f), Render::Fonts::Clock, ("\n Version: 3.2.5 \n"));
- }
- if (Menu::Window.MiscTab.Watermark.GetState())
- {
- static float rainbow;
- rainbow += 0.0004f;
- if (rainbow > 1.f) rainbow = 0.f;
- Render::Text(7, 7, Color::FromHSB(rainbow, 1.f, 1.f), Render::Fonts::WaterMark, (XorStr("ATRIOS")));
- RECT scrn = Render::GetViewport();
- if(Menu::Window.LegitBotTab.AimbotEnable.GetState() || Menu::Window.LegitBotTab.TriggerEnable.GetState() || Menu::Window.LegitBotTab.LegitChoice.GetIndex() > 0 || Menu::Window.VisualsTab.Active.GetState() && !(Menu::Window.RageBotTab.AimbotEnable.GetState() || Menu::Window.RageBotTab.AntiAimPitch.GetIndex() > 0))
- Render::Text(scrn.right-300, scrn.top+5, Color(100, 200, 200), Render::Fonts::Clock, (XorStr("Legit-Mode")));
- else if (Menu::Window.RageBotTab.AimbotEnable.GetState() || Menu::Window.RageBotTab.AntiAimPitch.GetIndex() > 0 && !(Menu::Window.LegitBotTab.AimbotEnable.GetState() || Menu::Window.LegitBotTab.TriggerEnable.GetState() || Menu::Window.LegitBotTab.LegitChoice.GetIndex() > 0))
- Render::Text(scrn.right - 300, scrn.top +5, Color(200, 150, 100), Render::Fonts::Clock, (XorStr("Rage-Mode")));
- }
- if (Interfaces::Engine->IsConnected() && Interfaces::Engine->IsInGame())
- Hacks::DrawHacks();
- if (Menu::Window.VisualsTab.lbyidicador.GetState())
- {
- CUserCmd* cmdlist = *(CUserCmd**)((DWORD)Interfaces::pInput + 0xEC);
- CUserCmd* pCmd = cmdlist;
- IClientEntity* localplayer = (IClientEntity*)Interfaces::EntList->GetClientEntity(Interfaces::Engine->GetLocalPlayer());
- //RECT TextSize = Render::GetTextSize(Render::Fonts::LBY, "LBY");
- RECT scrn = Render::GetViewport();
- if (Interfaces::Engine->IsConnected() && Interfaces::Engine->IsInGame())
- if ((pCmd->viewangles.y - *localplayer->GetLowerBodyYawTarget() >= -35 && pCmd->viewangles.y - *localplayer->GetLowerBodyYawTarget() <= 35) && localplayer->GetVelocity().Length2D() >= 0)
- Render::Text(10, scrn.bottom - 22, Color(255, 0, 0, 255), Render::Fonts::LBY, "LBY");
- else
- Render::Text(10, scrn.bottom - 22, Color(0, 255, 0, 255), Render::Fonts::LBY, "LBY");
- }
- if (Interfaces::Engine->IsConnected() && Interfaces::Engine->IsInGame() && Menu::Window.VisualsTab.OtherHitmarker.GetState())
- hitmarker::singleton()->on_paint();
- if (Menu::Window.VisualsTab.Active.GetState())
- {
- float AmbientRedAmount = Menu::Window.VisualsTab.AmbientRed.GetValue();
- float AmbientGreenAmount = Menu::Window.VisualsTab.AmbientGreen.GetValue();
- float AmbientBlueAmount = Menu::Window.VisualsTab.AmbientBlue.GetValue();
- ConVar* AmbientRedCvar = Interfaces::CVar->FindVar("mat_ambient_light_r");
- *(float*)((DWORD)&AmbientRedCvar->fnChangeCallback + 0xC) = NULL;
- AmbientRedCvar->SetValue(AmbientRedAmount);
- ConVar* AmbientGreenCvar = Interfaces::CVar->FindVar("mat_ambient_light_g");
- *(float*)((DWORD)&AmbientGreenCvar->fnChangeCallback + 0xC) = NULL;
- AmbientGreenCvar->SetValue(AmbientGreenAmount);
- ConVar* AmbientBlueCvar = Interfaces::CVar->FindVar("mat_ambient_light_b");
- *(float*)((DWORD)&AmbientBlueCvar->fnChangeCallback + 0xC) = NULL;
- AmbientBlueCvar->SetValue(AmbientBlueAmount);
- }
- player_info_t pinfo;
- /*TESTING SOME SHIT*/
- Menu::DoUIFrame();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement