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

View File

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