diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-07-03 18:34:42 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-07-04 03:59:29 +0200 |
commit | d4ea6912f5deb303f1ce75acf6c680d00244ea66 (patch) | |
tree | 7fd3df91850584be723a8394b6acb7a75ecb7cd6 /src/Camera.cpp | |
parent | Merge pull request #86 from erorcun/erorcun (diff) | |
download | re3-d4ea6912f5deb303f1ce75acf6c680d00244ea66.tar re3-d4ea6912f5deb303f1ce75acf6c680d00244ea66.tar.gz re3-d4ea6912f5deb303f1ce75acf6c680d00244ea66.tar.bz2 re3-d4ea6912f5deb303f1ce75acf6c680d00244ea66.tar.lz re3-d4ea6912f5deb303f1ce75acf6c680d00244ea66.tar.xz re3-d4ea6912f5deb303f1ce75acf6c680d00244ea66.tar.zst re3-d4ea6912f5deb303f1ce75acf6c680d00244ea66.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Camera.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Camera.cpp b/src/Camera.cpp index e5e50ef2..45172c44 100644 --- a/src/Camera.cpp +++ b/src/Camera.cpp @@ -1252,7 +1252,8 @@ CCam::FixCamWhenObscuredByVehicle(const CVector &TargetCoors) Source.z += HeightFixerCarsObscuring; } -bool CCam::Using3rdPersonMouseCam() +bool +CCam::Using3rdPersonMouseCam() { return CCamera::m_bUseMouse3rdPerson && (Mode == MODE_FOLLOWPED || @@ -1261,6 +1262,16 @@ bool CCam::Using3rdPersonMouseCam() Mode != MODE_TOPDOWN1 && this->CamTargetEntity == FindPlayerPed()); } +bool +CCam::GetWeaponFirstPersonOn() +{ + CEntity *target = this->CamTargetEntity; + if (target && target->IsPed()) + return ((CPed*)target)->GetWeapon()->m_bAddRotOffset; + + return false; +} + STARTPATCHES InjectHook(0x42C760, &CCamera::IsSphereVisible, PATCH_JUMP); InjectHook(0x46FD00, &CCamera::SetFadeColour, PATCH_JUMP); |