Подведи собственные итоги года совместно с YOUGAME и забери ценные призы! Перейти

[Help]LBY BACKTRACK

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
28 Май 2017
Сообщения
16
Реакции
3
Sup guys so the lby backtrack isnt working

this is where its setted
info.backtrack = Vector(entity->GetEyeAngles().x, lby_to_back[entity->GetIndex()], 0.f);

the backtrack code
void CAimbot::LBYBacktrack(SDK::CUserCmd *pCmd, SDK::CBaseEntity* pLocal, SDK::CBaseEntity* pEntity)
{
int index = pEntity->GetIndex();
float PlayerVel = abs(pEntity->GetVelocity().Length2D());
bool playermoving;
if (PlayerVel > 0.f)
playermoving = true;
else
playermoving = false;
float lby = pEntity->GetLowerBodyYaw();
static float lby_timer[65];
static float lby_proxy[65];
float server_time = pLocal->GetTickBase() * Interfaces::Globals->interval_per_tick;
if (lby_proxy[index] != pEntity->GetLowerBodyYaw() && playermoving == false)
{
lby_timer[index] = 0;
lby_proxy[index] = pEntity->GetLowerBodyYaw();
}
if (playermoving == false)
{
if (server_time >= lby_timer[index])
{
tick_to_back[index] = pEntity->GetSimTime();
lby_to_back[index] = pEntity->GetLowerBodyYaw();
lby_timer[index] = server_time + 1.1;
}
}
else
{
tick_to_back[index] = 0;
lby_timer[index] = 0;
}
if (GoodBTTick(TIME_TO_TICKS(tick_to_back[index])))
backtrack_tick[index] = true;
else
backtrack_tick[index] = false;
}

and tick

bool CAimbot::GoodBTTick(int tick)
{
auto nci = Interfaces::Engine->GetNetChannelInfo();
if (!nci) {
return false;
}
float correct = clamp(nci->GetLatency(FLOW_OUTGOING) + LerpTime(), 0.f, 1.f);
float delta_time = correct - (Interfaces::Globals->curtime - TICKS_TO_TIME(tick));
return fabsf(delta_time) < 0.2f;
}
 
Назад
Сверху Снизу