mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-22 20:17:24 +08:00
Fix player tracking (#10)
This commit is contained in:
parent
7f29e70f4e
commit
fa5c7cebdc
@ -70,6 +70,9 @@ namespace big
|
||||
// Patch script network check
|
||||
memory::byte_patch::make(g_pointers->m_gta.m_model_spawn_bypass, std::vector{0x90, 0x90})->apply(); // this is no longer integrity checked
|
||||
|
||||
// Increase Start Get Presence Attributes limit from 32 to 100
|
||||
memory::byte_patch::make(g_pointers->m_sc.m_num_handles_patch, std::vector{0x64})->apply();
|
||||
|
||||
// Prevent the attribute task from failing
|
||||
memory::byte_patch::make(g_pointers->m_sc.m_read_attribute_patch, std::vector{0x90, 0x90})->apply();
|
||||
memory::byte_patch::make(g_pointers->m_sc.m_read_attribute_patch_2, std::vector{0xB0, 0x01})->apply();
|
||||
|
@ -2029,6 +2029,15 @@ namespace big
|
||||
g_pointers->m_sc.m_start_get_presence_attributes = ptr.as<functions::start_get_presence_attributes>();
|
||||
}
|
||||
},
|
||||
// SGPA Num Handles Patch
|
||||
{
|
||||
"NHP",
|
||||
"83 FD 20 0F 87 54 02 00 00",
|
||||
[](memory::handle ptr)
|
||||
{
|
||||
g_pointers->m_sc.m_num_handles_patch = ptr.add(2).as<PVOID>();
|
||||
}
|
||||
},
|
||||
// Read Attribute Patch
|
||||
{
|
||||
"RAP",
|
||||
|
@ -11,6 +11,7 @@ namespace big
|
||||
functions::update_presence_attribute_string m_update_presence_attribute_string;
|
||||
|
||||
functions::start_get_presence_attributes m_start_get_presence_attributes;
|
||||
PVOID m_num_handles_patch;
|
||||
PVOID m_read_attribute_patch;
|
||||
PVOID m_read_attribute_patch_2;
|
||||
};
|
||||
|
@ -345,7 +345,7 @@ namespace big
|
||||
|
||||
void player_database_service::update_player_states(bool tracked_only)
|
||||
{
|
||||
constexpr auto bucket_size = 32;
|
||||
constexpr auto bucket_size = 100;
|
||||
|
||||
std::vector<std::vector<rage::rlScHandle>> gamer_handle_buckets{};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user