Fixed aimbot snapping to weird angles when first grabbing a target with low FoV. (#3416)
This commit is contained in:
parent
c975a14576
commit
c15c57335f
@ -293,11 +293,12 @@ namespace big
|
|||||||
static void adjust_position_for_target_velocity(rage::fvector3& target_position)
|
static void adjust_position_for_target_velocity(rage::fvector3& target_position)
|
||||||
{
|
{
|
||||||
const auto target_velocity = get_velocity(m_target);
|
const auto target_velocity = get_velocity(m_target);
|
||||||
|
const auto my_velocity = get_velocity(g_local_player);
|
||||||
|
|
||||||
if (target_velocity == rage::fvector3{})
|
if (target_velocity == rage::fvector3{})
|
||||||
return;
|
return;
|
||||||
|
|
||||||
target_position += (target_velocity - get_velocity(g_local_player));
|
target_position += (target_velocity - my_velocity);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void on_tick() override
|
virtual void on_tick() override
|
||||||
|
Reference in New Issue
Block a user