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