Sceneend chams errors on ayyware (Sorry for wrong section :P )
Code:
void __fastcall hkSceneEnd(void* thisptr, int edx, void* ctx, void* state, const ModelRenderInfo_t &pInfo, matrix3x4 *pCustomBoneToWorld) {
static auto scene_end_o = Hooks::VMTModelRender.GetOriginalFunction<sceneend>(9);
static IMaterial* norm = CreateMaterial(false, true, false);
for (int i = 1; i < Interfaces::Engine->GetMaxClients(); i++) {
IClientEntity* ent = (IClientEntity*)Interfaces::EntList->GetClientEntity(i);
IMaterial* mat = GetCurrentZMaterial(Options.Visuals.matierial);
IClientEntity* pLocal = (IClientEntity*)Interfaces::EntList->GetClientEntity(Interfaces::Engine->GetLocalPlayer());
if (ent && pLocal) {
if (mat) {
Interfaces::ModelRender->ForcedMaterialOverride(norm);
ent->DrawModel2(0x1, 255);
Interfaces::ModelRender->ForcedMaterialOverride(nullptr);
if (Menu::Window.VisualsTab.OtherFakeChams.GetState())
{
if (pLocal)
{
IMaterial* mat = CreateMaterial(false, false, false);
//IMaterial *covered = ChamsStyle1337 ? CoveredLit : CoveredFlat;
if (mat)
{
Vector OrigAng;
OrigAng = pLocal->GetEyeAngles();
pLocal->SetAngle2(Vector(0, pLocal->GetLowerBodyYaw(), 0)); // paste here ur AA.y value or pLocal->GetLby() (for example)
bool LbyColor = false; // u can make LBY INDICATOR. When LbyColor is true. Color will be Green , if false it will be White
float NormalColor[3] = { 1, 1, 1 };
float lbyUpdateColor[3] = { 0, 1, 0 };
Interfaces::RenderView->SetColorModulation(LbyColor ? lbyUpdateColor : NormalColor);
Interfaces::RenderView->SetBlend(1.0f);
Interfaces::ModelRender->ForcedMaterialOverride(mat);
pLocal->DrawModel2(STUDIO_RENDER, 255);
Interfaces::ModelRender->ForcedMaterialOverride(nullptr);
pLocal->SetAngle2(OrigAng);
oDrawModelExecute(thisptr, ctx, state, pInfo, pCustomBoneToWorld);
}
}
}
}
}
}
}
htt ps:// pr nt.sc /hhak1c
somehow i need to know whats getcurrentzmaterial on ayyware. and whats options visuals on ayyware also sceneend type name is not allowed help me out with that too.

