mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-25 18:46:52 +01:00
Fix ridiculously accurate bullets when you shoot behind with enabled free camera
This commit is contained in:
parent
6a94299eac
commit
cafc0f3c10
@ -592,6 +592,16 @@ CWeapon::FireInstantHit(CEntity *shooter, CVector *fireSource)
|
|||||||
{
|
{
|
||||||
CVector src, trgt;
|
CVector src, trgt;
|
||||||
TheCamera.Find3rdPersonCamTargetVector(info->m_fRange, *fireSource, 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
|
#ifdef FIX_BUGS
|
||||||
// fix muzzleflash rotation
|
// fix muzzleflash rotation
|
||||||
|
Loading…
Reference in New Issue
Block a user