Separation between ValidEntity and ValidEntityVisuals
This commit is contained in:
parent
e86b3a42ee
commit
4fa3f9b09d
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user