Fix issues with the backtrack cache not being updated correctly
This commit is contained in:
parent
73b34c6fd8
commit
fd32b0662d
@ -236,7 +236,6 @@ static void CreateMove()
|
||||
slow_aim = *normal_slow_aim;
|
||||
fov = *normal_fov;
|
||||
|
||||
updateShouldBacktrack();
|
||||
spectatorUpdate();
|
||||
|
||||
if (CE_BAD(LOCAL_E) || !LOCAL_E->m_bAlivePlayer() || CE_BAD(LOCAL_W))
|
||||
@ -291,6 +290,10 @@ static void CreateMove()
|
||||
if (proj_start_vel)
|
||||
cur_proj_start_vel = *proj_start_vel;
|
||||
}
|
||||
|
||||
// Update backtrack status
|
||||
updateShouldBacktrack();
|
||||
|
||||
// Refresh our best target
|
||||
CachedEntity *target_entity = target_last = RetrieveBestTarget(aimkey_status);
|
||||
if (CE_BAD(target_entity))
|
||||
|
@ -309,7 +309,7 @@ void CreateMoveLate()
|
||||
{
|
||||
for (auto &tick_data : ent_data)
|
||||
{
|
||||
if (isTickInRange(tick_data.tickcount))
|
||||
if (tick_data.in_range)
|
||||
{
|
||||
float distance = GetFov(LOCAL_E->m_vecAngle(), g_pLocalPlayer->v_Eye, tick_data.hitboxes.at(0).center);
|
||||
if (distance < cursor_distance)
|
||||
|
Reference in New Issue
Block a user