This commit is contained in:
EntenKoeniq
2021-07-11 04:04:00 +02:00
parent 6b1a7ae09c
commit b4a03d99d2
2 changed files with 4 additions and 4 deletions

View File

@ -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;
} }

View File

@ -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;
} }
} }
} }