Skip to content

Commit

Permalink
v2021.5.25.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Herysia committed May 28, 2021
1 parent c15463b commit 6f927e8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CustomKeybinds/CustomKeybinds.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ReferencePath>I:\Games\AmongUs_Modding\latest_unobf\BepInEx\unhollowed\;I:\Games\AmongUs_Modding\latest_unobf\BepInEx\core\</ReferencePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<ReferencePath>I:\Games\AmongUs_Modding\2021.3.31s\BepInEx\unhollowed\;I:\Games\AmongUs_Modding\2021.3.31s\BepInEx\core\</ReferencePath>
<ReferencePath>I:\Games\AmongUs_Modding\latest\BepInEx\unhollowed\;I:\Games\AmongUs_Modding\latest\BepInEx\core\</ReferencePath>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand Down
22 changes: 11 additions & 11 deletions CustomKeybinds/Patches/KeyboardJoystickPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
using UnityEngine;

// DestroyableSingleton -> PPAEIPHJPDH;
// DestroyableSingleton.InstanceExists -> PPAEIPHJPDH.JECNDKBIOFO
// DestroyableSingleton.Instance -> CMJOLNCMAPD
// DestroyableSingleton.InstanceExists -> PPAEIPHJPDH.InstanceExists
// DestroyableSingleton.Instance -> Instance
// MapBehaviour.Instance.IsOpen -> CBAGIJCCEGG.Instance.GELKOGPNIBJ (/!\ it's maybe IsOpenStopped
// PlayerControl.LocalPlayer.Data.IsImpostor -> PlayerControl.LocalPlayer.IDOFAMCIJKE.DAPKNDBLKIA

Expand All @@ -29,15 +29,15 @@ public static bool Prefix(KeyboardJoystick __instance)
if (Input.GetKey(KeyCode.DownArrow) || Input.GetKey(ConfigManager.keyBinds[KeyAction.Backward]))
del.y -= 1f;
del.Normalize();
__instance.GOJFEOOBJKI = del;
__instance.del = del;

HandleHud();
if (Input.GetKeyDown(KeyCode.Escape))
{
if (Minigame.Instance)
Minigame.Instance.Close();
else if (DestroyableSingleton<HudManager>.JECNDKBIOFO && MapBehaviour.Instance &&
MapBehaviour.Instance.LFGAAGECFFO)
else if (DestroyableSingleton<HudManager>.InstanceExists && MapBehaviour.Instance &&
MapBehaviour.Instance.IsOpen)
MapBehaviour.Instance.Close();
else if (CustomPlayerMenu.Instance) CustomPlayerMenu.Instance.Close(true);
}
Expand All @@ -47,13 +47,13 @@ public static bool Prefix(KeyboardJoystick __instance)

private static void HandleHud()
{
if (!DestroyableSingleton<HudManager>.JECNDKBIOFO) return;
if (!DestroyableSingleton<HudManager>.InstanceExists) return;
if (Input.GetKeyDown(ConfigManager.keyBinds[KeyAction.Report]))
DestroyableSingleton<HudManager>.CMJOLNCMAPD.ReportButton.DoClick();
DestroyableSingleton<HudManager>.Instance.ReportButton.DoClick();
if (Input.GetKeyDown(ConfigManager.keyBinds[KeyAction.Use]))
DestroyableSingleton<HudManager>.CMJOLNCMAPD.UseButton.DoClick();
DestroyableSingleton<HudManager>.Instance.UseButton.DoClick();
if (Input.GetKeyDown(ConfigManager.keyBinds[KeyAction.Map]))
DestroyableSingleton<HudManager>.CMJOLNCMAPD.OpenMap();
DestroyableSingleton<HudManager>.Instance.OpenMap();
if (Input.GetKeyDown(ConfigManager.keyBinds[KeyAction.Tasks])) Utils.ToggleTab();
/*
if((PlayerControl.LocalPlayer.IDOFAMCIJKE != null))
Expand All @@ -64,9 +64,9 @@ private static void HandleHud()
System.Console.WriteLine("4: {0}", PlayerControl.LocalPlayer.IDOFAMCIJKE.FGNJJFABIHJ);
}
*/
if (PlayerControl.LocalPlayer.IDOFAMCIJKE != null && PlayerControl.LocalPlayer.IDOFAMCIJKE.CIDDOFDJHJH &&
if (PlayerControl.LocalPlayer.Data != null && PlayerControl.LocalPlayer.Data.IsImpostor &&
Input.GetKeyDown(ConfigManager.keyBinds[KeyAction.Kill]))
DestroyableSingleton<HudManager>.CMJOLNCMAPD.KillButton.PerformKill();
DestroyableSingleton<HudManager>.Instance.KillButton.PerformKill();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion CustomKeybinds/Tools/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static T GetChildComponentByName<T>(GameObject parent, string name) where

internal static void ToggleTab()
{
var taskStuff = DestroyableSingleton<HudManager>.CMJOLNCMAPD?.TaskStuff;
var taskStuff = DestroyableSingleton<HudManager>.Instance?.TaskStuff;

if (taskStuff == null || !taskStuff.active)
return;
Expand Down

0 comments on commit 6f927e8

Please sign in to comment.