Fix C4/Flare limit and not working (#3308)
* Closes #3307 * Fix instant respawn.
This commit is contained in:
parent
37cc3f3b7f
commit
05aadfe98e
@ -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 f37ff433e2910d5db3af7ddaee2abc82c508b0c0
|
GIT_TAG 06c58d9c11a9a22336947fbe430d5f4951ff34d7
|
||||||
GIT_PROGRESS TRUE
|
GIT_PROGRESS TRUE
|
||||||
CONFIGURE_COMMAND ""
|
CONFIGURE_COMMAND ""
|
||||||
BUILD_COMMAND ""
|
BUILD_COMMAND ""
|
||||||
|
@ -15,14 +15,14 @@ namespace big
|
|||||||
*scr_globals::disable_wasted_sound.as<bool*>() = true;
|
*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
|
// 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
|
virtual void on_disable() override
|
||||||
{
|
{
|
||||||
*scr_globals::disable_wasted_sound.as<bool*>() = false;
|
*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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user