diff options
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); |