diff --git a/AnimeSoftware/AnimeForm.cs b/AnimeSoftware/AnimeForm.cs index f1deb1b..f6045ad 100644 --- a/AnimeSoftware/AnimeForm.cs +++ b/AnimeSoftware/AnimeForm.cs @@ -53,7 +53,8 @@ namespace AnimeSoftware Properties.Settings.Default.namestealer = false; Properties.Settings.Default.Save(); Start(); - + Log.Debug((IntPtr)(Offsets.netvars.m_Local + Offsets.netvars.m_aimPunchAngle)); + //Log.Debug((IntPtr)Offsets.signatures.dwClientState_ViewAngles); } diff --git a/AnimeSoftware/Hacks/Aimbot.cs b/AnimeSoftware/Hacks/Aimbot.cs index cda2957..72cbb62 100644 --- a/AnimeSoftware/Hacks/Aimbot.cs +++ b/AnimeSoftware/Hacks/Aimbot.cs @@ -7,6 +7,7 @@ using System.Drawing; using System.Threading; using AnimeSoftware.Injections; using AnimeSoftware.Objects; +using AnimeSoftware.Utils; namespace AnimeSoftware.Hacks { @@ -33,9 +34,10 @@ namespace AnimeSoftware.Hacks if (target.Index == -1) continue; - LocalPlayer.ViewAngle = NormalizedAngle(Smooth(LocalPlayer.ViewAngle,RSC(CalcAngle(LocalPlayer.ViewPosition, target.BonePosition(Properties.Settings.Default.boneid))))); - + var va = NormalizedAngle(Smooth(LocalPlayer.ViewAngle,RSC(CalcAngle(LocalPlayer.ViewPosition, target.BonePosition(Properties.Settings.Default.boneid))))); + va.Normalize(); + LocalPlayer.ViewAngle = va; } } public static Vector CalcAngle(Vector src, Vector dst) diff --git a/AnimeSoftware/Objects/Entity.cs b/AnimeSoftware/Objects/Entity.cs index ad2313b..30fc6f4 100644 --- a/AnimeSoftware/Objects/Entity.cs +++ b/AnimeSoftware/Objects/Entity.cs @@ -8,8 +8,13 @@ using AnimeSoftware.Offsets; namespace AnimeSoftware.Objects { - class Entity + class Entity : IDisposable { + public void Dispose() + { + + } + public int Index; public int Ptr { diff --git a/AnimeSoftware/Objects/LocalPlayer.cs b/AnimeSoftware/Objects/LocalPlayer.cs index 730327b..66178ad 100644 --- a/AnimeSoftware/Objects/LocalPlayer.cs +++ b/AnimeSoftware/Objects/LocalPlayer.cs @@ -9,8 +9,12 @@ using AnimeSoftware.Offsets; namespace AnimeSoftware.Objects { - class LocalPlayer + class LocalPlayer : IDisposable { + public void Dispose() + { + + } public static int Ptr { get @@ -270,7 +274,7 @@ namespace AnimeSoftware.Objects { get { - return Memory.Read(Ptr + netvars.m_aimPunchAngle); + return Memory.Read(Ptr + netvars.m_Local + netvars.m_aimPunchAngle); } } public static Vector LocalViewAngle diff --git a/AnimeSoftware/Objects/Structs.cs b/AnimeSoftware/Objects/Structs.cs index 3cea98c..1057c17 100644 --- a/AnimeSoftware/Objects/Structs.cs +++ b/AnimeSoftware/Objects/Structs.cs @@ -379,6 +379,8 @@ namespace AnimeSoftware } } } + + [StructLayout(LayoutKind.Sequential)] public struct Vector { diff --git a/AnimeSoftware/Utils/Checks.cs b/AnimeSoftware/Utils/Checks.cs index de734c2..8396741 100644 --- a/AnimeSoftware/Utils/Checks.cs +++ b/AnimeSoftware/Utils/Checks.cs @@ -58,7 +58,7 @@ namespace AnimeSoftware } } - public static string version = "v4.00"; + public static string version = "v4.10"; } } diff --git a/version b/version index 4a76a5d..3aaa128 100644 --- a/version +++ b/version @@ -1,4 +1,5 @@ -v4.00 +v4.10 offset autoupdate small code refactoring +aimbot fix