improve Instant Refill and Infinite Boost (#452)

This commit is contained in:
pozhiloy-enotik 2022-09-21 16:10:21 +03:00 committed by GitHub
parent 42ccbd4792
commit 0597d8728e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,17 +10,15 @@ namespace big
if (vehicle && VEHICLE::GET_HAS_ROCKET_BOOST(self::veh))
{
if (g->vehicle.boost_behavior == eBoostBehaviors::INSTANT_REFIL && vehicle->m_boost == 0.f) // No Boost Refil Time
if (g->vehicle.boost_behavior == eBoostBehaviors::INSTANT_REFIL && (vehicle->m_boost == 0.f || !vehicle->m_boost_state)) // Instant Refill
{
vehicle->m_boost = 1.f;
vehicle->m_boost_allow_recharge = true;
vehicle->m_boost = 3.f;
}
else if (g->vehicle.boost_behavior == eBoostBehaviors::INFINITE_BOOST) // Infinite Boost
{
if (vehicle->m_boost_state)
{
vehicle->m_boost_allow_recharge = true;
vehicle->m_boost = 1.f;
}
vehicle->m_boost_allow_recharge = true;
vehicle->m_boost = 3.f;
}
}
}