-
Автор темы
- #1
В чите на базе CSGO Simple перестал работать glow esp. Как пофиксить?
Код в glow.cpp функции Run():
Код в glow.cpp функции Run():
C++:
for (auto i = 0; i < g_GlowObjManager->m_GlowObjectDefinitions.Count(); i++) {
auto& glowObject = g_GlowObjManager->m_GlowObjectDefinitions[i];
auto entity = reinterpret_cast<C_BasePlayer*>(glowObject.m_pEntity);
if (glowObject.IsUnused())
continue;
if (!entity || entity->IsDormant())
continue;
auto class_id = entity->GetClientClass()->m_ClassID;
auto color = Color{};
switch (class_id) {
case ClassId_CCSPlayer:
{
auto is_enemy = entity->m_iTeamNum() != g_LocalPlayer->m_iTeamNum();
if (entity->HasC4() && is_enemy && g_Options.glow_c4_carrier) {
color = Color(g_Options.color_glow_c4_carrier);
break;
}
if (!g_Options.glow_players || !entity->IsAlive())
continue;
if (!is_enemy && g_Options.glow_enemies_only)
continue;
color = is_enemy ? Color(g_Options.color_glow_enemy) : Color(g_Options.color_glow_ally);
break;
}
case ClassId_CChicken:
if (!g_Options.glow_chickens)
continue;
entity->m_bShouldGlow() = true;
color = Color(g_Options.color_glow_chickens);
break;
case ClassId_CBaseAnimating:
if (!g_Options.glow_defuse_kits)
continue;
color = Color(g_Options.color_glow_defuse);
break;
case ClassId_CPlantedC4:
if (!g_Options.glow_planted_c4)
continue;
color = Color(g_Options.color_glow_planted_c4);
break;
default:
{
if (entity->IsWeapon()) {
if (!g_Options.glow_weapons)
continue;
color = Color(g_Options.color_glow_weapons);
}
}
}
glowObject.m_flRed = color.r() / 255.0f;
glowObject.m_flGreen = color.g() / 255.0f;
glowObject.m_flBlue = color.b() / 255.0f;
glowObject.m_flAlpha = color.a() / 255.0f;
glowObject.m_bRenderWhenOccluded = true;
glowObject.m_bRenderWhenUnoccluded = false;
}