diff --git a/RageCoop.Client/Sync/Entities/SyncedVehicle.cs b/RageCoop.Client/Sync/Entities/SyncedVehicle.cs index eac24abc..fefc0b97 100644 --- a/RageCoop.Client/Sync/Entities/SyncedVehicle.cs +++ b/RageCoop.Client/Sync/Entities/SyncedVehicle.cs @@ -252,6 +252,16 @@ internal override void Update() MainVehicle.SetRocketBoostActive(false); } } + if(MainVehicle.HasParachute){ + if(Flags.HasFlag(VehicleDataFlags.IsParachuteActive)){ + if(!MainVehicle.IsParachuteActive()){ + MainVehicle.SetParachuteActive(true); + } + } + else if(MainVehicle.IsParachuteActive()){ + MainVehicle.SetParachuteActive(false); + } + } Function.Call(Hash.SET_VEHICLE_BRAKE_LIGHTS, MainVehicle.Handle, BrakeLightsOn); MainVehicle.SetDamageModel(DamageModel); diff --git a/RageCoop.Core/Packets/Packets.cs b/RageCoop.Core/Packets/Packets.cs index a6790a87..e6e8a165 100644 --- a/RageCoop.Core/Packets/Packets.cs +++ b/RageCoop.Core/Packets/Packets.cs @@ -121,6 +121,7 @@ internal enum VehicleDataFlags:ushort IsDead = 1 << 5, IsHornActive = 1 << 6, IsTransformed = 1 << 7, + IsParachuteActive = 1 << 8, IsRocketBoostActive = 1 << 9, IsAircraft = 1 << 10, IsDeluxoHovering=1 << 11,