Ayyware noscope
Had some help with this but thought it would be nice to release seeing people struggling their asses off.
In PaintTraverse_Hooked:
{
Hacks:
rawHacks();
if (Menu::Window.VisualsTab.OtherNoScope.GetState() && hackManager.pLocal()) {
if (hackManager.pLocal()->IsScoped())
{
int width, height;
Interfaces::Engine->GetScreenSize(width, height);
Render::Line(width / 2, 0, width / 2, height, Color(0, 0, 0, 255));
Render::Line(0, height / 2, width, height / 2, Color(0, 0, 0, 255));
ConVar* drawhud = Interfaces::CVar->FindVar("cl_DrawHud");
*(int*)((DWORD)&drawhud->fnChangeCallback + 0xC) = 0;
drawhud->SetValue(0);
}
else
{
ConVar* drawhud = Interfaces::CVar->FindVar("cl_DrawHud");
drawhud->SetValue(1);
}
}
}
hfhf
In PaintTraverse_Hooked:
{
Hacks:
rawHacks();if (Menu::Window.VisualsTab.OtherNoScope.GetState() && hackManager.pLocal()) {
if (hackManager.pLocal()->IsScoped())
{
int width, height;
Interfaces::Engine->GetScreenSize(width, height);
Render::Line(width / 2, 0, width / 2, height, Color(0, 0, 0, 255));
Render::Line(0, height / 2, width, height / 2, Color(0, 0, 0, 255));
ConVar* drawhud = Interfaces::CVar->FindVar("cl_DrawHud");
*(int*)((DWORD)&drawhud->fnChangeCallback + 0xC) = 0;
drawhud->SetValue(0);
}
else
{
ConVar* drawhud = Interfaces::CVar->FindVar("cl_DrawHud");
drawhud->SetValue(1);
}
}
}
hfhf



Thanks xD