Official site anti-cheat Ultra Core Protector

Home Download F.A.Q. Addons Monitor Forum Support Advertise English version site UCP Anti-Cheat    Russian version site UCP Anti-Cheat
Ultra Core Protector - is the client-server anti-cheat freeware, for server protection from unscrupulous players.

Abilities Supported games  
Half-Life
Condition Zero
Counter-Strike 1.6
Day of Defeat
Adrenaline Gamer
Team Fortress Classic
Counter-Strike Source
MU Online
Ragnarok Online
Half-Life 2 Deathmatch
Adrenaline Gamer 2
Team Fortress 2
CSGO: Glow color (AYYWARE)

Ok, so my glow color is influenced by chams colors when both of them are on.
I tried to fix this by adding glow to my sceneend hook, but i have the same problem.
How to fix this?

My code
void __fastcall hkSceneEnd(void *pEcx, void *pEdx) {

if (Menu::Window.AntiAimTab.FakeAngleChams.GetState())
{
IClientEntity* pLocal = Interfaces::EntList->GetClientEntity(Interfaces::Engine->GetLocalPlayer());
if (pLocal)
{
static IMaterial* CoveredLit = CreateMaterial(true);
if (CoveredLit)
{
Vector OrigAng;
OrigAng = pLocal->GetEyeAngles();
pLocal->SetAngle2(Vector(0, lineFakeAngle, 0));

bool LbyColor = true;
float NormalColor[3] = { 1, 1, 1 };
float lbyUpdateColor[3] = { 0, 1, 0 };
Interfaces::RenderView->SetColorModulation(LbyColor ? lbyUpdateColor : NormalColor);
Interfaces::ModelRender->ForcedMaterialOverride(CoveredLit);
pLocal->draw_model(STUDIO_RENDER, 255);
Interfaces::ModelRender->ForcedMaterialOverride(nullptr);
pLocal->SetAngle2(OrigAng);
}
pSceneEnd(pEcx);
}
}
if (Menu::Window.VisualsTab.OptionsGlow.GetState())
{
int GlowR = Menu::Window.TabColor.GlowR.GetValue();
int GlowG = Menu::Window.TabColor.GlowG.GetValue();
int GlowB = Menu::Window.TabColor.GlowB.GetValue();
int GlowZ = Menu::Window.TabColor.GlowZ.GetValue();

CGlowObjectManager* GlowObjectManager = (CGlowObjectManager*)GlowManager;

for (int i = 0; i < GlowObjectManager->size; ++i)
{
CGlowObjectManager::GlowObjectDefinition_t* glowEntity = &GlowObjectManager->m_GlowObjectDefinitions[i];
IClientEntity* Entity = glowEntity->getEntity();

if (glowEntity->IsEmpty() || !Entity)
continue;

switch (Entity->GetClientClass()->m_ClassID)
{
case 35:
if (Menu::Window.VisualsTab.OptionsGlow.GetState())
{
if (!Menu::Window.VisualsTab.FiltersPlayers.GetState() && !(Entity->GetTeamNum() == hackManager.pLocal()->GetTeamNum()))
break;
if (Menu::Window.VisualsTab.FiltersEnemiesOnly.GetState() && (Entity->GetTeamNum() == hackManager.pLocal()->GetTeamNum()))
break;

if (GameUtils::IsVisible(hackManager.pLocal(), Entity, 0))
{
glowEntity->set((Entity->GetTeamNum() == hackManager.pLocal()->GetTeamNum()) ? Color(GlowR, GlowG, GlowB, GlowZ) : Color(GlowR, GlowG, GlowB, GlowZ));
}
else
{
glowEntity->set((Entity->GetTeamNum() == hackManager.pLocal()->GetTeamNum()) ? Color(GlowR, GlowG, GlowB, GlowZ) : Color(GlowR, GlowG, GlowB, GlowZ));
}
}
}
}
}
}
}


 



Home | Download | F.A.Q. | Addons | Forum | Banners | Sitemap | Directory | Support
Copyright © 2008-2015 UCP. All rights reserved. Privacy Policy. Siter.