diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-06-15 15:17:22 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-06-15 15:17:22 +0200 |
commit | 686d6e9834b21a5acc37123f3913cd83e670d241 (patch) | |
tree | a9d402679bc71bfe7876f8f21b8ee8c1efffbbe3 /src/core/Cam.cpp | |
parent | Merge branch 'miami' of https://github.com/GTAmodding/re3 into miami (diff) | |
download | re3-686d6e9834b21a5acc37123f3913cd83e670d241.tar re3-686d6e9834b21a5acc37123f3913cd83e670d241.tar.gz re3-686d6e9834b21a5acc37123f3913cd83e670d241.tar.bz2 re3-686d6e9834b21a5acc37123f3913cd83e670d241.tar.lz re3-686d6e9834b21a5acc37123f3913cd83e670d241.tar.xz re3-686d6e9834b21a5acc37123f3913cd83e670d241.tar.zst re3-686d6e9834b21a5acc37123f3913cd83e670d241.zip |
Diffstat (limited to 'src/core/Cam.cpp')
-rw-r--r-- | src/core/Cam.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp index 62ea950e..5b784947 100644 --- a/src/core/Cam.cpp +++ b/src/core/Cam.cpp @@ -4550,7 +4550,7 @@ CCam::Process_FollowCar_SA(const CVector& CameraTarget, float TargetOrientation, // We may need those later bool isPlane = car->GetVehicleAppearance() == VEHICLE_APPEARANCE_PLANE; bool isHeli = car->GetVehicleAppearance() == VEHICLE_APPEARANCE_HELI; - bool isBike = car->GetVehicleAppearance() == VEHICLE_APPEARANCE_BIKE || car->IsBike(); + bool isBike = car->GetVehicleAppearance() == VEHICLE_APPEARANCE_BIKE; bool isCar = car->IsCar() && !isPlane && !isHeli && !isBike; CPad* pad = CPad::GetPad(0); @@ -4623,11 +4623,11 @@ CCam::Process_FollowCar_SA(const CVector& CameraTarget, float TargetOrientation, // Taken from VC CCam::Cam_On_A_String_Unobscured. If we don't this, we will end up seeing the world from the inside of RC Goblin/Raider. // I couldn't find where SA does that. It's possible that they've increased the size of these veh.'s collision bounding box. - if (car->m_modelIndex == MI_RCRAIDER || car->m_modelIndex == MI_RCBANDIT) { - newDistance += 6.0f; - } else if (car->m_modelIndex == MI_RCBARON) { - newDistance += 9.5f; - } + + if (car->m_modelIndex == MI_RCRAIDER || car->m_modelIndex == MI_RCGOBLIN) + newDistance += INIT_RC_HELI_HORI_EXTRA; + else if (car->m_modelIndex == MI_RCBARON) + newDistance += INIT_RC_PLANE_HORI_EXTRA; float minDistForThisCar = approxCarLength * CARCAM_SET[camSetArrPos][3]; |