Refactored Allow All Vehicles (#2604)

* Refactored Allow All Vehicles to use the current seat the ped is in to fetch the animation info that the car is currently using.
* Update gtav-classes tag hash.
* Removed GROUP_SMG from the allow all weapons false scenario.
This commit is contained in:
gir489
2023-12-19 11:15:52 -05:00
committed by GitHub
parent 4e83f3f25f
commit 5e58512a1e
5 changed files with 36 additions and 35 deletions
+4 -4
View File
@@ -1742,13 +1742,13 @@ namespace big
g_pointers->m_gta.m_nullsub = ptr.as<void(*)()>();
}
},
// Get Ped Bone
// Get Ped Seat
{
"GPB",
"48 89 5C 24 ?? 48 89 6C 24 ?? 48 89 74 24 ?? 57 48 83 EC 60 48 8B 01 41 8B E8 48 8B F2",
"GPS",
"E8 ? ? ? ? 48 85 DB 74 66",
[](memory::handle ptr)
{
g_pointers->m_gta.m_get_ped_bone = ptr.as<functions::get_ped_bone>();
g_pointers->m_gta.m_get_ped_seat = ptr.add(1).rip().as<functions::get_ped_seat>();
}
}
>(); // don't leave a trailing comma at the end