Skip to content

Commit 2f5d23b

Browse files
Fix tier spoof
1 parent cbf24ae commit 2f5d23b

File tree

5 files changed

+20
-18
lines changed

5 files changed

+20
-18
lines changed

Mods/Buttons.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,8 @@ public class Buttons
357357
new ButtonInfo { buttonText = "Name Spoof", enableMethod =() => Patches.ColorPatch.nameSpoofEnabled = true, disableMethod =() => Patches.ColorPatch.nameSpoofEnabled = false, toolTip = "Changes your name on the leaderboard to something random, but not on your rig."},
358358
new ButtonInfo { buttonText = "Color Spoof", enableMethod =() => Patches.ColorPatch.patchEnabled = true, disableMethod =() => Patches.ColorPatch.patchEnabled = false, toolTip = "Makes your color appear different to every player."},
359359

360-
new ButtonInfo { buttonText = "Ranked Tier Spoof", method =() => Safety.SpoofRank(true), disableMethod =() => Safety.SpoofRank(false), toolTip = "Spoofs your rank for competitive lobbies, letting you join higher or lower lobbies."},
361-
new ButtonInfo { buttonText = "Ranked Platform Spoof", method =() => Safety.SpoofPlatform(true), disableMethod =() => Safety.SpoofPlatform(false), toolTip = "Spoofs your platform for competitive lobbies, letting you join quest lobbies."},
362-
360+
new ButtonInfo { buttonText = "Ranked Tier Spoof", method =() => Safety.SpoofRank(true, Safety.targetRank), disableMethod =() => Safety.SpoofRank(false), toolTip = "Spoofs your rank for competitive lobbies, letting you join higher or lower lobbies."},
361+
new ButtonInfo { buttonText = "Ranked Platform Spoof", method =() => Safety.SpoofPlatform(true, "Quest"), disableMethod =() => Safety.SpoofPlatform(false), toolTip = "Spoofs your platform for competitive lobbies, letting you join quest lobbies."},
363362
new ButtonInfo { buttonText = "Unload Menu", method =() => UnloadMenu(), isTogglable = false, toolTip = "Unloads the menu from your game."}
364363
},
365364

@@ -1319,7 +1318,7 @@ public class Buttons
13191318
new ButtonInfo { buttonText = "Visualize Anti Report", toolTip = "Visualizes the distance threshold for the anti report mods."},
13201319
new ButtonInfo { buttonText = "Smart Anti Report", enableMethod =() => Safety.smartarp = true, disableMethod =() => Safety.smartarp = false, toolTip = "Makes the anti report mods only activate in non-modded public lobbies."},
13211320

1322-
new ButtonInfo { buttonText = "Change Ranked Tier", overlapText = "Change Ranked Tier <color=grey>[</color><color=green>Normal</color><color=grey>]</color>", method =() => Safety.ChangeRankedTier(), enableMethod =() => Safety.ChangeRankedTier(), disableMethod =() => Safety.ChangeRankedTier(false), incremental = true, isTogglable = false, toolTip = "Changes the targetted tier for the rank spoof mod."},
1321+
new ButtonInfo { buttonText = "Change Ranked Tier", overlapText = "Change Ranked Tier <color=grey>[</color><color=green>High</color><color=grey>]</color>", method =() => Safety.ChangeRankedTier(), enableMethod =() => Safety.ChangeRankedTier(), disableMethod =() => Safety.ChangeRankedTier(false), incremental = true, isTogglable = false, toolTip = "Changes the targetted tier for the rank spoof mod."},
13231322
},
13241323

13251324
new ButtonInfo[] { // Temporary Category [29]

Mods/Safety.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,8 @@ public static void FPSSpoof()
502502
"GREY", "OG", "BANNED", "LEMON", "PLUSHIE", "CHEETO", "TIKTOK", "YOUTUBE", "TWITCH", "DISCORD"
503503
};
504504

505-
private static string targetRank;
506-
public static int rankIndex;
505+
public static string targetRank = "High";
506+
public static int rankIndex = 2;
507507

508508
public static void ChangeRankedTier(bool positive = true)
509509
{
@@ -520,16 +520,16 @@ public static void ChangeRankedTier(bool positive = true)
520520
GetIndex("Change Ranked Tier").overlapText = "Change Ranked Tier <color=grey>[</color><color=green>" + targetRank + "</color><color=grey>]</color>";
521521
}
522522

523-
public static void SpoofRank(bool enabled)
523+
public static void SpoofRank(bool enabled, string tier = "")
524524
{
525525
Patches.RankedPatch.enabled = enabled;
526-
Patches.RankedPatch.targetTier = targetRank;
526+
Patches.RankedPatch.targetTier = tier;
527527
}
528528

529-
public static void SpoofPlatform(bool enabled)
529+
public static void SpoofPlatform(bool enabled, string target = "")
530530
{
531531
Patches.RankedPatch.enabled = enabled;
532-
Patches.RankedPatch.targetPlatform = "QUEST";
532+
Patches.RankedPatch.targetPlatform = target;
533533
}
534534
}
535535
}

Mods/Visuals.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using UnityEngine.Rendering;
1010
using static iiMenu.Classes.RigManager;
1111
using static iiMenu.Menu.Main;
12-
using static Mono.Security.X509.X509Stores;
1312

1413
namespace iiMenu.Mods
1514
{

Patches/RankedPatch.cs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,27 @@
33

44
namespace iiMenu.Patches
55
{
6-
[HarmonyPatch(typeof(PhotonNetworkController), "AttemptToJoinRankedPublicRoomAsync")]
6+
[HarmonyPatch(typeof(PhotonNetworkController), "AttemptToJoinRankedPublicRoom")]
77
public class RankedPatch
88
{
99
public static bool enabled;
1010
public static string targetPlatform;
1111
public static string targetTier;
1212

13-
public static void Prefix(GorillaNetworkJoinTrigger triggeredTrigger, ref string mmrTier, ref string platform, JoinType roomJoinType)
13+
public static bool Prefix(GorillaNetworkJoinTrigger triggeredTrigger, JoinType roomJoinType = JoinType.Solo)
1414
{
1515
if (enabled)
1616
{
17-
if (targetPlatform != "")
18-
platform = targetPlatform;
17+
PhotonNetworkController.Instance.AttemptToJoinRankedPublicRoomAsync(
18+
triggeredTrigger,
19+
targetTier == "" ? RankedProgressionManager.Instance.GetRankedMatchmakingTier().ToString() : targetTier,
20+
targetPlatform == "" ? "PC" : targetPlatform,
21+
roomJoinType
22+
);
1923

20-
if (targetTier != "")
21-
mmrTier = targetTier;
24+
return false;
2225
}
26+
return true;
2327
}
2428
}
2529
}

Patches/Safety.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public static bool Prefix(VRRig __instance) =>
236236
public class DisplayNamePatch
237237
{
238238
public static void Prefix(ref UpdateUserTitleDisplayNameRequest request, Action<UpdateUserTitleDisplayNameResult> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null) =>
239-
request.DisplayName = GenerateRandomString(UnityEngine.Random.Range(1, 12));
239+
request.DisplayName = GenerateRandomString(UnityEngine.Random.Range(3, 12));
240240
}
241241

242242
[HarmonyPatch(typeof(VRRig), "PlayHandTapLocal")]

0 commit comments

Comments
 (0)