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