Skip to content

Commit

Permalink
Small release: v1.1.1
Browse files Browse the repository at this point in the history
- Change: Move "AlwaysChat" to "ESP"
- Add: "Camera" group
  • Loading branch information
scp222thj committed Aug 1, 2023
1 parent 402b1c6 commit 52f6f46
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 38 deletions.
18 changes: 10 additions & 8 deletions FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
- [ESP](#esp)
- [SeeGhosts](#seeghosts)
- [SeeRoles](#seeroles)
- [AlwaysChat](#alwayschat)
- [FullBright](#fullbright)
- [Camera](#camera)
- [ZoomOut](#zoomout)
- [Spectate](#spectate)
- [Freecam](#freecam)
Expand Down Expand Up @@ -45,7 +47,6 @@
- [EvilVote](#evilvote)
- [VoteImmune](#voteimmune)
- [Passive](#passive)
- [AlwaysChat](#alwayschat)
- [FreeCosmetics](#freecosmetics)
- [AvoidPenalties](#avoidpenalties)
- [UnlockFeatures](#unlockfeatures)
Expand Down Expand Up @@ -109,12 +110,20 @@ Type: **Toggle**

![SeeRoles](https://cdn.discordapp.com/attachments/1097928762324168744/1133144778272419840/image.png)

### AlwaysChat
Keeps the chat icon always enabled, even while you're not in a meeting or the lobby

Type: **Toggle**
- Default: **OFF**

### FullBright
Removes all shadows, allowing you to see during blackouts and even through walls

Type: **Toggle**
- Default: **OFF**

## Camera

### ZoomOut
Allows you to zoom-out the player's camera using your mouse's scrollwheel

Expand Down Expand Up @@ -329,13 +338,6 @@ Type: **Toggle**
## Passive
These cheats are constantly running in the background and cannot be disabled to avoid problems

### AlwaysChat
Keeps the chat icon always enabled, even while you're not in a meeting or the lobby

Type: **Toggle**
- Default: **ON**
- **CANNOT BE DISABLED**

### FreeCosmetics
Gives you access to all of the game's cosmetics for free, including:

Expand Down
17 changes: 9 additions & 8 deletions src/ESP/HudPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ namespace MalumMenu;
public static class ESP_HudManagerPostfix
{
public static bool resolutionchangeNeeded;
public static bool chatActive;
public static bool fullBrightActive;

//Postfix patch of HudManager.Update for several HUD modules
public static void Postfix(HudManager __instance){
//Remove ShadowQuad if CheatSettings.fullBright or camera is zoomed-out or spectating/freecam
if(CheatSettings.fullBright
|| Camera.main.orthographicSize > 3f
|| Camera.main.gameObject.GetComponent<FollowerCamera>().Target != PlayerControl.LocalPlayer){
__instance.ShadowQuad.gameObject.SetActive(false);
}else{
__instance.ShadowQuad.gameObject.SetActive(true);
}
//Remove all shadows if CheatSettings.fullBright or camera is zoomed-out or spectating/freecam
fullBrightActive = CheatSettings.fullBright || Camera.main.orthographicSize > 3f || Camera.main.gameObject.GetComponent<FollowerCamera>().Target != PlayerControl.LocalPlayer;
__instance.ShadowQuad.gameObject.SetActive(!fullBrightActive);

//Allow seeing chat icon in-game even while you're not supposed to
chatActive = CheatSettings.alwaysChat || MeetingHud.Instance || !ShipStatus.Instance || PlayerControl.LocalPlayer.Data.IsDead;
__instance.Chat.gameObject.SetActive(chatActive);

//Allow zooming-out through mouse wheel if CheatSettings.zoomOut is enabled
if(CheatSettings.zoomOut){
Expand Down
6 changes: 3 additions & 3 deletions src/MalumMenu.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<LangVersion>latest</LangVersion>
<DebugType>embedded</DebugType>

<VersionPrefix>1.1.0</VersionPrefix>
<VersionPrefix>1.1.1</VersionPrefix>
<Description>all play and no cheats makes among us a dull game</Description>
<!-- <Authors>scp222thj</Authors> -->
</PropertyGroup>

<ItemGroup>
<!--<ItemGroup>
<EmbeddedResource Include=".\Assets\**" />
</ItemGroup>
</ItemGroup>-->

<ItemGroup>
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.662" Private="false" ExcludeAssets="runtime;native" />
Expand Down
2 changes: 1 addition & 1 deletion src/MalumMenuPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace MalumMenu;
public partial class MalumPlugin : BasePlugin
{
public Harmony Harmony { get; } = new(Id);
public static string malumVersion = "1.1.0";
public static string malumVersion = "1.1.1";
public static List<string> supportedAU = new List<string> { "2023.7.12", "2023.7.11" };
private static MenuUI menuUI;

Expand Down
13 changes: 0 additions & 13 deletions src/Passive/HudChatPatch.cs

This file was deleted.

6 changes: 4 additions & 2 deletions src/UI/CheatSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ public struct CheatSettings
public static bool teleportPlayer;

//ESP
public static bool zoomOut;
public static bool alwaysChat;
public static bool fullBright;
public static bool seeGhosts;
public static bool seeRoles;

//Camera
public static bool spectate;
public static bool zoomOut;
public static bool freeCam;

//Minimap
Expand Down Expand Up @@ -60,7 +63,6 @@ public struct CheatSettings
public static bool voteImmune;

//Passive
public static bool alwaysChat = true;
public static bool unlockFeatures = true;
public static bool freeCosmetics = true;
public static bool avoidBans = true;
Expand Down
9 changes: 6 additions & 3 deletions src/UI/MenuUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ private void Start()
groups.Add(new GroupInfo("ESP", false, new List<ToggleInfo>() {
new ToggleInfo(" SeeGhosts", () => CheatSettings.seeGhosts, x => CheatSettings.seeGhosts = x),
new ToggleInfo(" SeeRoles", () => CheatSettings.seeRoles, x => CheatSettings.seeRoles = x),
new ToggleInfo(" FullBright", () => CheatSettings.fullBright, x => CheatSettings.fullBright = x),
new ToggleInfo(" AlwaysChat", () => CheatSettings.alwaysChat, x => CheatSettings.alwaysChat = x),
new ToggleInfo(" FullBright", () => CheatSettings.fullBright, x => CheatSettings.fullBright = x)
}));

groups.Add(new GroupInfo("Camera", false, new List<ToggleInfo>() {
new ToggleInfo(" ZoomOut", () => CheatSettings.zoomOut, x => CheatSettings.zoomOut = x),
new ToggleInfo(" Spectate", () => CheatSettings.spectate, x => CheatSettings.spectate = x),
new ToggleInfo(" Freecam", () => CheatSettings.freeCam, x => CheatSettings.freeCam = x)
Expand Down Expand Up @@ -75,7 +79,6 @@ private void Start()
}));

groups.Add(new GroupInfo("Passive", false, new List<ToggleInfo>() {
new ToggleInfo(" AlwaysChat", () => CheatSettings.alwaysChat, x => CheatSettings.alwaysChat = x),
new ToggleInfo(" FreeCosmetics", () => CheatSettings.freeCosmetics, x => CheatSettings.freeCosmetics = x),
new ToggleInfo(" AvoidPenalties", () => CheatSettings.avoidBans, x => CheatSettings.avoidBans = x),
new ToggleInfo(" UnlockFeatures", () => CheatSettings.unlockFeatures, x => CheatSettings.unlockFeatures = x)
Expand All @@ -94,7 +97,7 @@ private void Update(){
}

//Passive cheats are always on to avoid problems
CheatSettings.alwaysChat = CheatSettings.unlockFeatures = CheatSettings.freeCosmetics = CheatSettings.avoidBans = true;
CheatSettings.unlockFeatures = CheatSettings.freeCosmetics = CheatSettings.avoidBans = true;

//Host-only cheats are turned off if LocalPlayer is not the game's host
if(!isHostCheck.isHost){
Expand Down

0 comments on commit 52f6f46

Please sign in to comment.