Skip to content

Commit

Permalink
Small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
scp222thj committed Jan 7, 2024
1 parent d1878fb commit 4407597
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 9 additions & 7 deletions src/ESP/EspCheatsPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ public static class SeeRoles_MeetingHud_Update_Postfix
{
//Postfix patch of MeetingHud.Update to get colored names in meetings
public static void Postfix(MeetingHud __instance){
foreach (PlayerVoteArea playerState in __instance.playerStates)
{
//Fetching the GameData.PlayerInfo of each playerState to get the player's role
GameData.PlayerInfo data = GameData.Instance.GetPlayerById(playerState.TargetPlayerId);
try{
foreach (PlayerVoteArea playerState in __instance.playerStates)
{
//Fetching the GameData.PlayerInfo of each playerState to get the player's role
GameData.PlayerInfo data = GameData.Instance.GetPlayerById(playerState.TargetPlayerId);

//Get appropriate name color depending on if CheatSettings.seeRoles is enabled
playerState.NameText.color = Utils.getColorName(CheatToggles.seeRoles, data);
//Get appropriate name color depending on if CheatSettings.seeRoles is enabled
playerState.NameText.color = Utils.getColorName(CheatToggles.seeRoles, data);

}
}
}catch{}
}
}

Expand Down
1 change: 0 additions & 1 deletion src/RPCExploit/MassMedScanPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public static void Postfix(PlayerPhysics __instance){
{
MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(sender.NetId, (byte)RpcCalls.SetScanner, SendOption.None, AmongUsClient.Instance.GetClientIdFromCharacter(recipient));
writer.Write(CheatToggles.massMedScan);
writer.Write(sender.scannerCount + 1);
AmongUsClient.Instance.FinishRpcImmediately(writer);
}
}
Expand Down

0 comments on commit 4407597

Please sign in to comment.