From ae834f63c7ad54681a969fa5f2302ec450a41103 Mon Sep 17 00:00:00 2001 From: in0finite Date: Sat, 6 Feb 2021 17:19:35 +0100 Subject: [PATCH] add flags to sync data --- Assets/Scripts/Behaviours/Ped/DeadBody.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Assets/Scripts/Behaviours/Ped/DeadBody.cs b/Assets/Scripts/Behaviours/Ped/DeadBody.cs index 398c0654..cd89498c 100644 --- a/Assets/Scripts/Behaviours/Ped/DeadBody.cs +++ b/Assets/Scripts/Behaviours/Ped/DeadBody.cs @@ -136,6 +136,9 @@ namespace SanAndreasUnity.Behaviours.Peds if (initialState) writer.Write(m_net_modelId); + byte flags = 0; + writer.Write(flags); + Dictionary bonesDict = initialState ? m_framesDict : m_rigidBodiesDict; bool checkRigidBodyForNull = initialState; @@ -167,6 +170,8 @@ namespace SanAndreasUnity.Behaviours.Peds if (initialState) m_net_modelId = reader.ReadInt32(); + byte flags = reader.ReadByte(); + byte count = reader.ReadByte(); m_bonesSyncData.EnsureCount(count);