mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-22 20:17:24 +08:00
Closes https://github.com/YimMenu/YimMenu/issues/2560 Closes https://github.com/YimMenu/YimMenu/issues/2552
This commit is contained in:
parent
f8b771d66c
commit
abec4cd631
@ -3,7 +3,7 @@ include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
gtav_classes
|
||||
GIT_REPOSITORY https://github.com/Yimura/GTAV-Classes.git
|
||||
GIT_TAG 760585b6ca9fd60ade494f9226190963d3b743d9
|
||||
GIT_TAG 59f3db2ec5c7e4b1992466d656bbb11473eeee26
|
||||
GIT_PROGRESS TRUE
|
||||
CONFIGURE_COMMAND ""
|
||||
BUILD_COMMAND ""
|
||||
|
@ -16,7 +16,7 @@ namespace big
|
||||
{
|
||||
if (g.vehicle.boost_behavior == eBoostBehaviors::INSTANT_REFIL) // Instant Refill
|
||||
{
|
||||
if (is_rocket && (vehicle->m_boost == 0.f || !vehicle->m_boost_state))
|
||||
if (is_rocket && (vehicle->m_boost == 0.f || !vehicle->m_boosting))
|
||||
{
|
||||
vehicle->m_boost_allow_recharge = true;
|
||||
vehicle->m_boost = 10.f;
|
||||
@ -36,7 +36,7 @@ namespace big
|
||||
{
|
||||
if (PAD::IS_CONTROL_PRESSED(0, (int)ControllerInputs::INPUT_VEH_ROCKET_BOOST) || PAD::IS_CONTROL_PRESSED(0, (int)ControllerInputs::INPUT_VEH_FLY_BOOST))
|
||||
{
|
||||
if (is_rocket && vehicle->m_boost_state)
|
||||
if (is_rocket && vehicle->m_boosting)
|
||||
{
|
||||
vehicle->m_boost_allow_recharge = true;
|
||||
vehicle->m_boost = 10.f;
|
||||
@ -46,9 +46,9 @@ namespace big
|
||||
vehicle->m_kers_boost = vehicle->m_kers_boost_max - 0.01f;
|
||||
}
|
||||
}
|
||||
else if (is_rocket && vehicle->m_boost_state)
|
||||
else if (is_rocket && vehicle->m_boosting)
|
||||
{
|
||||
vehicle->m_boost_state = false;
|
||||
vehicle->m_boosting = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user