-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Yo guys i'm too bad n i tried makin backtrack skeleton but it always crashs.
Where is my wrong.(Who can give me source of this shit)
Where is my wrong.(Who can give me source of this shit)
Код:
void CEsp::BacktrackHistory(IClientEntity* pEntity)
{
//---------------------------------------SKELETON THINGS---------------------------------------//
studiohdr_t* pStudioHdr = Interfaces::ModelInfo->GetStudiomodel(pEntity->GetModel());
float health = pEntity->GetHealth();
if (health > 100)
health = 100;
if (!pStudioHdr)
return;
Vector vParent, vChild, sParent, sChild;
// const auto matrix = backtracking->records[player_index].boneMatrix;
if (Menu::Window.LegitBotTab.AimbotBacktrack.GetState())
{
for (int i = 0; i < Interfaces::EntList->GetHighestEntityIndex(); i++)
{
int TeamNum = pEntity->GetTeamNum();
player_info_t pinfo;
if (pEntity && pEntity != hackManager.pLocal() && !pEntity->IsDormant())
{
if (Menu::Window.LegitBotTab.AimbotBacktrack.GetState())
{
if (Interfaces::Engine->GetPlayerInfo(i, &pinfo) && pEntity->IsAlive())
{
for (int t = 0; t < 12; ++t)
{
Vector screenbacktrack[64][12];
for (int j = 0; j < pStudioHdr->numbones; j++)
{
mstudiobone_t* pBone = pStudioHdr->GetBone(j);
if (pBone && (pBone->flags & BONE_USED_BY_HITBOX) && (pBone->parent != -1))
{
vChild = pEntity->GetBonePos(j);
vParent = pEntity->GetBonePos(pBone->parent);
if (Render::WorldToScreen(vParent, sParent) && Render::WorldToScreen(vChild, sChild))
{
Render::Line(sParent[0], sParent[1], sChild[0], sChild[1], Color(250, 250, 250, 255));
}
}
}
}
}
}
}
}
}
}
Последнее редактирование: