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 c975a14576
commit c15c57335f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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