gir489 2023-12-14 18:35:00 -05:00 committed by GitHub
parent f8b771d66c
commit abec4cd631
2 changed files with 6 additions and 6 deletions

View File

@ -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 760585b6ca9fd60ade494f9226190963d3b743d9 GIT_TAG 59f3db2ec5c7e4b1992466d656bbb11473eeee26
GIT_PROGRESS TRUE GIT_PROGRESS TRUE
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
BUILD_COMMAND "" BUILD_COMMAND ""

View File

@ -16,7 +16,7 @@ namespace big
{ {
if (g.vehicle.boost_behavior == eBoostBehaviors::INSTANT_REFIL) // Instant Refill 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_allow_recharge = true;
vehicle->m_boost = 10.f; vehicle->m_boost = 10.f;
@ -26,7 +26,7 @@ namespace big
vehicle->m_kers_boost = vehicle->m_kers_boost_max; vehicle->m_kers_boost = vehicle->m_kers_boost_max;
} }
} }
else if (g.vehicle.boost_behavior == eBoostBehaviors::INFINITE_BOOST)// Infinite else if (g.vehicle.boost_behavior == eBoostBehaviors::INFINITE_BOOST) // Infinite
{ {
vehicle->m_boost_allow_recharge = true; vehicle->m_boost_allow_recharge = true;
vehicle->m_boost = 10.f; 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 (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_allow_recharge = true;
vehicle->m_boost = 10.f; vehicle->m_boost = 10.f;
@ -46,9 +46,9 @@ namespace big
vehicle->m_kers_boost = vehicle->m_kers_boost_max - 0.01f; 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;
} }
} }
} }