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