From d6d8a60b207337ec101ffa70204614c2fc338fbb Mon Sep 17 00:00:00 2001 From: Trenten Pettry Date: Tue, 28 Apr 2026 15:29:42 -0400 Subject: [PATCH] gng --- Lithium/Lithium.csproj | 38 +++++++++++++++++++++- Lithium/OperatorSets.cs | 4 +-- Lithium/RecoilEngine.cs | 29 +++++++---------- Lithium/bin/{Lithium.7z => gayLithium.7z} | Bin Lithium/packages.config | 10 ++++++ 5 files changed, 61 insertions(+), 20 deletions(-) rename Lithium/bin/{Lithium.7z => gayLithium.7z} (100%) create mode 100644 Lithium/packages.config diff --git a/Lithium/Lithium.csproj b/Lithium/Lithium.csproj index 4323937..fff2869 100644 --- a/Lithium/Lithium.csproj +++ b/Lithium/Lithium.csproj @@ -91,20 +91,56 @@ ..\packages\System.Buffers.4.6.1\lib\net462\System.Buffers.dll + + + ..\packages\System.IO.4.3.0\lib\net462\System.IO.dll + True + True + ..\packages\System.IO.Pipelines.10.0.0\lib\net462\System.IO.Pipelines.dll ..\packages\System.Memory.4.6.3\lib\net462\System.Memory.dll + + ..\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll + True + True + ..\packages\System.Numerics.Vectors.4.6.1\lib\net462\System.Numerics.Vectors.dll + + ..\packages\System.Runtime.4.3.0\lib\net462\System.Runtime.dll + True + True + ..\packages\System.Runtime.CompilerServices.Unsafe.6.1.2\lib\net462\System.Runtime.CompilerServices.Unsafe.dll + + ..\packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net463\System.Security.Cryptography.Algorithms.dll + True + True + + + ..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll + True + True + + + ..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll + True + True + + + ..\packages\System.Security.Cryptography.X509Certificates.4.3.0\lib\net461\System.Security.Cryptography.X509Certificates.dll + True + True + ..\packages\System.Text.Encodings.Web.10.0.0\lib\net462\System.Text.Encodings.Web.dll @@ -120,7 +156,6 @@ - 4.0 @@ -171,6 +206,7 @@ Resources.Designer.cs + SettingsSingleFileGenerator Settings.Designer.cs diff --git a/Lithium/OperatorSets.cs b/Lithium/OperatorSets.cs index 97a14c1..28015f5 100644 --- a/Lithium/OperatorSets.cs +++ b/Lithium/OperatorSets.cs @@ -45,13 +45,13 @@ namespace Lua private static string OnlineConfigUrl => string.IsNullOrEmpty(ConfigLoader.userName) ? null - : $"https://jj.giggity.gay/api/config/export?name={Uri.EscapeDataString(ConfigLoader.userName)}"; + : $"https://jj.scpsmp.site/api/config/export?name={Uri.EscapeDataString(ConfigLoader.userName)}"; // AA0060 public static string ConfigExportUrl => string.IsNullOrEmpty(ConfigLoader.userName) ? null - : $"https://jj.giggity.gay/exindex.html?name={Uri.EscapeDataString(ConfigLoader.userName)}"; + : $"https://jj.scpsmp.site/exindex.html?name={Uri.EscapeDataString(ConfigLoader.userName)}"; // AA0061 public static string CurrentSet diff --git a/Lithium/RecoilEngine.cs b/Lithium/RecoilEngine.cs index c2a259f..a32111e 100644 --- a/Lithium/RecoilEngine.cs +++ b/Lithium/RecoilEngine.cs @@ -1,35 +1,35 @@ using Lithium; using System; +using System.Runtime.InteropServices; using System.Threading; namespace Lua { internal static class RecoilEngine { - // AA0077 private const int VK_LBUTTON = 0x01; - // AA0078 private const int VK_RBUTTON = 0x02; - // AA0079 + [DllImport("user32.dll")] + private static extern short GetAsyncKeyState(int vKey); + private static readonly Random _rng = new Random(); - // AA0080 private static bool _jitterActive = false; - // AA0081 private static int _jitterStart = 0; - // AA0082 private static int _lastJitterEnd = 0; - // AA0083 private static double _remainderX, _remainderY; - // AA0084 private static double _jitterMultiplierX, _jitterMultiplierY; - // AA0085 + private static bool IsDown(int key) + { + return (GetAsyncKeyState(key) & 0x8000) != 0; + } + public static void Start(MainWindow window) { while (true) { - if (window.IsRecoilEnabled && Utils.IsPressed(VK_LBUTTON) && Utils.IsPressed(VK_RBUTTON)) + if (window.IsRecoilEnabled && IsDown(VK_LBUTTON) && IsDown(VK_RBUTTON)) { HandleRecoilTick(); } @@ -43,10 +43,9 @@ namespace Lua } } - // AA0086 private static void HandleRecoilTick() { - if (!Utils.IsPressed(VK_LBUTTON)) return; + if (!IsDown(VK_LBUTTON)) return; string setName = OperatorSets.CurrentSet; @@ -58,7 +57,6 @@ namespace Lua ApplyRecoil(recoil); } - // AA0087 private static void HandleJitter(int now) { if (!ConfigLoader.jitterEnabled) return; @@ -68,7 +66,6 @@ namespace Lua _jitterActive = true; _jitterStart = now; - // AA0088 _jitterMultiplierX = (_rng.NextDouble() - 0.5) * 0.2; _jitterMultiplierY = (_rng.NextDouble() - 0.5) * 0.2; } @@ -81,7 +78,6 @@ namespace Lua } } - // AA0089 private static void ApplyRecoil((double recoilX, double recoilY) recoil) { double moveX = recoil.recoilX; @@ -90,7 +86,6 @@ namespace Lua moveX += recoil.recoilX * _jitterMultiplierX; moveY += recoil.recoilY * _jitterMultiplierY; - // AA0090 if (ConfigLoader.debitFlag1) { moveX *= 1.282; @@ -109,4 +104,4 @@ namespace Lua Utils.MoveMouse(ix, iy); } } -} \ No newline at end of file +} diff --git a/Lithium/bin/Lithium.7z b/Lithium/bin/gayLithium.7z similarity index 100% rename from Lithium/bin/Lithium.7z rename to Lithium/bin/gayLithium.7z diff --git a/Lithium/packages.config b/Lithium/packages.config new file mode 100644 index 0000000..8556f40 --- /dev/null +++ b/Lithium/packages.config @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file