mirror of
https://github.com/halpz/re3.git
synced 2025-03-04 03:39:41 +00:00
Fix ridiculously accurate bullets when you shoot behind with enabled free camera
This commit is contained in:
parent
1aac4d802f
commit
123f2fda9b
|
@ -936,6 +936,16 @@ CWeapon::FireInstantHit(CEntity *shooter, CVector *fireSource)
|
||||||
else if ( shooter == FindPlayerPed() && TheCamera.Cams[0].Using3rdPersonMouseCam() )
|
else if ( shooter == FindPlayerPed() && TheCamera.Cams[0].Using3rdPersonMouseCam() )
|
||||||
{
|
{
|
||||||
TheCamera.Find3rdPersonCamTargetVector(info->m_fRange, *fireSource, source, target);
|
TheCamera.Find3rdPersonCamTargetVector(info->m_fRange, *fireSource, source, target);
|
||||||
|
#ifdef FREE_CAM
|
||||||
|
CPed *shooterPed = (CPed *)shooter;
|
||||||
|
if((shooterPed->m_pedIK.m_flags & CPedIK::GUN_POINTED_SUCCESSFULLY) == 0) {
|
||||||
|
target.x = info->m_fRange;
|
||||||
|
target.y = 0.0f;
|
||||||
|
target.z = 0.0f;
|
||||||
|
|
||||||
|
shooterPed->TransformToNode(target, PED_HANDR);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
CWorld::bIncludeBikers = true;
|
CWorld::bIncludeBikers = true;
|
||||||
CWorld::bIncludeDeadPeds = true;
|
CWorld::bIncludeDeadPeds = true;
|
||||||
|
|
Loading…
Reference in a new issue