🚀 Added (New Features)
• Random Offset feature: Applies random X/Y offset values on each set activation (both mouse buttons pressed) • Each axis gets independent random values within configurable range (e.g., 0.003 and 0.008) • New random values generated on every activation • Toggle to enable/disable the feature 🛠️ Fixed (Bugs resolved) • Replaced jitter system (burst/cooldown) with simpler random offset system 📂 File-Level Changes Summary • ConfigLoader.cs: Added randomOffsetEnabled, randomOffsetMin, randomOffsetMax settings • RecoilEngine.cs: Implemented random offset logic with activation detection • MainWindow.xaml: Replaced Jitter Settings with Random Offset Settings UI • MainWindow.xaml.cs: Updated LoadSettingsToUI, GenerateConfigContent, ResetSettings_Click • helper.cs: Added ParseDoubleFromAssignment helper method
This commit is contained in:
+13
-13
@@ -42,11 +42,11 @@ namespace Lua
|
||||
public static string userName = null;
|
||||
|
||||
// AA0013
|
||||
public static bool jitterEnabled = false;
|
||||
public static bool randomOffsetEnabled = false;
|
||||
// AA0014
|
||||
public static int jitterBurstTime = 1800;
|
||||
public static double randomOffsetMin = 0.0001;
|
||||
// AA0015
|
||||
public static int jitterCooldown = 3000;
|
||||
public static double randomOffsetMax = 0.001;
|
||||
|
||||
// AA0016
|
||||
public static ConsoleColor textColor = ConsoleColor.Magenta;
|
||||
@@ -63,9 +63,9 @@ namespace Lua
|
||||
favoriteAttackers = null;
|
||||
favoriteDefenders = null;
|
||||
userName = null;
|
||||
jitterEnabled = false;
|
||||
jitterBurstTime = 1800;
|
||||
jitterCooldown = 3000;
|
||||
randomOffsetEnabled = false;
|
||||
randomOffsetMin = 0.0001;
|
||||
randomOffsetMax = 0.001;
|
||||
textColor = ConsoleColor.Magenta;
|
||||
quickSwaps.Clear();
|
||||
|
||||
@@ -108,13 +108,13 @@ namespace Lua
|
||||
favoriteDefenders = s2;
|
||||
else if (Helper.ParseStringFromAssignment(line, "userName", out var s3))
|
||||
userName = s3;
|
||||
// AA0025
|
||||
else if (Helper.ParseBoolFromAssignment(line, "jitterEnabled", out var jb))
|
||||
jitterEnabled = jb;
|
||||
else if (Helper.ParseIntFromAssignment(line, "jitterBurstTime", out var jbT))
|
||||
jitterBurstTime = jbT;
|
||||
else if (Helper.ParseIntFromAssignment(line, "jitterCooldown", out var jbC))
|
||||
jitterCooldown = jbC;
|
||||
// AA0025 - Random Offset Settings
|
||||
else if (Helper.ParseBoolFromAssignment(line, "randomOffsetEnabled", out var roe))
|
||||
randomOffsetEnabled = roe;
|
||||
else if (Helper.ParseDoubleFromAssignment(line, "randomOffsetMin", out var rom))
|
||||
randomOffsetMin = rom;
|
||||
else if (Helper.ParseDoubleFromAssignment(line, "randomOffsetMax", out var roM))
|
||||
randomOffsetMax = roM;
|
||||
// AA0026
|
||||
else if (Helper.ParseConsoleColorFromAssignment(line, "textColor", out var col))
|
||||
textColor = col;
|
||||
|
||||
Reference in New Issue
Block a user