🤔
This commit is contained in:
@ -277,6 +277,7 @@ namespace CoopClient
|
|||||||
|
|
||||||
if (VehicleSteeringAngle != MainVehicle.SteeringAngle)
|
if (VehicleSteeringAngle != MainVehicle.SteeringAngle)
|
||||||
{
|
{
|
||||||
|
// The angle 0.0f does not work in debug mode ??
|
||||||
MainVehicle.SteeringAngle = VehicleSteeringAngle;
|
MainVehicle.SteeringAngle = VehicleSteeringAngle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -245,7 +245,7 @@ namespace CoopClient
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private DateTime ArtificialLagCounter = DateTime.MinValue;
|
private int ArtificialLagCounter;
|
||||||
private EntitiesPlayer DebugSyncPed;
|
private EntitiesPlayer DebugSyncPed;
|
||||||
private bool FullDebugSync = true;
|
private bool FullDebugSync = true;
|
||||||
private bool UseDebug = false;
|
private bool UseDebug = false;
|
||||||
@ -259,13 +259,11 @@ namespace CoopClient
|
|||||||
DebugSyncPed = Players["DebugKey"];
|
DebugSyncPed = Players["DebugKey"];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DateTime.Now.Subtract(ArtificialLagCounter).TotalMilliseconds < 300)
|
if ((Environment.TickCount - ArtificialLagCounter) < 42)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ArtificialLagCounter = DateTime.Now;
|
|
||||||
|
|
||||||
if (FullDebugSync)
|
if (FullDebugSync)
|
||||||
{
|
{
|
||||||
DebugSyncPed.ModelHash = player.Model.Hash;
|
DebugSyncPed.ModelHash = player.Model.Hash;
|
||||||
@ -326,6 +324,7 @@ namespace CoopClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
FullDebugSync = !FullDebugSync;
|
FullDebugSync = !FullDebugSync;
|
||||||
|
ArtificialLagCounter = Environment.TickCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user