From 05aadfe98e898bcdcbc356f7a9f7632fcde4c890 Mon Sep 17 00:00:00 2001 From: gir489 <100792176+gir489returns@users.noreply.github.com> Date: Mon, 8 Jul 2024 15:13:06 -0400 Subject: [PATCH] Fix C4/Flare limit and not working (#3308) * Closes #3307 * Fix instant respawn. --- cmake/gtav-classes.cmake | 2 +- src/backend/looped/self/fast_respawn.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/gtav-classes.cmake b/cmake/gtav-classes.cmake index 13ad13d2..8ce2cfef 100644 --- a/cmake/gtav-classes.cmake +++ b/cmake/gtav-classes.cmake @@ -3,7 +3,7 @@ include(FetchContent) FetchContent_Declare( gtav_classes GIT_REPOSITORY https://github.com/Yimura/GTAV-Classes.git - GIT_TAG f37ff433e2910d5db3af7ddaee2abc82c508b0c0 + GIT_TAG 06c58d9c11a9a22336947fbe430d5f4951ff34d7 GIT_PROGRESS TRUE CONFIGURE_COMMAND "" BUILD_COMMAND "" diff --git a/src/backend/looped/self/fast_respawn.cpp b/src/backend/looped/self/fast_respawn.cpp index 2db9a707..7dd7b3fb 100644 --- a/src/backend/looped/self/fast_respawn.cpp +++ b/src/backend/looped/self/fast_respawn.cpp @@ -15,14 +15,14 @@ namespace big *scr_globals::disable_wasted_sound.as() = true; // triggers respawn instantly upon death, has no effect if not respawning so no need to check if the player's dead - misc::set_bit(&(*scr_globals::freemode_properties.at(1689).at(756).as()), 1); // Update: freemode -> KILL_STRIP_H -> Above that = "!IS_BIT_SET(global, 2)" + misc::set_bit(&(*scr_globals::freemode_properties.at(1728).at(756).as()), 1); // Update: freemode -> KILL_STRIP_H -> Above that = "!IS_BIT_SET(global, 2)" } virtual void on_disable() override { *scr_globals::disable_wasted_sound.as() = false; - misc::clear_bit(&(*scr_globals::freemode_properties.at(1689).at(756).as()), 1); + misc::clear_bit(&(*scr_globals::freemode_properties.at(1728).at(756).as()), 1); } };