diff --git a/Client/Packets.cs b/Client/Packets.cs
index 099e0f8..390399b 100644
--- a/Client/Packets.cs
+++ b/Client/Packets.cs
@@ -11,8 +11,11 @@ using GTA.Math;
namespace CoopClient
{
#region CLIENT-ONLY
- static class VectorExtensions
+ public static class VectorExtensions
{
+ ///
+ ///
+ ///
public static Vector3 ToVector(this Quaternion vec)
{
return new Vector3()
@@ -23,6 +26,9 @@ namespace CoopClient
};
}
+ ///
+ ///
+ ///
public static Quaternion ToQuaternion(this Vector3 vec, float vW = 0.0f)
{
return new Quaternion()
@@ -34,6 +40,9 @@ namespace CoopClient
};
}
+ ///
+ ///
+ ///
public static LVector3 ToLVector(this Vector3 vec)
{
return new LVector3()
@@ -44,6 +53,9 @@ namespace CoopClient
};
}
+ ///
+ ///
+ ///
public static LQuaternion ToLQuaternion(this Quaternion vec)
{
return new LQuaternion()
@@ -57,15 +69,24 @@ namespace CoopClient
}
#endregion
- struct LVector3
+ ///
+ ///
+ ///
+ public struct LVector3
{
#region CLIENT-ONLY
+ ///
+ ///
+ ///
public Vector3 ToVector()
{
return new Vector3(X, Y, Z);
}
#endregion
+ ///
+ ///
+ ///
public LVector3(float X, float Y, float Z)
{
this.X = X;
@@ -73,22 +94,37 @@ namespace CoopClient
this.Z = Z;
}
+ ///
+ ///
+ ///
public float X { get; set; }
+ ///
+ ///
+ ///
public float Y { get; set; }
+ ///
+ ///
+ ///
public float Z { get; set; }
}
- struct LQuaternion
+ public struct LQuaternion
{
#region CLIENT-ONLY
+ ///
+ ///
+ ///
public Quaternion ToQuaternion()
{
return new Quaternion(X, Y, Z, W);
}
#endregion
+ ///
+ ///
+ ///
public LQuaternion(float X, float Y, float Z, float W)
{
this.X = X;
@@ -97,12 +133,24 @@ namespace CoopClient
this.W = W;
}
+ ///
+ ///
+ ///
public float X { get; set; }
+ ///
+ ///
+ ///
public float Y { get; set; }
+ ///
+ ///
+ ///
public float Z { get; set; }
+ ///
+ ///
+ ///
public float W { get; set; }
}
diff --git a/Client/Util.cs b/Client/Util.cs
index b0b440d..ed190ff 100644
--- a/Client/Util.cs
+++ b/Client/Util.cs
@@ -47,10 +47,9 @@ namespace CoopClient
}
#endregion
- // Dirty & dangerous
public static dynamic Lerp(dynamic from, dynamic to, float fAlpha)
{
- return ((to - from) * fAlpha + from);
+ return (to - from) * fAlpha + from;
}
public static T GetGameMs() where T : IConvertible