RID Spoofing Improvements (#666)

* Fix stability issues with handler hook
* Better RID spoofing
This commit is contained in:
maybegreat48
2022-12-08 12:23:57 +00:00
committed by GitHub
parent 7db4c9d20b
commit a435e49e50
15 changed files with 139 additions and 40 deletions

View File

@ -45,7 +45,7 @@ namespace big
static void system_self_globals();
static void system_update_pointers();
static void system_desync_kick_protection();
static void system_force_session_host();
static void system_spoofing();
static void system_mission_creator();
static void system_auto_tp();

View File

@ -6,7 +6,7 @@
namespace big
{
static bool bLastForceHost = false;
void looped::system_force_session_host()
void looped::system_spoofing()
{
if (bLastForceHost != g->session.force_session_host && gta_util::get_network()->m_game_session_state == 0)
{
@ -29,5 +29,15 @@ namespace big
bLastForceHost = g->session.force_session_host;
}
if (g->spoofing.rockstar_id != g->spoofing.applied_spoof_rockstar_id && gta_util::get_network()->m_game_session_state == 0)
{
g->spoofing.applied_spoof_rockstar_id = g->spoofing.spoof_rockstar_id;
}
if (g->spoofing.spoof_rockstar_id != g->spoofing.should_spoof_rockstar_id && gta_util::get_network()->m_game_session_state == 0)
{
g->spoofing.should_spoof_rockstar_id = g->spoofing.spoof_rockstar_id;
}
}
}