Skip to content

Commit

Permalink
Add Noisemaker to changeRole cheat
Browse files Browse the repository at this point in the history
  • Loading branch information
scp222thj committed Jun 23, 2024
1 parent 4664966 commit 7214b9d
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion src/Cheats/MalumPPMCheats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,18 @@ public static void changeRolePPM()
SkinId = "skin_rhm"
};

// Custom PPM choice for Engineer role
// Custom PPM choice for Tracker role
playerDataList.Add(PlayerPickMenu.customPPMChoice("Tracker", trackerOutfit, Utils.getBehaviourByRoleType(RoleTypes.Tracker)));

NetworkedPlayerInfo.PlayerOutfit noisemakerOutfit = new NetworkedPlayerInfo.PlayerOutfit
{
ColorId = 10,
HatId = "hat_pk03_Headphones"
};

// Custom PPM choice for Noisemaker role
playerDataList.Add(PlayerPickMenu.customPPMChoice("Noisemaker", noisemakerOutfit, Utils.getBehaviourByRoleType(RoleTypes.Noisemaker)));

NetworkedPlayerInfo.PlayerOutfit engineerOutfit = new NetworkedPlayerInfo.PlayerOutfit
{
ColorId = 10,
Expand Down Expand Up @@ -235,6 +244,21 @@ public static void changeRolePPM()
RoleManager.Instance.SetRole(PlayerControl.LocalPlayer, RoleTypes.CrewmateGhost);
}
}else{

/* if (PlayerPickMenu.targetPlayerData.Role.Role == RoleTypes.Shapeshifter && oldRole != RoleTypes.Shapeshifter){
Utils.showPopup("\n<size=125%>Changing into the Shapeshifter role is not recommended\nsince shapeshifting will get you kicked by the anticheat");
} else if (PlayerPickMenu.targetPlayerData.Role.Role == RoleTypes.Noisemaker && oldRole != RoleTypes.Noisemaker){
Utils.showPopup("\n<size=125%>Changing into the Noisemaker role is not recommended\nsince dying won't trigger the alert for other players");
} else if (oldRole == RoleTypes.Noisemaker){
Utils.showPopup("\n<size=125%>Your \"real\" role is still Noisemaker\nso other players will still see the alert when you die");
} */

RoleManager.Instance.SetRole(PlayerControl.LocalPlayer, PlayerPickMenu.targetPlayerData.Role.Role);
}

Expand Down

0 comments on commit 7214b9d

Please sign in to comment.