Separation between ValidEntity and ValidEntityVisuals

This commit is contained in:
PixelGM 2021-08-28 13:19:59 +07:00
parent e86b3a42ee
commit 4fa3f9b09d
2 changed files with 3 additions and 2 deletions

View File

@ -313,7 +313,7 @@ struct CBaseEntity
return true; return true;
} }
const bool ValidEntityIgnoreInfected() const bool ValidEntityVisuals()
{ {
if (this->IsDormant()) if (this->IsDormant())
return false; return false;
@ -356,6 +356,7 @@ struct CBaseEntity
else if (m_Group == GROUP_INFECTED) else if (m_Group == GROUP_INFECTED)
{ {
//Return false to undraw the infected
if (gCvars.INGOREINFECTED) if (gCvars.INGOREINFECTED)
return false; return false;

View File

@ -292,7 +292,7 @@ void ESP::draw(CBaseEntity* pLocal)
continue; continue;
//Draw Player Box ESP //Draw Player Box ESP
if (pEntity->GetGroup() && pEntity->ValidEntityIgnoreInfected()) if (pEntity->GetGroup() && pEntity->ValidEntityVisuals())
{ {
DrawPlayer(pEntity, pLocal); DrawPlayer(pEntity, pLocal);
} }