Incorporate eThreadState changes (#3558)
Some checks are pending
Nightly Build / Build Nightly (push) Waiting to run
Nightly Build / Recreate Release (push) Blocked by required conditions
Nightly Build / Check Recent Commit (push) Successful in 31s

This commit is contained in:
gir489 2024-08-23 17:49:11 -04:00 committed by GitHub
parent d83be697a3
commit e61dc44a55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ include(FetchContent)
FetchContent_Declare( FetchContent_Declare(
gtav_classes gtav_classes
GIT_REPOSITORY https://github.com/Yimura/GTAV-Classes.git GIT_REPOSITORY https://github.com/Yimura/GTAV-Classes.git
GIT_TAG aebd69542e58fab8975da76c3e555b122ddef5d6 GIT_TAG 21cbc2076b8d0ac9cbd98d05ebabadcced546f30
GIT_PROGRESS TRUE GIT_PROGRESS TRUE
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
BUILD_COMMAND "" BUILD_COMMAND ""

View File

@ -117,7 +117,7 @@ namespace big
if (!stack || !net_component) if (!stack || !net_component)
return; return;
thread->m_context.m_state = rage::eThreadState::unk_3; thread->m_context.m_state = rage::eThreadState::paused;
g.m_hunt_the_beast_thread = thread; g.m_hunt_the_beast_thread = thread;
for (int i = 0; i < 15; i++) for (int i = 0; i < 15; i++)

View File

@ -369,7 +369,7 @@ namespace big
mp_weapons_thread_id = SYSTEM::START_NEW_SCRIPT_WITH_NAME_HASH(script_hash, 1424); mp_weapons_thread_id = SYSTEM::START_NEW_SCRIPT_WITH_NAME_HASH(script_hash, 1424);
auto thread = gta_util::find_script_thread_by_id(mp_weapons_thread_id); auto thread = gta_util::find_script_thread_by_id(mp_weapons_thread_id);
if (thread) if (thread)
thread->m_context.m_state = rage::eThreadState::unk_3; thread->m_context.m_state = rage::eThreadState::paused;
else else
LOG(FATAL) << "Failed to find MP_Weapons script!"; LOG(FATAL) << "Failed to find MP_Weapons script!";
SCRIPT::SET_SCRIPT_WITH_NAME_HASH_AS_NO_LONGER_NEEDED(script_hash); SCRIPT::SET_SCRIPT_WITH_NAME_HASH_AS_NO_LONGER_NEEDED(script_hash);

View File

@ -35,7 +35,7 @@ namespace big
if (!m_thread) if (!m_thread)
return false; return false;
m_thread->m_context.m_state = rage::eThreadState::unk_3; m_thread->m_context.m_state = rage::eThreadState::paused;
return true; return true;
} }

View File

@ -127,7 +127,7 @@ namespace big::scripts
return; return;
} }
launcher->m_context.m_state = rage::eThreadState::unk_3; // prevent bad things from happening to the thread in the meantime launcher->m_context.m_state = rage::eThreadState::paused; // prevent bad things from happening to the thread in the meantime
// 3) Remove players from that annoying waiting stage // 3) Remove players from that annoying waiting stage
if (check_players_in_state(launcher, 5)) if (check_players_in_state(launcher, 5))