parent
27204159d6
commit
fcb8b2dad6
@ -200,14 +200,12 @@ rgba_t EffectChams::ChamsColor(IClientEntity *entity)
|
|||||||
|
|
||||||
bool EffectChams::ShouldRenderChams(IClientEntity *entity)
|
bool EffectChams::ShouldRenderChams(IClientEntity *entity)
|
||||||
{
|
{
|
||||||
if (!isHackActive() || !*effect_chams::enable)
|
if (!isHackActive() || !*effect_chams::enable || CE_BAD(LOCAL_E))
|
||||||
return false;
|
|
||||||
if (!effect_chams::enable)
|
|
||||||
return false;
|
return false;
|
||||||
if (entity->entindex() < 0)
|
if (entity->entindex() < 0)
|
||||||
return false;
|
return false;
|
||||||
CachedEntity *ent = ENTITY(entity->entindex());
|
CachedEntity *ent = ENTITY(entity->entindex());
|
||||||
if (ent->m_IDX == LOCAL_E->m_IDX && !chamsself)
|
if (!chamsself && ent->m_IDX == LOCAL_E->m_IDX)
|
||||||
return false;
|
return false;
|
||||||
switch (ent->m_Type())
|
switch (ent->m_Type())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user