Add vehicle parachute sync

This commit is contained in:
Sardelka9515
2022-08-18 08:25:15 +08:00
parent 13a6431248
commit e369a50b89
2 changed files with 11 additions and 0 deletions

View File

@ -252,6 +252,16 @@ namespace RageCoop.Client
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);

View File

@ -121,6 +121,7 @@ namespace RageCoop.Core
IsDead = 1 << 5,
IsHornActive = 1 << 6,
IsTransformed = 1 << 7,
IsParachuteActive = 1 << 8,
IsRocketBoostActive = 1 << 9,
IsAircraft = 1 << 10,
IsDeluxoHovering=1 << 11,