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

only on server and local player

This commit is contained in:
in0finite 2019-07-08 01:25:10 +02:00
parent 884ef2a223
commit eaa9247897
2 changed files with 4 additions and 1 deletions
Assets/Scripts/Behaviours/Ped/States
Docs

View file

@ -55,7 +55,8 @@ namespace SanAndreasUnity.Behaviours.Peds.States
protected override void UpdateHeading ()
{
m_ped.Heading = m_ped.transform.forward;
if (m_isServer || m_ped.IsControlledByLocalPlayer)
m_ped.Heading = m_ped.transform.forward;
}
protected override void UpdateRotation ()

View file

@ -27,6 +27,8 @@
- weapon sound should be 3d
- prevent tick rate override by Mirror
- **vehicle is bumping on clients** - disable (or destroy) wheel colliders, and sync them - this should not be done on local player, see below