diff options
author | aap <aap@papnet.eu> | 2020-05-26 11:25:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 11:25:23 +0200 |
commit | 0b8f045d363dec9e9bf96d98995b339e12e04bd6 (patch) | |
tree | 86df5a8337edb1af67275219cef37d235aaebdf7 /src/core/Camera.cpp | |
parent | fixed filename (diff) | |
parent | CVehicle (diff) | |
download | re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar.gz re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar.bz2 re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar.lz re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar.xz re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar.zst re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.zip |
Diffstat (limited to 'src/core/Camera.cpp')
-rw-r--r-- | src/core/Camera.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/Camera.cpp b/src/core/Camera.cpp index 3b7bdbaf..f618c652 100644 --- a/src/core/Camera.cpp +++ b/src/core/Camera.cpp @@ -3281,6 +3281,18 @@ CCamera::Find3rdPersonQuickAimPitch(void) return -(DEGTORAD(((0.5f - m_f3rdPersonCHairMultY) * 1.8f * 0.5f * Cams[ActiveCam].FOV)) + rot); } +bool +CCamera::Using1stPersonWeaponMode(void) +{ + switch(PlayerWeaponMode.Mode) + case CCam::MODE_SNIPER: + case CCam::MODE_M16_1STPERSON: + case CCam::MODE_ROCKETLAUNCHER: + case CCam::MODE_HELICANNON_1STPERSON: + case CCam::MODE_CAMERA: + return true; + return false; +} void |