refactor: aimbot (#2902)

* Fixed ped flags system not allowing Michael's flag to be set.
* Refactored is_a_ped_type_we_dont_care_about logic to not be extraneous and inefficient.
* Fixed completely broken and wrong FoV calculations.
* No Sway patch.

Co-authored-by: gir489 <100792176+gir489returns@users.noreply.github.com>
This commit is contained in:
Quentin
2024-07-17 23:17:18 +02:00
committed by GitHub
parent 90f7b0710c
commit b1f623decd
15 changed files with 585 additions and 179 deletions
+27
View File
@@ -1686,6 +1686,24 @@ namespace big
g_pointers->m_gta.m_can_create_vehicle = ptr.as<functions::can_create_vehicle>();
}
},
// Cam Gameplay Director
{
"CGD",
"48 8B 05 ? ? ? ? 38 98 ? ? ? ? 8A C3",
[](memory::handle ptr)
{
g_pointers->m_gta.m_cam_gameplay_director = ptr.add(3).rip().as<uintptr_t*>();
}
},
// Cam Gameplay Director Update
{
"CGDU",
"E9 CD 09 00 00",
[](memory::handle ptr)
{
g_pointers->m_gta.m_cam_gameplay_director_update = ptr.sub(0x32).as<functions::cam_gameplay_directory_update>();
}
},
// Format Integer
{
"FI",
@@ -1867,6 +1885,15 @@ namespace big
{
g_pointers->m_gta.m_create_pool_item = ptr.sub(0x6).as<PVOID>();
}
},
// Scope Sway Function
{
"SSF",
"74 ? F3 0F 10 15 ? ? ? ? 41 B9 ? ? ? ? 48 8B D0 48 8B CF 44 89 7C 24",
[](memory::handle ptr)
{
g_pointers->m_gta.m_scope_sway_function = ptr.as<PVOID>();
}
}
>(); // don't leave a trailing comma at the end