Fixed aimbot snapping to weird angles when first grabbing a target with low FoV. (#3416)

This commit is contained in:
gir489 2024-07-24 03:16:04 -04:00 committed by GitHub
parent 847799d80f
commit 7e326d129e

View File

@ -293,11 +293,12 @@ namespace big
static void adjust_position_for_target_velocity(rage::fvector3& target_position)
{
const auto target_velocity = get_velocity(m_target);
const auto my_velocity = get_velocity(g_local_player);
if (target_velocity == rage::fvector3{})
return;
target_position += (target_velocity - get_velocity(g_local_player));
target_position += (target_velocity - my_velocity);
}
virtual void on_tick() override