diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-26 07:28:01 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-07-26 07:28:01 +0200 |
commit | cafc0f3c10343b89f5cc555c0ef975a65e775cae (patch) | |
tree | 86fb77a261eb84e845380634d6b830b839c1e61b /src/weapons/Weapon.cpp | |
parent | Fix (diff) | |
download | re3-cafc0f3c10343b89f5cc555c0ef975a65e775cae.tar re3-cafc0f3c10343b89f5cc555c0ef975a65e775cae.tar.gz re3-cafc0f3c10343b89f5cc555c0ef975a65e775cae.tar.bz2 re3-cafc0f3c10343b89f5cc555c0ef975a65e775cae.tar.lz re3-cafc0f3c10343b89f5cc555c0ef975a65e775cae.tar.xz re3-cafc0f3c10343b89f5cc555c0ef975a65e775cae.tar.zst re3-cafc0f3c10343b89f5cc555c0ef975a65e775cae.zip |
Diffstat (limited to 'src/weapons/Weapon.cpp')
-rw-r--r-- | src/weapons/Weapon.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp index 6f0e9094..6eab1a65 100644 --- a/src/weapons/Weapon.cpp +++ b/src/weapons/Weapon.cpp @@ -592,6 +592,16 @@ CWeapon::FireInstantHit(CEntity *shooter, CVector *fireSource) { CVector src, trgt; TheCamera.Find3rdPersonCamTargetVector(info->m_fRange, *fireSource, src, trgt); +#ifdef FREE_CAM + CPed *shooterPed = (CPed *)shooter; + if((shooterPed->m_pedIK.m_flags & CPedIK::GUN_POINTED_SUCCESSFULLY) == 0) { + trgt.x = info->m_fRange; + trgt.y = 0.0f; + trgt.z = 0.0f; + + shooterPed->TransformToNode(trgt, PED_HANDR); + } +#endif #ifdef FIX_BUGS // fix muzzleflash rotation |