Fix vibration on stopped vehicle
This commit is contained in:
@ -16,7 +16,7 @@ using System.Resources;
|
|||||||
|
|
||||||
|
|
||||||
// Version informationr(
|
// Version informationr(
|
||||||
[assembly: AssemblyVersion("1.5.2.99")]
|
[assembly: AssemblyVersion("1.5.2.103")]
|
||||||
[assembly: AssemblyFileVersion("1.5.2.99")]
|
[assembly: AssemblyFileVersion("1.5.2.103")]
|
||||||
[assembly: NeutralResourcesLanguageAttribute( "en-US" )]
|
[assembly: NeutralResourcesLanguageAttribute( "en-US" )]
|
||||||
|
|
||||||
|
@ -84,7 +84,9 @@ namespace RageCoop.Client
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DisplayVehicle();
|
||||||
// Skip update if no new sync message has arrived.
|
// Skip update if no new sync message has arrived.
|
||||||
if (!NeedUpdate)
|
if (!NeedUpdate)
|
||||||
{
|
{
|
||||||
@ -97,8 +99,6 @@ namespace RageCoop.Client
|
|||||||
}
|
}
|
||||||
MainVehicle.ThrottlePower=ThrottlePower;
|
MainVehicle.ThrottlePower=ThrottlePower;
|
||||||
MainVehicle.BrakePower=BrakePower;
|
MainVehicle.BrakePower=BrakePower;
|
||||||
var v = Main.P.CurrentVehicle;
|
|
||||||
DisplayVehicle(v != null && MainVehicle.IsTouching(v));
|
|
||||||
|
|
||||||
if (IsDead)
|
if (IsDead)
|
||||||
{
|
{
|
||||||
@ -258,7 +258,7 @@ namespace RageCoop.Client
|
|||||||
}
|
}
|
||||||
LastUpdated=Main.Ticked;
|
LastUpdated=Main.Ticked;
|
||||||
}
|
}
|
||||||
void DisplayVehicle(bool touching)
|
void DisplayVehicle()
|
||||||
{
|
{
|
||||||
_elapsed = Owner.PacketTravelTime + 0.001f * LastSyncedStopWatch.ElapsedMilliseconds;
|
_elapsed = Owner.PacketTravelTime + 0.001f * LastSyncedStopWatch.ElapsedMilliseconds;
|
||||||
_predictedPosition = Position + _elapsed * Velocity;
|
_predictedPosition = Position + _elapsed * Velocity;
|
||||||
@ -273,6 +273,10 @@ namespace RageCoop.Client
|
|||||||
MainVehicle.Quaternion = Quaternion;
|
MainVehicle.Quaternion = Quaternion;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else if (dist <= 0.03)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
MainVehicle.Velocity = Velocity+cali;
|
MainVehicle.Velocity = Velocity+cali;
|
||||||
|
Reference in New Issue
Block a user