mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-22 20:17:24 +08:00
Fix C4/Flare limit and not working (#3308)
* Closes #3307 * Fix instant respawn.
This commit is contained in:
parent
e06cbb558c
commit
ce8d63d0d1
@ -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 ""
|
||||
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user