Skip to content

Commit

Permalink
Huh?
Browse files Browse the repository at this point in the history
  • Loading branch information
Sardelka9515 committed Aug 18, 2022
1 parent e369a50 commit 4908028
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions RageCoop.Client/Util/VehicleExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ public static VehicleDataFlags GetVehicleFlags(this Vehicle veh)
{
flags |= VehicleDataFlags.IsTransformed;
}


if (veh.IsAircraft)
{
flags |= VehicleDataFlags.IsAircraft;
Expand All @@ -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;
Expand All @@ -83,10 +84,17 @@ public static bool IsRocketBoostActive(this Vehicle veh)
{
return Function.Call<bool>(Hash._IS_VEHICLE_ROCKET_BOOST_ACTIVE,veh);
}
public static bool IsParachuteActive(this Vehicle veh){
return Function.Call<bool>((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<int, int> GetVehicleMods(this VehicleModCollection mods)
{
Dictionary<int, int> result = new Dictionary<int, int>();
Expand Down

0 comments on commit 4908028

Please sign in to comment.