mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-18 07:07:32 +08:00
Fixed regression issue with rocket boosting while using Hold for Boost scenario. (#1929)
This commit is contained in:
parent
a811aa65d8
commit
09f80534c8
@ -36,23 +36,20 @@ 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)
|
||||
if (is_rocket && vehicle->m_boost_state)
|
||||
{
|
||||
if (vehicle->m_boost_state)
|
||||
{
|
||||
vehicle->m_boost_allow_recharge = true;
|
||||
vehicle->m_boost = 3.f;
|
||||
}
|
||||
else if (vehicle->m_boost_state)
|
||||
{
|
||||
vehicle->m_boost_state = false;
|
||||
}
|
||||
vehicle->m_boost_allow_recharge = true;
|
||||
vehicle->m_boost = 3.f;
|
||||
}
|
||||
else
|
||||
else if (is_kers)
|
||||
{
|
||||
vehicle->m_kers_boost = vehicle->m_kers_boost_max - 0.01f;
|
||||
}
|
||||
}
|
||||
else if (is_rocket && vehicle->m_boost_state)
|
||||
{
|
||||
vehicle->m_boost_state = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user