
* feat(Spoofing): add spoofing * feat(Spoofing): prepare code for player attach * remove(PlayerAttach): isn't going to work due to netsync architecture * fix(GUI): fix scaling * feat(Project): add clang-format file * feat(Classes): update classes * fix(BlackHole): remove unnecessary cleanup * fix(Formatting): fix formatting for initializer lists * feat(clang-format): Set tab width and 1 space before comment Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
26 lines
693 B
C++
26 lines
693 B
C++
#include "backend/looped/looped.hpp"
|
|
#include "core/enums.hpp"
|
|
#include "natives.hpp"
|
|
|
|
namespace big
|
|
{
|
|
void looped::vehicle_boost_behavior()
|
|
{
|
|
auto* const vehicle = g_local_player->m_vehicle;
|
|
|
|
if (vehicle && VEHICLE::GET_HAS_ROCKET_BOOST(self::veh))
|
|
{
|
|
if (g.vehicle.boost_behavior == eBoostBehaviors::INSTANT_REFIL && (vehicle->m_boost == 0.f || !vehicle->m_boost_state))// Instant Refill
|
|
{
|
|
vehicle->m_boost_allow_recharge = true;
|
|
vehicle->m_boost = 3.f;
|
|
}
|
|
else if (g.vehicle.boost_behavior == eBoostBehaviors::INFINITE_BOOST)// Infinite Boost
|
|
{
|
|
vehicle->m_boost_allow_recharge = true;
|
|
vehicle->m_boost = 3.f;
|
|
}
|
|
}
|
|
}
|
|
}
|