glow not following player state fix

This commit is contained in:
buyBread 2019-10-23 13:24:39 +03:00
parent 8280dc1d4a
commit 7656e61dfd
4 changed files with 0 additions and 8 deletions

View File

@ -8,7 +8,6 @@
<AutoVariable width="fill" target="chams.health" label="Health"/>
<AutoVariable width="fill" target="chams.recursive" label="Recursive"/>
<AutoVariable width="fill" target="chams.single-pass" label="Single pass"/>
<AutoVariable width="fill" target="chams.self-rainbow" label="Self Rainbow"/>
<AutoVariable width="fill" target="chams.white-weapons" label="White Weapons"/>
<LabeledObject width="fill" label="Solid when">
<Select target="glow.solid-when">

View File

@ -11,7 +11,6 @@
<Option name="Not visible" value="2"/>
</Select>
</LabeledObject>
<AutoVariable width="fill" target="glow.self-rainbow" label="Self Rainbow"/>
</List>
</Box>
<Box padding="12 6 6 6" width="content" height="content" name="Targets" x="170">

View File

@ -27,7 +27,6 @@ static settings::Boolean weapons_white{ "chams.white-weapons", "true" };
static settings::Boolean legit{ "chams.legit", "false" };
static settings::Boolean singlepass{ "chams.single-pass", "false" };
static settings::Boolean chamsself{ "chams.self", "true" };
static settings::Boolean rainbow{ "chams.self-rainbow", "true" };
static settings::Boolean disco_chams{ "chams.disco", "false" };
settings::Boolean enable{ "chams.enable", "false" };

View File

@ -247,11 +247,6 @@ rgba_t EffectGlow::GlowColor(IClientEntity *entity)
}
break;
case ENTITY_PLAYER:
if (ent->m_IDX == LOCAL_E->m_IDX)
if (LOCAL_E->m_iTeam() == TEAM_BLU)
return colors::blu;
else
return colors::red;
if (health && playerlist::IsDefault(ent))
{
return colors::Health_dimgreen(ent->m_iHealth(), ent->m_iMaxHealth());