From 490802862a65a90ecbe170d8ba1dd1258d405279 Mon Sep 17 00:00:00 2001 From: Sardelka9515 Date: Thu, 18 Aug 2022 08:26:41 +0800 Subject: [PATCH] Huh? --- RageCoop.Client/Util/VehicleExtensions.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/RageCoop.Client/Util/VehicleExtensions.cs b/RageCoop.Client/Util/VehicleExtensions.cs index 6af844f2..d48a2b40 100644 --- a/RageCoop.Client/Util/VehicleExtensions.cs +++ b/RageCoop.Client/Util/VehicleExtensions.cs @@ -53,8 +53,6 @@ public static VehicleDataFlags GetVehicleFlags(this Vehicle veh) { flags |= VehicleDataFlags.IsTransformed; } - - if (veh.IsAircraft) { flags |= VehicleDataFlags.IsAircraft; @@ -71,6 +69,9 @@ public static VehicleDataFlags GetVehicleFlags(this Vehicle veh) { flags|=VehicleDataFlags.IsRocketBoostActive; } + if(veh.IsParachuteActive()){ + flags|=VehicleDataFlags.IsParachuteActive; + } if (veh.IsOnFire) { flags|=VehicleDataFlags.IsOnFire; @@ -83,10 +84,17 @@ public static bool IsRocketBoostActive(this Vehicle veh) { return Function.Call(Hash._IS_VEHICLE_ROCKET_BOOST_ACTIVE,veh); } + public static bool IsParachuteActive(this Vehicle veh){ + return Function.Call((Hash)0x3DE51E9C80B116CF,veh); + } public static void SetRocketBoostActive(this Vehicle veh,bool toggle) { Function.Call(Hash._SET_VEHICLE_ROCKET_BOOST_ACTIVE,veh,toggle); } + public static void SetParachuteActive(this Vehicle veh,bool toggle) + { + Function.Call((Hash)0x0BFFB028B3DD0A97,veh,toggle); + } public static Dictionary GetVehicleMods(this VehicleModCollection mods) { Dictionary result = new Dictionary();