From 1fca2d57e302d60347a22c7fcbb11338808a0b11 Mon Sep 17 00:00:00 2001 From: kolonelkadat Date: Wed, 4 May 2016 00:31:34 -0400 Subject: [PATCH] first commit --- .gitignore | 2 + Class1.cs | 19 ++++++ Hack.cs | 120 +++++++++++++++++++++++++++++++++++++ Properties/AssemblyInfo.cs | 36 +++++++++++ sslAimAssist.csproj | 57 ++++++++++++++++++ sslAimAssist.sln | 22 +++++++ sslAimAssist.v12.suo | Bin 0 -> 23040 bytes 7 files changed, 256 insertions(+) create mode 100644 .gitignore create mode 100644 Class1.cs create mode 100644 Hack.cs create mode 100644 Properties/AssemblyInfo.cs create mode 100644 sslAimAssist.csproj create mode 100644 sslAimAssist.sln create mode 100644 sslAimAssist.v12.suo diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1746e32 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +bin +obj diff --git a/Class1.cs b/Class1.cs new file mode 100644 index 0000000..e32fdc6 --- /dev/null +++ b/Class1.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Text; +using UnityEngine; + +namespace sslAimAssist +{ + public class Class1 + { + public static GameObject load_obj; + + public static void Load() + { + load_obj = new GameObject(); + load_obj.AddComponent(); + UnityEngine.Object.DontDestroyOnLoad(load_obj); + } + } +} diff --git a/Hack.cs b/Hack.cs new file mode 100644 index 0000000..b0a8d46 --- /dev/null +++ b/Hack.cs @@ -0,0 +1,120 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using UnityEngine; + +namespace sslAimAssist +{ + class Hack : MonoBehaviour + { + private const string NOT_FOUND = "Aimer not Found"; + private const string INIT_MESSAGE = "FPX aim assist loaded"; + + private string OverlayString = INIT_MESSAGE; + + private int _lastPower = 0; + private int _lastAngle = 0; + private float lastTime = Time.time; + + private double g = 9.812; + private float powerSalt = 10.75f; + + void Start() + { + + } + + void Update() + { + if (Input.GetKeyDown(KeyCode.Keypad0)) + { + powerSalt -= 0.25f; + } + if (Input.GetKeyDown(KeyCode.Keypad1)) + { + powerSalt += 0.25f; + } + + if (Game.round.me.mc != null) + { + OverlayString = Aimer.instance.power + " " + Aimer.instance.angle + " " + powerSalt; + OverlayString += Environment.NewLine + string.Format("ME:: X={0:0.0###} Y={1}", Game.round.me.x, Game.round.me.y); + + + foreach (Tank t in Game.round.tanks) + { + OverlayString += Environment.NewLine + string.Format("X={0:0.0###} Y={1}", t.x, t.y); + } + + if ((Time.time > lastTime + 0.75) && (Aimer.instance.power != _lastPower || Aimer.instance.angle != _lastAngle)) + { + lastTime = Time.time; + _lastAngle = Aimer.instance.angle; + _lastPower = Aimer.instance.power; + + Tank tPlayer = Game.round.me; + projectileMotion(tPlayer.x, tPlayer.y); + } + } + else + { + OverlayString = NOT_FOUND; + } + } + + private void projectileMotion(float p1, int p2) + { + float angle = (float)getAngle(Aimer.instance.angle); + int count = 0; + if (Aimer.instance.angle <= 180) + { + for (int i = 1; i <= 1000; i += 10) + { + float t = i / ((Aimer.instance.power + powerSalt) * Mathf.Cos(angle)); + float Y = (float)(((Aimer.instance.power + powerSalt) * Mathf.Sin(angle)) * t - (0.5 * g * t * t)); + Spawn.GO(Scene_Game.instance.tracerDotPrefab, null, Map.toWorldX((float)i + Game.round.me.x), Map.toWorldY(Game.round.me.y + Y), 0f, null).GetComponent().Init(count); + count++; + } + } + else + { + for (int i = 1; i > -1000; i -= 10) + { + float t = i / ((Aimer.instance.power + powerSalt) * Mathf.Cos(angle)); + float Y = (float)(((Aimer.instance.power + powerSalt) * Mathf.Sin(angle)) * t - (0.5 * g * t * t)); + Spawn.GO(Scene_Game.instance.tracerDotPrefab, null, Map.toWorldX((float)i + Game.round.me.x), Map.toWorldY(Game.round.me.y + Y), 0f, null).GetComponent().Init(count); + count++; + } + } + } + + private float getAngle(int angle) + { + float ret = 0; + if (angle <= 90) + { + ret = 90 - angle; + } + else if (angle > 90 && angle <= 180) + { + ret = (angle - 90) * -1; + } + else if (angle > 180 && angle <= 270) + { + ret = (angle - 270) * -1; + } + else if (angle > 270) + { + ret = (angle - 270) * -1; + } + ret = (float)((ret * Mathf.PI) / 180.0); + return ret; + } + + void OnGUI() + { + GUI.Label(new Rect(10, 25, 300, 300), OverlayString ); + } + } +} diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..24a12c5 --- /dev/null +++ b/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("sslAimAssist")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("sslAimAssist")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("51069413-acfc-4519-850a-1778667cb7fa")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/sslAimAssist.csproj b/sslAimAssist.csproj new file mode 100644 index 0000000..08ffcf5 --- /dev/null +++ b/sslAimAssist.csproj @@ -0,0 +1,57 @@ + + + + + Debug + AnyCPU + {55D98C53-E9A1-4C47-A6C7-4D0751C5D693} + Library + Properties + sslAimAssist + sslAimAssist + v4.0 + 512 + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\..\..\..\..\Program Files (x86)\Steam\SteamApps\common\ShellShock Live\ShellShockLive_Data\Managed\Assembly-CSharp.dll + + + + + + ..\..\..\..\..\..\Program Files (x86)\Steam\SteamApps\common\ShellShock Live\ShellShockLive_Data\Managed\UnityEngine.dll + + + + + + + + + + \ No newline at end of file diff --git a/sslAimAssist.sln b/sslAimAssist.sln new file mode 100644 index 0000000..897e27f --- /dev/null +++ b/sslAimAssist.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30723.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sslAimAssist", "sslAimAssist.csproj", "{55D98C53-E9A1-4C47-A6C7-4D0751C5D693}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {55D98C53-E9A1-4C47-A6C7-4D0751C5D693}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {55D98C53-E9A1-4C47-A6C7-4D0751C5D693}.Debug|Any CPU.Build.0 = Debug|Any CPU + {55D98C53-E9A1-4C47-A6C7-4D0751C5D693}.Release|Any CPU.ActiveCfg = Release|Any CPU + {55D98C53-E9A1-4C47-A6C7-4D0751C5D693}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/sslAimAssist.v12.suo b/sslAimAssist.v12.suo new file mode 100644 index 0000000000000000000000000000000000000000..4da2e7bb697f345ab313b09dbe570b4ab860a1bc GIT binary patch literal 23040 zcmeHPTW}lI8D2vYl0eHX4FLiO5+Eg!s=KA!$Z91gE;cc-b16}3*3#NhENR_c$rs|Z z+;0U+3k9ZkW=dyZ+RiY2Y5UT`48tR|GqlrAAE0kM_43k(4y50=yT@9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