File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public static void Prefix(PlatformSpecificData __instance)
22
22
public static class SystemInfo_deviceUniqueIdentifier_Getter
23
23
{
24
24
// Postfix patch of SystemInfo.deviceUniqueIdentifier Getter method
25
- // to hide the user's real unique deviceId by generating a random fake one
25
+ // Made to hide the user's real unique deviceId by generating a random fake one
26
26
public static void Postfix ( ref string __result )
27
27
{
28
28
if ( MalumMenu . spoofDeviceId . Value ) {
Original file line number Diff line number Diff line change @@ -41,11 +41,15 @@ public static void Postfix(PlayerPhysics __instance)
41
41
[ HarmonyPatch ( typeof ( PlayerPhysics ) , nameof ( PlayerPhysics . SetNormalizedVelocity ) ) ]
42
42
public static class PlayerPhysics_SetNormalizedVelocity
43
43
{
44
+ // Prefix patch of PlayerPhysics.SetNormalizedVelocity to double the player's speed when the speedBoost cheat is enabled
44
45
public static bool Prefix ( PlayerPhysics __instance , Vector2 direction )
45
46
{
46
47
if ( CheatToggles . speedBoost ) {
48
+
49
+ // Cheat multiplier
47
50
float cheatSpeed = 2f ;
48
51
52
+ // Actual speed of player (no hacks)
49
53
float actualSpeed = PlayerControl . LocalPlayer . MyPhysics . Speed * PlayerControl . LocalPlayer . MyPhysics . SpeedMod ;
50
54
51
55
PlayerControl . LocalPlayer . MyPhysics . body . velocity = direction * actualSpeed * cheatSpeed ;
You can’t perform that action at this time.
0 commit comments