Fix entity fire
This commit is contained in:
@ -465,12 +465,11 @@ namespace RageCoop.Client
|
||||
|
||||
if (IsOnFire && !MainPed.IsOnFire)
|
||||
{
|
||||
|
||||
MainPed.SetOnFire(true);
|
||||
Function.Call(Hash.START_ENTITY_FIRE, MainPed);
|
||||
}
|
||||
else if (!IsOnFire && MainPed.IsOnFire)
|
||||
{
|
||||
MainPed.SetOnFire(false);
|
||||
Function.Call(Hash.STOP_ENTITY_FIRE, MainPed);
|
||||
}
|
||||
|
||||
if (IsJumping)
|
||||
@ -492,7 +491,6 @@ namespace RageCoop.Client
|
||||
{
|
||||
MainPed.Ragdoll();
|
||||
}
|
||||
|
||||
SmoothTransition();
|
||||
if (!_lastRagdoll)
|
||||
{
|
||||
|
@ -158,6 +158,17 @@ namespace RageCoop.Client
|
||||
MainVehicle.Repair();
|
||||
}
|
||||
}
|
||||
if (MainVehicle.IsOnFire)
|
||||
{
|
||||
if (!Flags.HasVehFlag(VehicleDataFlags.IsOnFire))
|
||||
{
|
||||
Function.Call(Hash.STOP_ENTITY_FIRE, MainVehicle);
|
||||
}
|
||||
}
|
||||
else if (Flags.HasVehFlag(VehicleDataFlags.IsOnFire))
|
||||
{
|
||||
Function.Call(Hash.START_ENTITY_FIRE, MainVehicle);
|
||||
}
|
||||
|
||||
if (EngineRunning != MainVehicle.IsEngineRunning)
|
||||
{
|
||||
@ -247,7 +258,6 @@ namespace RageCoop.Client
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
if (LastFullSynced>=LastUpdated)
|
||||
{
|
||||
#region -- SYNC STATE --
|
||||
|
@ -76,6 +76,10 @@ namespace RageCoop.Client
|
||||
{
|
||||
flags|=VehicleDataFlags.HasRoof;
|
||||
}
|
||||
if (veh.IsOnFire)
|
||||
{
|
||||
flags|=VehicleDataFlags.IsOnFire;
|
||||
}
|
||||
|
||||
|
||||
return flags;
|
||||
|
@ -116,6 +116,7 @@ namespace RageCoop.Core
|
||||
IsDeluxoHovering=1 << 11,
|
||||
HasRoof=1 << 12,
|
||||
IsFullSync = 1<<13,
|
||||
IsOnFire = 1<<14,
|
||||
}
|
||||
|
||||
internal enum PlayerConfigFlags : byte
|
||||
|
Reference in New Issue
Block a user