From 311d55ec1ffafb6bc8f40237f998428e23b84bfc Mon Sep 17 00:00:00 2001 From: PixelGM Date: Sat, 28 Aug 2021 13:35:33 +0700 Subject: [PATCH] 2 New Items (Look Desc) IGNOREINFECTED to INGNOREINFECTEDVISUALS Added Ignore Witch on Aimbot --- README.md | 4 ++-- baseentity.h | 8 ++++++-- drawing.h | 2 ++ engineclient.h | 3 ++- menu.cpp | 3 ++- sigs.h | 1 + variables.cpp | 3 ++- variables.h | 3 ++- visuals.cpp | 2 +- 9 files changed, 20 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 3fa7458..6e2e663 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# UwUHax +# l4d2hack -Thx B0ruk for the base! \ No newline at end of file +mega pasta by B0ruK diff --git a/baseentity.h b/baseentity.h index 6adb15a..b7f9354 100644 --- a/baseentity.h +++ b/baseentity.h @@ -285,9 +285,13 @@ struct CBaseEntity if (m_Sequence > 70) return false; } - + + //Return false to ingnore aimbot on Bitch xd if (m_Group == GROUP_BITCH) { + if (gCvars.IGNOREBITCH) + return false; + if (m_SolidFlags & 4) return false; @@ -357,7 +361,7 @@ struct CBaseEntity else if (m_Group == GROUP_INFECTED) { //Return false to undraw the infected - if (gCvars.INGOREINFECTED) + if (gCvars.INGOREINFECTEDVISUALS) return false; if (m_SolidFlags & 4) diff --git a/drawing.h b/drawing.h index 30e6094..192cb8c 100644 --- a/drawing.h +++ b/drawing.h @@ -1,4 +1,6 @@ #pragma once +#include +#include typedef unsigned long HFont; diff --git a/engineclient.h b/engineclient.h index c4d374c..9255d8e 100644 --- a/engineclient.h +++ b/engineclient.h @@ -1,4 +1,5 @@ -class INetChannel + +class INetChannel { private: __forceinline float GetLatency(int flow) diff --git a/menu.cpp b/menu.cpp index d430ee2..f446c46 100644 --- a/menu.cpp +++ b/menu.cpp @@ -75,6 +75,7 @@ void cMenu::InitMenuElements() msAimbot.AddElement(ONOFF, -3, L" AIM ENABLE", &gCvars.ENABLEAIM); msAimbot.AddElement(ONOFF, -3, L" AIM ON FIRE", &gCvars.AIMONFIRE); msAimbot.AddElement(ONOFF, -3, L" SILENT AIM", &gCvars.SILENTAIM); + msAimbot.AddElement(ONOFF, -3, L" IGNORE WITCH", &gCvars.IGNOREBITCH); msAimbot.RestartSection(); @@ -103,7 +104,7 @@ void cMenu::InitMenuElements() msEsp.AddElement(ONOFF, 0, L"ESP NAME", &gCvars.ESPNAME); msEsp.AddElement(ONOFF, 0, L"ESP BOX", &gCvars.ESPBOX); msEsp.AddElement(ONOFF, 0, L"ESP HEALTH", &gCvars.ESPHEALTH); - msEsp.AddElement(ONOFF, 0, L"IGNORE INFECTED", &gCvars.INGOREINFECTED); + msEsp.AddElement(ONOFF, 0, L"IGNORE INFECTED", &gCvars.INGOREINFECTEDVISUALS); msEsp.RestartSection(); msEsp.AddElement(ONOFF, iRowTwo, L" CHAMS", &gCvars.CHAMS); msEsp.AddElement(ONOFF, iRowTwo, L" CHAM XQZ", &gCvars.CHAMSXQZ); diff --git a/sigs.h b/sigs.h index ee5d592..99ca97d 100644 --- a/sigs.h +++ b/sigs.h @@ -1,5 +1,6 @@ #pragma once +#include #include #include #include diff --git a/variables.cpp b/variables.cpp index f178383..3aa8d60 100644 --- a/variables.cpp +++ b/variables.cpp @@ -13,10 +13,11 @@ void CConfig::Setup() SetupValue(gCvars.NOSPREAD, false, ("Config"), ("NOSPREAD")); SetupValue(gCvars.AUTOFIRE, false, ("Config"), ("AUTOFIRE")); SetupValue(gCvars.SILENTAIM, false, ("Config"), ("SILENTAIM")); + SetupValue(gCvars.IGNOREBITCH, false, ("Config"), ("IGNOREBITCH")); SetupValue(gCvars.ESPBOX, false, ("Config"), ("ESPBOX")); SetupValue(gCvars.ESPNAME, false, ("Config"), ("ESPNAME")); SetupValue(gCvars.ESPHEALTH, false, ("Config"), ("ESPHEALTH")); - SetupValue(gCvars.INGOREINFECTED, false, ("Config"), ("INGOREINFECTED")); + SetupValue(gCvars.INGOREINFECTEDVISUALS, false, ("Config"), ("INGOREINFECTEDVISUALS")); SetupValue(gCvars.CHAMS, false, ("Config"), ("CHAMS")); SetupValue(gCvars.CHAMSXQZ, false, ("Config"), ("CHAMSXQZ")); SetupValue(gCvars.CHAMHAND, false, ("Config"), ("CHAMHAND")); diff --git a/variables.h b/variables.h index f81657f..6fa2511 100644 --- a/variables.h +++ b/variables.h @@ -48,10 +48,11 @@ public: float NOSPREAD; float AUTOFIRE; float SILENTAIM; + float IGNOREBITCH; float ESPBOX; float ESPNAME; float ESPHEALTH; - float INGOREINFECTED; + float INGOREINFECTEDVISUALS; float CHAMS; float CHAMSXQZ; float CHAMHAND; diff --git a/visuals.cpp b/visuals.cpp index fb16d26..0f4341b 100644 --- a/visuals.cpp +++ b/visuals.cpp @@ -338,7 +338,7 @@ void ESP::DrawPlayer(CBaseEntity * pEntity, CBaseEntity * local) { if (gCvars.ESPNAME) { - if (gCvars.INGOREINFECTED) + if (gCvars.INGOREINFECTEDVISUALS) return; Draw::DrawStringA(Fonts::m_MenuFont, true, middle, rect.top - 15, 255, 255, 255, 255, "zombie");