summaryrefslogtreecommitdiffstats
path: root/src/Camera.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-05-29 18:06:33 +0200
committeraap <aap@papnet.eu>2019-05-29 18:06:33 +0200
commit820fd66a94c20c4e1dab21f6abda4138eaefbe79 (patch)
tree445a810baf60f29c455dbaf4b3e82934806b49a8 /src/Camera.h
parentmore CVehicleModelInfo (diff)
downloadre3-820fd66a94c20c4e1dab21f6abda4138eaefbe79.tar
re3-820fd66a94c20c4e1dab21f6abda4138eaefbe79.tar.gz
re3-820fd66a94c20c4e1dab21f6abda4138eaefbe79.tar.bz2
re3-820fd66a94c20c4e1dab21f6abda4138eaefbe79.tar.lz
re3-820fd66a94c20c4e1dab21f6abda4138eaefbe79.tar.xz
re3-820fd66a94c20c4e1dab21f6abda4138eaefbe79.tar.zst
re3-820fd66a94c20c4e1dab21f6abda4138eaefbe79.zip
Diffstat (limited to 'src/Camera.h')
-rw-r--r--src/Camera.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/Camera.h b/src/Camera.h
index 46396ec4..55b61280 100644
--- a/src/Camera.h
+++ b/src/Camera.h
@@ -85,7 +85,7 @@ struct CCam
float f_Roll; //used for adding a slight roll to the camera in the
float f_rollSpeed;
float m_fSyphonModeTargetZOffSet;
-float m_unknownZOffset;
+ float m_fUnknownZOffSet;
float m_fAmountFractionObscured;
float m_fAlphaSpeedOverOneFrame; // 100
float m_fBetaSpeedOverOneFrame;
@@ -162,9 +162,20 @@ float m_unknownZOffset;
bool m_bFirstPersonRunAboutActive;
- void Process_Debug(float *vec, float a, float b, float c);
- void Process_Kalvin(float*, float, float, float);
void GetVectorsReadyForRW(void);
+ CVector DoAverageOnVector(const CVector &vec);
+ float GetPedBetaAngleForClearView(const CVector &Target, float Dist, float BetaOffset, bool checkBuildings, bool checkVehicles, bool checkPeds, bool checkObjects, bool checkDummies);
+ void WorkOutCamHeightWeeCar(CVector &TargetCoors, float TargetOrientation);
+ void WorkOutCamHeight(const CVector &TargetCoors, float TargetOrientation, float TargetHeight);
+ bool RotCamIfInFrontCar(CVector &TargetCoors, float TargetOrientation);
+ bool FixCamIfObscured(CVector &TargetCoors, float TargetHeight, float TargetOrientation);
+ void Cam_On_A_String_Unobscured(const CVector &TargetCoors, float BaseDist);
+ void FixCamWhenObscuredByVehicle(const CVector &TargetCoors);
+
+ void Process_Debug(float *vec, float a, float b, float c);
+ void Process_FollowPed(const CVector &CameraTarget, float TargetOrientation, float, float);
+ void Process_BehindCar(const CVector &CameraTarget, float TargetOrientation, float, float);
+ void Process_Cam_On_A_String(const CVector &CameraTarget, float TargetOrientation, float, float);
};
static_assert(sizeof(CCam) == 0x1A4, "CCam: wrong size");
static_assert(offsetof(CCam, Alpha) == 0xA8, "CCam: error");