chams color aimbot

This commit is contained in:
BenCat07 2018-04-08 20:53:50 +02:00
parent f905e64945
commit 40b05c7a3e
3 changed files with 9 additions and 1 deletions

View File

@ -34,6 +34,7 @@ public:
return enabled;
};
void SetEntityColor(CachedEntity* ent, rgba_t color);
rgba_t ChamsColor(IClientEntity *entity);
bool ShouldRenderChams(IClientEntity *entity);
void RenderChams(int idx);

View File

@ -216,7 +216,9 @@ void CreateMove()
}
#if ENABLE_VISUALS == 1
static effect_chams::EffectChams Effectchams;
hacks::shared::esp::SetEntityColor(target_entity, colors::pink);
Effectchams.SetEntityColor(target_entity, colors::pink);
#endif
// Local player check + Aimkey

View File

@ -101,10 +101,15 @@ void EffectChams::EndRenderChams()
CMatRenderContextPtr ptr(GET_RENDER_CONTEXT);
g_IVModelRender->ForcedMaterialOverride(nullptr);
}
bool data[32] = {};
void EffectChams::SetEntityColor (CachedEntity* ent, rgba_t color) {
data[ent->m_IDX] = color;
}
rgba_t EffectChams::ChamsColor(IClientEntity *entity)
{
CachedEntity *ent = ENTITY(entity->entindex());
if (data[entity->entindex()])
return colors::pink;
if (CE_BAD(ent))
return colors::white;
if (re::C_BaseCombatWeapon::IsBaseCombatWeapon(entity))