Fix C4/Flare limit and not working (#3308)
Some checks failed
Nightly Build / Check Recent Commit (push) Failing after 19s
Nightly Build / Build Nightly (push) Has been skipped
Nightly Build / Recreate Release (push) Has been skipped

* Closes #3307

* Fix instant respawn.
This commit is contained in:
gir489 2024-07-08 15:13:06 -04:00 committed by GitHub
parent 37cc3f3b7f
commit 05aadfe98e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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);
}
};