chams color aimbot
This commit is contained in:
parent
f905e64945
commit
40b05c7a3e
@ -34,6 +34,7 @@ public:
|
|||||||
return enabled;
|
return enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void SetEntityColor(CachedEntity* ent, rgba_t color);
|
||||||
rgba_t ChamsColor(IClientEntity *entity);
|
rgba_t ChamsColor(IClientEntity *entity);
|
||||||
bool ShouldRenderChams(IClientEntity *entity);
|
bool ShouldRenderChams(IClientEntity *entity);
|
||||||
void RenderChams(int idx);
|
void RenderChams(int idx);
|
||||||
|
@ -216,7 +216,9 @@ void CreateMove()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if ENABLE_VISUALS == 1
|
#if ENABLE_VISUALS == 1
|
||||||
|
static effect_chams::EffectChams Effectchams;
|
||||||
hacks::shared::esp::SetEntityColor(target_entity, colors::pink);
|
hacks::shared::esp::SetEntityColor(target_entity, colors::pink);
|
||||||
|
Effectchams.SetEntityColor(target_entity, colors::pink);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Local player check + Aimkey
|
// Local player check + Aimkey
|
||||||
|
@ -101,10 +101,15 @@ void EffectChams::EndRenderChams()
|
|||||||
CMatRenderContextPtr ptr(GET_RENDER_CONTEXT);
|
CMatRenderContextPtr ptr(GET_RENDER_CONTEXT);
|
||||||
g_IVModelRender->ForcedMaterialOverride(nullptr);
|
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)
|
rgba_t EffectChams::ChamsColor(IClientEntity *entity)
|
||||||
{
|
{
|
||||||
CachedEntity *ent = ENTITY(entity->entindex());
|
CachedEntity *ent = ENTITY(entity->entindex());
|
||||||
|
if (data[entity->entindex()])
|
||||||
|
return colors::pink;
|
||||||
if (CE_BAD(ent))
|
if (CE_BAD(ent))
|
||||||
return colors::white;
|
return colors::white;
|
||||||
if (re::C_BaseCombatWeapon::IsBaseCombatWeapon(entity))
|
if (re::C_BaseCombatWeapon::IsBaseCombatWeapon(entity))
|
||||||
|
Reference in New Issue
Block a user