Fix C4/Flare limit and not working (#3308)

* Closes #3307

* Fix instant respawn.
This commit is contained in:
gir489 2024-07-08 15:13:06 -04:00 committed by GitHub
parent e06cbb558c
commit ce8d63d0d1
2 changed files with 3 additions and 3 deletions

View File

@ -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 ""

View File

@ -15,14 +15,14 @@ namespace big
*scr_globals::disable_wasted_sound.as<bool*>() = 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<int*>()), 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<int*>()), 1); // Update: freemode -> KILL_STRIP_H -> Above that = "!IS_BIT_SET(global, 2)"
}
virtual void on_disable() override
{
*scr_globals::disable_wasted_sound.as<bool*>() = false;
misc::clear_bit(&(*scr_globals::freemode_properties.at(1689).at(756).as<int*>()), 1);
misc::clear_bit(&(*scr_globals::freemode_properties.at(1728).at(756).as<int*>()), 1);
}
};