do not render buildings carried by lcoal player

This commit is contained in:
BenCat07 2018-02-18 10:13:08 +01:00 committed by GitHub
parent 059233d39c
commit 9fc2705689
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,6 +147,10 @@ bool EffectChams::ShouldRenderChams(IClientEntity *entity)
return false;
if (!ent->m_bEnemy && !(teammate_buildings || teammates))
return false;
if (ent->m_iHealth == 0 || !ent->m_iHealth)
return false;
if (CE_BYTE(LOCAL_E, netvar.m_bCarryingObject) && LOCAL_E->m_vecOrigin.DistTo(ent->m_vecOrigin) <= 85.0f)
return false;
return true;
case ENTITY_PLAYER:
if (!players)