mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-15 02:24:10 +00:00
some CBike code; vehicle cleanup
This commit is contained in:
parent
2e3cb77702
commit
2ca3c50463
14 changed files with 135 additions and 112 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "World.h"
|
||||
#include "Vehicle.h"
|
||||
#include "Automobile.h"
|
||||
#include "Boat.h"
|
||||
#include "Ped.h"
|
||||
#include "PlayerPed.h"
|
||||
#include "CopPed.h"
|
||||
|
@ -2718,7 +2719,7 @@ CCam::Process_1stPerson(const CVector &CameraTarget, float TargetOrientation, fl
|
|||
}else{
|
||||
assert(CamTargetEntity->IsVehicle());
|
||||
CVehicleModelInfo *mi = (CVehicleModelInfo*)CModelInfo::GetModelInfo(CamTargetEntity->GetModelIndex());
|
||||
CVector CamPos = mi->m_vehicleType == VEHICLE_TYPE_BOAT ? mi->m_positions[BOAT_POS_FRONTSEAT] : mi->m_positions[CAR_POS_FRONTSEAT];
|
||||
CVector CamPos = mi->GetFrontSeatPosn();
|
||||
CamPos.x = 0.0f;
|
||||
CamPos.y += -0.08f;
|
||||
CamPos.z += 0.62f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue