mirror of
https://github.com/halpz/re3.git
synced 2025-07-15 23:38:12 +00:00
Merge branch 'miami' of https://github.com/GTAmodding/re3 into miami
This commit is contained in:
@ -3513,6 +3513,11 @@ CCam::Process_FlyBy(const CVector&, float, float, float)
|
||||
|
||||
if(TheCamera.m_bcutsceneFinished)
|
||||
return;
|
||||
#ifdef FIX_BUGS
|
||||
// this would crash, not nice when cycling debug mode
|
||||
if(TheCamera.m_arrPathArray[0].m_arr_PathData == nil)
|
||||
return;
|
||||
#endif
|
||||
|
||||
Up = CVector(0.0f, 0.0f, 1.0f);
|
||||
if(TheCamera.m_bStartingSpline)
|
||||
|
1363
src/core/Camera.cpp
1363
src/core/Camera.cpp
File diff suppressed because it is too large
Load Diff
@ -249,7 +249,8 @@ class CCamPathSplines
|
||||
{
|
||||
public:
|
||||
enum {MAXPATHLENGTH=800};
|
||||
float m_arr_PathData[MAXPATHLENGTH];
|
||||
// float m_arr_PathData[MAXPATHLENGTH];
|
||||
float *m_arr_PathData;
|
||||
CCamPathSplines(void);
|
||||
};
|
||||
|
||||
@ -551,6 +552,7 @@ public:
|
||||
bool Get_Just_Switched_Status() { return m_bJust_Switched; }
|
||||
void AvoidTheGeometry(const CVector &Source, const CVector &TargetPos, CVector &NewSource, float FOV);
|
||||
void GetArrPosForVehicleType(int apperance, int &index);
|
||||
void GetScreenRect(CRect &rect);
|
||||
|
||||
// Who's in control
|
||||
void TakeControl(CEntity *target, int16 mode, int16 typeOfSwitch, int32 controller);
|
||||
@ -576,6 +578,7 @@ public:
|
||||
bool TryToStartNewCamMode(int32 obbeMode);
|
||||
void DontProcessObbeCinemaCamera(void);
|
||||
void ProcessObbeCinemaCameraCar(void);
|
||||
void ProcessObbeCinemaCameraHeli(void);
|
||||
void ProcessObbeCinemaCameraPed(void);
|
||||
|
||||
// Train
|
||||
@ -584,6 +587,7 @@ public:
|
||||
|
||||
// Script
|
||||
void LoadPathSplines(int file);
|
||||
void DeleteCutSceneCamDataMemory(void);
|
||||
void FinishCutscene(void);
|
||||
float GetPositionAlongSpline(void) { return m_fPositionAlongSpline; }
|
||||
uint32 GetCutSceneFinishTime(void);
|
||||
@ -617,7 +621,7 @@ public:
|
||||
void SetNewPlayerWeaponMode(int16 mode, int16 minZoom, int16 maxZoom);
|
||||
void ClearPlayerWeaponMode(void);
|
||||
void UpdateAimingCoors(CVector const &coors);
|
||||
void Find3rdPersonCamTargetVector(float dist, CVector pos, CVector &source, CVector &target);
|
||||
bool Find3rdPersonCamTargetVector(float dist, CVector pos, CVector &source, CVector &target);
|
||||
float Find3rdPersonQuickAimPitch(void);
|
||||
bool Using1stPersonWeaponMode(void);
|
||||
|
||||
|
@ -535,9 +535,6 @@ DebugMenuPopulate(void)
|
||||
DebugMenuAddVarBool8("Cam", "Print Debug Code", &PrintDebugCode, nil);
|
||||
DebugMenuAddVar("Cam", "Cam Mode", &DebugCamMode, nil, 1, 0, CCam::MODE_EDITOR, nil);
|
||||
DebugMenuAddCmd("Cam", "Normal", []() { DebugCamMode = 0; });
|
||||
DebugMenuAddCmd("Cam", "Follow Ped With Bind", []() { DebugCamMode = CCam::MODE_FOLLOW_PED_WITH_BIND; });
|
||||
DebugMenuAddCmd("Cam", "Reaction", []() { DebugCamMode = CCam::MODE_REACTION; });
|
||||
DebugMenuAddCmd("Cam", "Chris", []() { DebugCamMode = CCam::MODE_CHRIS; });
|
||||
DebugMenuAddCmd("Cam", "Reset Statics", ResetCamStatics);
|
||||
|
||||
CTweakVars::AddDBG("Debug");
|
||||
|
Reference in New Issue
Block a user