mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-22 20:17:24 +08:00
Fixed aimbot snapping to weird angles when first grabbing a target with low FoV. (#3416)
This commit is contained in:
parent
847799d80f
commit
7e326d129e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user