2
0
Fork 0
mirror of https://github.com/GTA-ASM/SanAndreasUnity synced 2025-03-05 07:37:17 +00:00

only on server or local player

This commit is contained in:
in0finite 2019-07-08 00:35:55 +02:00
parent 6da98dd68a
commit 884ef2a223

View file

@ -138,7 +138,8 @@ namespace SanAndreasUnity.Behaviours.Peds.States
// we need to override default behaviour, because otherwise ped will be turning around while aiming
// with AWA weapons
m_ped.Heading = m_ped.AimDirection.WithXAndZ ().normalized;
if (m_isServer || m_ped.IsControlledByLocalPlayer)
m_ped.Heading = m_ped.AimDirection.WithXAndZ ().normalized;
}
public override Vector3 GetCameraFocusPos ()