Compare commits

..
7 Commits
Author SHA1 Message Date
Ape e3d8c23482 Diacritics, lobby info, bugfixes 2026-10-29 19:01:00 +01:00
MV 688998fc47 Yes 2026-10-19 20:27:52 +02:00
Ape dfa6836d70 Merge branch 'main' of https://github.com/ApeMV/AmongUsRevamped 2026-10-10 10:28:34 +02:00
Ape 5afb0bcb20 Fix some small issues 2026-10-10 10:26:16 +02:00
MV 645ff86660 v2.2.1 2026-10-08 10:20:49 +02:00
Ape 11fb96ccc2 GA fixes, disable peace period, bugfixes 2026-10-08 10:19:58 +02:00
MV ae1f4c7290 Forgot this 2026-10-02 08:28:45 +02:00
26 changed files with 258 additions and 106 deletions

No files matched your search

+5 -3
View File
@@ -38,14 +38,15 @@ public partial class Main : BasePlugin
public static ConfigEntry<bool> DisableCommandHelper { get; private set; }
public static ConfigEntry<bool> DisableCompatibilityWarning { get; private set; }
public static ConfigEntry<bool> DisableChatModifier { get; private set; }
public static ConfigEntry<bool> DisableLobbyInfo { get; private set; }
public static NormalGameOptionsV11 NormalOptions => GameOptionsManager.Instance != null ? GameOptionsManager.Instance.currentNormalGameOptions : null;
public static HideNSeekGameOptionsV11 HideNSeekOptions => GameOptionsManager.Instance != null ? GameOptionsManager.Instance.currentHideNSeekGameOptions : null;
public static NormalGameOptionsV12 NormalOptions => GameOptionsManager.Instance != null ? GameOptionsManager.Instance.currentNormalGameOptions : null;
public static HideNSeekGameOptionsV12 HideNSeekOptions => GameOptionsManager.Instance != null ? GameOptionsManager.Instance.currentHideNSeekGameOptions : null;
public static MapNames CurrentMap => (MapNames)NormalOptions.MapId;
public static bool HasArgumentException;
public static string CredentialsText;
public const string ModVersion = "v2.1.1";
public const string ModVersion = "v2.2.3";
public static float GameTimer;
public static float AfkTimer;
@@ -98,6 +99,7 @@ public partial class Main : BasePlugin
DisableCommandHelper = Config.Bind("Client Options", "Disable Command Helper", false);
DisableCompatibilityWarning = Config.Bind("Client Options", "Disable Compatibility Warning", false);
DisableChatModifier = Config.Bind("Client Options", "Disable Chat Modifications", false);
DisableLobbyInfo = Config.Bind("Client Options", "Disable Lobby Info", false);
Translator.Init();
Translator.Reload();
+2 -2
View File
@@ -18,8 +18,8 @@
<ItemGroup>
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.735" ExcludeAssets="runtime;native" />
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2026.8.18" PrivateAssets="all" Condition="'$(Configuration)' == 'Release'"/>
<PackageReference Include="AmongUs.GameLibs.Android" Version="2026.8.18" PrivateAssets="all" Condition="'$(Configuration)' == 'Android'"/>
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2026.9.29" PrivateAssets="all" Condition="'$(Configuration)' == 'Release'"/>
<PackageReference Include="AmongUs.GameLibs.Android" Version="2026.9.29" PrivateAssets="all" Condition="'$(Configuration)' == 'Android'"/>
<PackageReference Include="BepInEx.AutoPlugin" Version="1.1.0" PrivateAssets="all" />
<PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="2.1.0-rc.1" PrivateAssets="all" ExcludeAssets="runtime" />
+5 -4
View File
@@ -162,12 +162,13 @@ public static class BanManager
public static bool IsWordBanned(PlayerControl player, string input)
{
if (input == "" || !AmongUsClient.Instance.AmHost || Utils.CheckAccessLevel(player.Data.FriendCode) > 0 || !Options.EnableDeniedWords.GetBool()) return false;
int clientId = player.Data.ClientId;
var bannedWords = File.ReadAllLines(BanWordPath).Where(x => !x.StartsWith("#"));
var bannedWords = File.ReadAllLines(BanWordPath).Select(l => l.Trim()).Where(l => l.Length > 0 && !l.StartsWith("#"));
if ((Options.DeniedWordsStrength.GetBool() && bannedWords.Where(code => !string.IsNullOrWhiteSpace(code)).Any(code => input.Contains(code, StringComparison.OrdinalIgnoreCase))) || (!Options.DeniedWordsStrength.GetBool() && bannedWords.Where(code => !string.IsNullOrWhiteSpace(code)).Any(code => input.Equals(code, StringComparison.OrdinalIgnoreCase))))
if ((Options.DeniedWordsStrength.GetBool() && bannedWords.Where(code => !string.IsNullOrWhiteSpace(code)).Any(code => Utils.RemoveDiacritics(input).Trim().Contains(code, StringComparison.OrdinalIgnoreCase))) || (!Options.DeniedWordsStrength.GetBool() && bannedWords.Where(code => !string.IsNullOrWhiteSpace(code)).Any(code => Utils.RemoveDiacritics(input).Trim().Equals(code, StringComparison.OrdinalIgnoreCase))))
{
if (!Main.SayDeniedWordTimes.ContainsKey(clientId))
@@ -201,9 +202,9 @@ public static class BanManager
if (input == "" || !AmongUsClient.Instance.AmHost || Utils.CheckAccessLevel(player.Data.FriendCode) > 0 || !Options.AutoKickStart.GetBool() || !Utils.IsLobby) return false;
int clientId = player.Data.ClientId;
var startWords = File.ReadAllLines(StartWordsPath).Where(x => !x.StartsWith("#"));
var startWords = File.ReadAllLines(StartWordsPath).Select(l => l.Trim()).Where(l => l.Length > 0 && !l.StartsWith("#"));
if ((Options.AutoKickStartStrength.GetBool() && startWords.Where(code => !string.IsNullOrWhiteSpace(code)).Any(code => input.Contains(code, StringComparison.OrdinalIgnoreCase))) || (!Options.AutoKickStartStrength.GetBool() && startWords.Where(code => !string.IsNullOrWhiteSpace(code)).Any(code => input.Equals(code, StringComparison.OrdinalIgnoreCase))))
if ((Options.AutoKickStartStrength.GetBool() && startWords.Where(code => !string.IsNullOrWhiteSpace(code)).Any(code => Utils.RemoveDiacritics(input).Trim().Contains(code, StringComparison.OrdinalIgnoreCase))) || (!Options.AutoKickStartStrength.GetBool() && startWords.Where(code => !string.IsNullOrWhiteSpace(code)).Any(code => Utils.RemoveDiacritics(input).Trim().Equals(code, StringComparison.OrdinalIgnoreCase))))
{
if (!Main.SayStartTimes.ContainsKey(clientId))
{
+7
View File
@@ -337,6 +337,9 @@ namespace AmongUsRevamped
public static OptionItem TabGroupHNS;
public static OptionItem NumSeekers;
public static OptionItem TabGroupNoKcd;
public static OptionItem DisablePeacePeriod;
public static OptionItem TabGroupSNS;
public static OptionItem SNSChatInGame;
public static OptionItem SNSChatInGameExtend;
@@ -550,6 +553,10 @@ namespace AmongUsRevamped
NumSeekers = IntegerOptionItem.Create(70001, Translator.Get("numSeekers"), new(1, 15, 1), 1, TabGroup.GamemodeSettings, false)
.SetValueFormat(OptionFormat.Level);
TabGroupNoKcd = TextOptionItem.Create(70010, Translator.Get("tabGroupNoKcd"), TabGroup.GamemodeSettings)
.SetColor(Color.green);
DisablePeacePeriod = BooleanOptionItem.Create(70011, Translator.Get("disablePeacePeriod"), false, TabGroup.GamemodeSettings, false);
TabGroupSNS = TextOptionItem.Create(70050, Translator.Get("tabGroupSNS"), TabGroup.GamemodeSettings)
.SetColor(Color.green);
SNSChatInGame = BooleanOptionItem.Create(70051, Translator.Get("snsChatInGame"), false, TabGroup.GamemodeSettings, false);
-9
View File
@@ -15,15 +15,6 @@ internal class EACR
MessageReader sr = MessageReader.Get(reader);
var rpc = (RpcCalls)callId;
switch (rpc)
{
case RpcCalls.StartMeeting:
{
MeetingCheat(pc);
return true;
}
}
switch (callId)
{
case 101: // Aum Chat
+12 -4
View File
@@ -168,12 +168,11 @@ class FixedUpdateInGamePatch
public static void Postfix(PlayerControl __instance)
{
if (__instance == null || __instance.PlayerId == 255 || !AmongUsClient.Instance.AmHost) return;
if (__instance == null || __instance.PlayerId == 255) return;
t += Time.deltaTime;
if (t < 0.2f) return;
t = 0f;
if (Utils.IsLobby)
{
int access = Utils.CheckAccessLevel(__instance.Data.FriendCode);
@@ -185,13 +184,22 @@ class FixedUpdateInGamePatch
_ => "white"
};
if (!LastColors.TryGetValue(__instance.PlayerId, out var lastColor) || lastColor != color || !__instance.cosmetics.nameText.text.Contains($"<color={color}>"))
//if (!LastColors.TryGetValue(__instance.PlayerId, out var lastColor) || lastColor != color || !__instance.cosmetics.nameText.text.Contains($"<color={color}>"))
{
__instance.cosmetics.nameText.text = $"<color={color}>{__instance.Data.PlayerName}</color>";
if (Main.DisableLobbyInfo.Value && __instance.cosmetics.nameText.text != $"<color={color}>{__instance.Data.PlayerName}</color>")
{
__instance.cosmetics.nameText.text = $"<color={color}>{__instance.Data.PlayerName}</color>";
}
if ( !Main.DisableLobbyInfo.Value && __instance.cosmetics.nameText.text != $"<size=70%><color=#00ffff>Lv.{__instance.Data.PlayerLevel}</color> | <color=yellow>{AmongUsClient.Instance.GetClientFromCharacter(__instance).PlatformData.Platform}</size>\n<color={color}>{__instance.Data.PlayerName}</color>")
{
__instance.cosmetics.nameText.text = $"<size=70%><color=#00ffff>Lv.{__instance.Data.PlayerLevel}</color> | <color=yellow>{AmongUsClient.Instance.GetClientFromCharacter(__instance).PlatformData.Platform}</size>\n<color={color}>{__instance.Data.PlayerName}</color>";
}
LastColors[__instance.PlayerId] = color;
}
}
if (!AmongUsClient.Instance.AmHost) return;
if (settingsLabel == null) settingsLabel = GameObject.Find("GameSettingsLabel");
int gamemode = Options.Gamemode.GetValue();
+9
View File
@@ -1,4 +1,5 @@
using AmongUs.Data;
using AmongUs.GameOptions;
using Hazel;
using InnerNet;
using UnityEngine;
@@ -37,6 +38,14 @@ internal class Hotkeys
if (Utils.IsMeeting)
{
MeetingHud.Instance.RpcClose();
foreach (PlayerControl p in PlayerControl.AllPlayerControls)
{
if (p.Data.RoleType == RoleTypes.Shapeshifter)
{
p.CmdCheckRevertShapeshift(false);
}
}
}
}
+10
View File
@@ -8,6 +8,7 @@ namespace AmongUsRevamped;
public static class OptionManager
{
private static float OldKillCooldown;
private static float OldGuardianCooldown;
public static void SyncGameOptions()
{
@@ -31,6 +32,10 @@ public static class OptionManager
if (!AmongUsClient.Instance.AmHost) return;
OldKillCooldown = Main.NormalOptions.KillCooldown;
if (Main.NormalOptions.roleOptions.TryGetRoleOptions<GuardianAngelRoleOptionsV12>(RoleTypes.GuardianAngel, out var GuardianAngelOptions))
{
OldGuardianCooldown = GuardianAngelOptions.ProtectionDurationSeconds;
}
}
public static void RestoreOptions()
@@ -42,6 +47,11 @@ public static class OptionManager
Main.NormalOptions.KillCooldown = OldKillCooldown;
Logger.Info("Force overrided Kill Cooldown back to original", "RestoreOptions");
}
if (Main.NormalOptions.roleOptions.TryGetRoleOptions<GuardianAngelRoleOptionsV12>(RoleTypes.GuardianAngel, out var GuardianAngelOptions) && GuardianAngelOptions.ProtectionDurationSeconds != OldGuardianCooldown)
{
GuardianAngelOptions.ProtectionDurationSeconds = OldGuardianCooldown;
Logger.Info("Force overrided Guardian Angel Cooldown back to original", "RestoreOptions");
}
SyncGameOptions();
}
+1 -1
View File
@@ -19,7 +19,7 @@ namespace AmongUsRevamped
EOSManager.Instance.AdultPermissionsFlow();
}
if (!Options.Rehost.GetBool() || reason == DisconnectReasons.NewConnection || reason == DisconnectReasons.ConnectionLimit || reason == DisconnectReasons.ExitGame) return;
if (!Options.Rehost.GetBool() || reason == DisconnectReasons.NewConnection || reason == DisconnectReasons.ConnectionLimit || reason == DisconnectReasons.ExitGame || reason == DisconnectReasons.GameFull || reason == DisconnectReasons.GameStarted) return;
_ = new LateTask(() =>
{
+61
View File
@@ -852,4 +852,65 @@ public static class Utils
}
return true;
}
// Thanks to g0aty
public static string RemoveDiacritics(string text)
{
Dictionary<string, string> diacritics = new Dictionary<string, string>(){ {"ª","a"},{"à","a"},{"á","a"},{"â","a"},{"ã","a"},{"ä","a"},{"å","a"},{"ā","a"},{"ă","a"},{"ǎ","a"},{"ɑ","a"},{"α","a"},{"а","a"},{"д","a"},{"ạ","a"},{"ả","a"},{"ấ","a"},{"ầ","a"},{"ẩ","a"},{"ẫ","a"},{"ậ","a"},{"ắ","a"},{"ằ","a"},{"ẳ","a"},{"ẵ","a"},{"ặ","a"},{"⒜","a"},{"ⓐ","a"},{"a","a"},{"À","A"},{"Á","A"},{"Â","A"},{"Ã","A"},{"Ä","A"},{"Å","A"},{"Ā","A"},{"Ă","A"},{"Ǎ","A"},{"Α","A"},{"Δ","A"},{"Λ","A"},{"λ","A"},{"А","A"},{"Д","A"},{"Ạ","A"},{"Ả","A"},{"Ấ","A"},{"Ầ","A"},{"Ẩ","A"},{"Ẫ","A"},{"Ậ","A"},{"Ắ","A"},{"Ằ","A"},{"Ẳ","A"},{"Ẵ","A"},{"Ặ","A"},{"Å","A"},{"∆","A"},{"∧","A"},{"⊿","A"},{"⌆","A"},{"⏃","A"},{"⏄","A"},{"⏅","A"},{"Ⓐ","A"},{"▲","A"},{"△","A"},{"★","A"},{"☆","A"},{"⼈","A"},{"⼊","A"},{"⽕","A"},{"ㅅ","A"},{"A","A"},{"♲","A"},{"♳","A"},{"♴","A"},{"♵","A"},{"♶","A"},{"♷","A"},{"♸","A"},{"♹","A"},{"♺","A"},{"♻","A"},{"⚠","A"},{"︽","A"},{"︿","A"},{"♠","A"},{"♣","A"},{"♤","A"},{"♧","A"},
{"æ","ae"},{"Æ","AE"},
{"Ъ","b"},{"Ь","b"},{"ъ","b"},{"ь","b"},{"⒝","b"},{"ⓑ","b"},{"♭","b"},{"ß","B"},{"Б","B"},{"В","B"},{"в","B"},{"Ⓑ","B"},
{"Ы","bl"},{"ы","bi"},
{"¢","c"},{"©","c"},{"ç","c"},{"с","c"},{"ς","c"},{"⊂","c"},{"⊄","c"},{"⊆","c"},{"⊊","c"},{"⒞","c"},{"ⓒ","c"},{"ㄷ","c"},{"c","c"},{"ᄃ","c"},{"¢","c"},{"㈂","c"},{"㉢","c"},{"ㄸ","cc"},{"ᄄ","cc"},{"Ç","C"},{"С","C"},{"℃","C"},{"Ⓒ","C"},{"⼕","C"},{"⼖","C"},{"⿷","C"},{"【","C"},{"〖","C"},{"ㄈ","C"},{"C","C"},
{"đ","d"},{"ð","d"},{"δ","d"},{"₫","d"},{"∂","d"},{"⒟","d"},{"ⓓ","d"},{"ㆳ","d"},{"d","d"},{"♩","d"},{"♪","d"},{"Ð","D"},{"Đ","D"},{"Ⓓ","D"},{"D","D"},
{"è","e"},{"é","e"},{"ê","e"},{"ë","e"},{"ē","e"},{"ě","e"},{"ε","e"},{"е","e"},{"ё","e"},{"ẹ","e"},{"ẻ","e"},{"ẽ","e"},{"ế","e"},{"ề","e"},{"ể","e"},{"ễ","e"},{"ệ","e"},{"℮","e"},{"⒠","e"},{"ⓔ","e"},{"⺋","e"},{"⺒","e"},{"e","e"},{"£","E"},{"È","E"},{"É","E"},{"Ê","E"},{"Ë","E"},{"Ē","E"},{"Ě","E"},{"Ε","E"},{"Ξ","E"},{"Σ","E"},{"ξ","E"},{"Ё","E"},{"Е","E"},{"Ẹ","E"},{"Ẻ","E"},{"Ẽ","E"},{"Ế","E"},{"Ề","E"},{"Ể","E"},{"Ễ","E"},{"Ệ","E"},{"€","E"},{"∈","E"},{"∉","E"},{"∊","E"},{"∑","E"},{"Ⓔ","E"},{"モ","E"},{"ㅌ","E"},{"ㆯ","E"},{"㈋","E"},{"㉫","E"},{"E","E"},{"ミ","E"},
{"ƒ","f"},{"⒡","f"},{"ⓕ","f"},{"f","f"},{"℉","F"},{"Ⓕ","F"},{"F","F"},
{"ff","ff"},{"fi","fi"},{"fl","fl"},{"ffi","ffi"},{"ffl","ffl"},
{"ɡ","g"},{"ℊ","g"},{"⒢","g"},{"ⓖ","g"},{"g","g"},{"Ⓖ","G"},{"⼛","G"},{"G","G"},
{"ℏ","h"},{"⒣","h"},{"ⓗ","h"},{"ん","h"},{"Η","H"},{"Н","H"},{"н","H"},{"Ⓗ","H"},{"⧺","H"},{"⧻","HH"},
{"¦","i"},{"¡","i"},{"ì","i"},{"í","i"},{"î","i"},{"ï","i"},{"ĩ","i"},{"ī","i"},{"ι","i"},{"ⅰ","i"},{"↑","i"},{"↕","i"},{"⇧","i"},{"Ⓘ","i"},{"┆","i"},{"┇","i"},{"┊","i"},{"┋","i"},{"╎","i"},{"╏","i"},{"⬆","i"},{"⬇","i"},{"〡","i"},{"㆐","i"},{"㇑","i"},{"︴","i"},{"i","i"},{"¦","i"},{"Ì","I"},{"Í","I"},{"Î","I"},{"Ï","I"},{"Ĩ","I"},{"Ī","I"},{"Ι","I"},{"Ⅰ","I"},{"↓","I"},{"⇩","I"},{"∣","I"},{"⒤","I"},{"ⓘ","I"},{"⼁","I"},{"ㅣ","I"},{"︱","I"},{"︳","I"},{"ᅵ","I"},{"I","I"},
{"Ⅳ","iv"},{"ⅳ","iv"},{"Ⅵ","vi"},{"ⅵ","vi"},{"Ⅶ","vii"},{"ⅶ","vii"},{"Ⅷ","viii"},{"ⅷ","viii"},{"ⅱ","ii"},{"〢","ii"},{"‼","ii"},{"Ⅱ","II"},{"‖","II"},{"ⅲ","iii"},{"〣","iii"},{"Ⅲ","III"},{"Ю","io"},{"ю","io"},
{"⒥","j"},{"ⓙ","j"},{"j","j"},{"Ⓙ","J"},{"㆜","J"},{"J","J"},
{"⒦","k"},{"ⓚ","k"},{"k","k"},{"Κ","K"},{"κ","K"},{"К","K"},{"к","K"},{"Ⓚ","K"},{"K","K"},{"㉿","K"},
{"⒧","l"},{"ⓛ","l"},{"l","l"},{"│","l"},{"┃","l"},{"▎","l"},{"▏","l"},{"⎱","l"},{"Ⓛ","L"},{"L","L"},{"⎿","L"},{"ㆹ","L"},{"㇄","L"},{"㇏","L"},{"㇗","L"},{"㇙","L"},{"㇜","L"},{"㇟","L"},{"└","L"},{"┕","L"},{"┖","L"},{"┗","L"},{"⻌","L"},{"⻍","L"},{"⻎","L"},{"⿺","L"},{"し","L"},{"じ","L"},{"║","ll"},
{"ḿ","m"},{"ⓜ","m"},{"m","m"},{"М","M"},{"м","M"},{"Ḿ","M"},{"Ⓜ","M"},{"𝖬","M"},{"M","M"},
{"ñ","n"},{"ń","n"},{"ň","n"},{"ǹ","n"},{"η","n"},{"Л","n"},{"П","n"},{"л","n"},{"п","n"},{"ⓝ","n"},{"n","n"},{"⺆","n"},{"⺇","n"},{"⼌","n"},{"⼍","n"},{"⼑","n"},{"⾨","n"},{"⾾","n"},{"⿵","n"},{"れ","n"},{"ㄇ","n"},{"︵","n"},{"︷","n"},{"︹","n"},{"︻","n"},{"﹇","n"},{"Ñ","N"},{"Ń","N"},{"Ň","N"},{"Ǹ","N"},{"Ν","N"},{"И","N"},{"Й","N"},{"и","N"},{"й","N"},{"Ⓝ","N"},{"𝖭","N"},{"N","N"},{"ℵ","N"},
{"№","No"},
{"¤","o"},{"ò","o"},{"ó","o"},{"ô","o"},{"õ","o"},{"ö","o"},{"ø","o"},{"ō","o"},{"ŏ","o"},{"ơ","o"},{"ǒ","o"},{"ο","o"},{"σ","o"},{"φ","o"},{"о","o"},{"ọ","o"},{"ỏ","o"},{"ố","o"},{"ồ","o"},{"ổ","o"},{"ỗ","o"},{"ộ","o"},{"ớ","o"},{"ờ","o"},{"ở","o"},{"ỡ","o"},{"ợ","o"},{"∅","o"},{"⊕","o"},{"⊖","o"},{"⊗","o"},{"⊘","o"},{"⊙","o"},{"⏀","o"},{"⏁","o"},{"⏂","o"},{"⒪","o"},{"■","o"},{"□","o"},{"▢","o"},{"▣","o"},{"▤","o"},{"▥","o"},{"▦","o"},{"▧","o"},{"▨","o"},{"▩","o"},{"▪","o"},{"▫","o"},{"◆","o"},{"◇","o"},{"◈","o"},{"◉","o"},{"◊","o"},{"○","o"},{"◌","o"},{"◍","o"},{"◎","o"},{"●","o"},{"◐","o"},{"◑","o"},{"◒","o"},{"◓","o"},{"◦","o"},{"◯","o"},{"☉","o"},{"☯","o"},{"♡","o"},{"♢","o"},{"♥","o"},{"♦","o"},{"✿","o"},{"❀","o"},{"⦿","o"},{"㆕","o"},{"ㅁ","o"},{"ㅇ","o"},{"㇣","o"},{"ㇿ","o"},{"㈄","o"},{"㈇","o"},{"㉤","o"},{"㉧","o"},{"㋺","o"},{"o","o"},{"ᄋ","o"},{"○","o"},{"〼","o"},{"Ò","O"},{"Ó","O"},{"Ô","O"},{"Õ","O"},{"Ö","O"},{"Ø","O"},{"Ō","O"},{"Ŏ","O"},{"Ơ","O"},{"Ǒ","O"},{"Θ","O"},{"Ο","O"},{"Φ","O"},{"Ω","O"},{"θ","O"},{"О","O"},{"Ф","O"},{"ф","O"},{"Ọ","O"},{"Ỏ","O"},{"Ố","O"},{"Ồ","O"},{"Ổ","O"},{"Ỗ","O"},{"Ộ","O"},{"Ớ","O"},{"Ờ","O"},{"Ở","O"},{"Ỡ","O"},{"Ợ","O"},{"Ω","O"},{"Ⓞ","O"},{"▇","O"},{"█","O"},{"▉","O"},{"▊","O"},{"▋","O"},{"▱","O"},{"♼","O"},{"♽","O"},{"⚽","O"},{"⚾","O"},{"⼝","O"},{"⼞","O"},{"⿴","O"},{"〇","O"},{"〄","O"},{"O","O"},{"⓪","0"},{"⓿","0"},{"0","0"},{"ㄖ","0"},
{"œ","oe"},{"Œ","OE"},
{"ⓟ","p"},{"p","p"},{"þ","p"},{"Þ","p"},{"ρ","p"},{"р","p"},{"Ⓟ","P"},{"𝖯","P"},{"P","P"},{"Ρ","P"},{"Р","P"},{"⼙","P"},{"⼫","P"},{"ㄕ","P"},{"ㄗ","P"},{"ㆡ","P"},
{"ⓠ","q"},{"q","q"},{"Ⓠ","Q"},{"𝖰","Q"},{"Q","Q"},
{"ⓡ","r"},{"r","r"},{"Γ","r"},{"⎾","r"},{"┌","r"},{"┍","r"},{"┎","r"},{"┏","r"},{"╒","r"},{"╓","r"},{"╔","r"},{"╭","r"},{"⺁","r"},{"⼚","r"},{"⼴","r"},{"⽧","r"},{"⿸","r"},{"「","r"},{"『","r"},{"ㄏ","r"},{"ㄬ","r"},{"ㆷ","r"},{"Ⓡ","R"},{"𝖱","R"},{"R","R"},{"­","R"},{"®","R"},{"Я","R"},{"я","R"},
{"ⓢ","s"},{"s","s"},{"$","S"},{"Ⓢ","S"},{"𝖲","S"},{"S","S"},{"⎰","S"},{"∫","S"},{"∮","S"},{"∾","S"},{"ㄎ","S"},{"ㆶ","S"},{"$","S"},
{"∬","ss"},{"∭","sss"},
{"ⓣ","t"},{"t","t"},{"⺊","t"},{"⼔","t"},{"⼗","t"},{"⼘","t"},{"〸","t"},{"ㆺ","t"},{"ㇶ","t"},{"㈦","t"},{"㈩","t"},{"Ⓣ","T"},{"𝖳","T"},{"T","T"},{"Τ","T"},{"τ","T"},{"Т","T"},{"т","T"},{"⏇","T"},{"⏉","T"},{"┬","T"},{"┭","T"},{"┮","T"},{"┯","T"},{"┰","T"},{"┱","T"},{"┲","T"},{"┳","T"},{"╤","T"},{"╥","T"},{"╦","T"},{"⺅","T"},{"ィ","T"},{"イ","T"},{"ㄒ","T"},{"ᅮ","T"},
{"〹","tt"},
{"µ","u"},{"ũ","u"},{"ū","u"},{"ŭ","u"},{"ư","u"},{"ǔ","u"},{"ǖ","u"},{"ǘ","u"},{"ǚ","u"},{"ǜ","u"},{"ц","u"},{"ụ","u"},{"ủ","u"},{"ứ","u"},{"ừ","u"},{"ú","u"},{"ử","u"},{"ữ","u"},{"ự","u"},{"⒰","u"},{"ⓤ","u"},{"㇃","u"},{"u","u"},{"︶","u"},{"︸","u"},{"︺","u"},{"︼","u"},{"﹈","u"},{"υ","u"},{"Ũ","U"},{"Ū","U"},{"Ŭ","U"},{"Ư","U"},{"Ǔ","U"},{"Ǖ","U"},{"Ǘ","U"},{"Ǚ","U"},{"Ǜ","U"},{"Ц","U"},{"Ụ","U"},{"Ủ","U"},{"Ú","U"},{"Ứ","U"},{"Ừ","U"},{"Ử","U"},{"Ữ","U"},{"Ự","U"},{"∪","U"},{"℧","U"},{"Ⓤ","U"},{"⿶","U"},{"ひ","U"},{"び","U"},{"ぴ","U"},{"U","U"},
{"˅","v"},{"ⅴ","v"},{"∨","v"},{"⒱","v"},{"ⓥ","v"},{"▼","v"},{"▽","v"},{"✓","v"},{"㇢","v"},{"︾","v"},{"﹀","v"},{"v","v"},{"Ⅴ","V"},{"∀","V"},{"Ⓥ","V"},{"V","V"},
{"ⓦ","w"},{"w","w"},{"ω","w"},{"ш","w"},{"щ","w"},{"Ⓦ","W"},{"𝖶","W"},{"W","W"},{"Ш","W"},{"Щ","W"},{"₩","W"},{"₩","W"},
{"ⓧ","x"},{"x","x"},{"χ","x"},{"х","x"},{"ⅹ","x"},{"〆","x"},{"〤","x"},{"×","x"},{"Ⓧ","X"},{"𝖷","X"},{"X","X"},{"Χ","X"},{"Х","X"},{"Ⅹ","X"},{"╳","X"},{"ㄨ","X"},{"ㆫ","X"},
{"⽹","XX"},{"〷","XX"},{"ⓨ","y"},{"y","y"},{"ý","y"},{"ÿ","y"},{"У","y"},{"у","y"},{"ỳ","y"},{"ỵ","y"},{"ỷ","y"},{"ỹ","y"},{"Ⓨ","Y"},{"𝖸","Y"},{"Y","Y"},{"¥","Y"},{"¥","Y"},{"Ý","Y"},{"Υ","Y"},{"Ỳ","Y"},{"Ỵ","Y"},{"Ỷ","Y"},{"Ỹ","Y"},{"ㄚ","Y"},{"ㆩ","Y"},
{"ⓩ","z"},{"z","z"},{"Ⓩ","Z"},{"𝖹","Z"},{"Z","Z"},{"Ζ","Z"},{"ζ","Z"},{"⼄","Z"},{"㆚","Z"},{"㇠","Z"},
{"①","1"},{"⑴","1"},{"⒈","1"},{"⓵","1"},{"❶","1"},{"➀","1"},{"➊","1"},{"1","1"},
{"②","2"},{"⑵","2"},{"⒉","2"},{"⓶","2"},{"❷","2"},{"➁","2"},{"➋","2"},{"2","2"},
{"³","3"},{"З","3"},{"Э","3"},{"з","3"},{"э","3"},{"∃","3"},{"∋","3"},{"③","3"},{"⑶","3"},{"⒊","3"},{"⓷","3"},{"❸","3"},{"➂","3"},{"➌","3"},{"⺕","3"},{"⼹","3"},{"る","3"},{"ろ","3"},{"ョ","3"},{"ヨ","3"},{"ヺ","3"},{"ㄋ","3"},{"㇋","3"},{"㇌","3"},{"㇡","3"},{"3","3"},
{"④","4"},{"⑷","4"},{"⒋","4"},{"⓸","4"},{"❹","4"},{"➃","4"},{"➍","4"},{"4","4"},
{"⑤","5"},{"⑸","5"},{"⒌","5"},{"⓹","5"},{"❺","5"},{"➄","5"},{"➎","5"},{"5","5"},
{"⑥","6"},{"⑹","6"},{"⒍","6"},{"⓺","6"},{"❻","6"},{"➅","6"},{"➏","6"},{"6","6"},
{"⑦","7"},{"⑺","7"},{"⒎","7"},{"⓻","7"},{"❼","7"},{"➆","7"},{"➐","7"},{"7","7"},
{"⑧","8"},{"⑻","8"},{"⒏","8"},{"⓼","8"},{"❽","8"},{"➇","8"},{"➑","8"},{"8","8"},
{"⑨","9"},{"⑼","9"},{"⒐","9"},{"⓽","9"},{"❾","9"},{"➈","9"},{"➒","9"},{"9","9"},
{"@","@"},{"﹫","@"},{"^","^"},{"⌅","^"},{"㆟","^"},
{"℀","ac"},{"℅","co"},{"℡","TEL"},{"™","TM"},{"℻","FAX"},{"ⅸ","ix"},{"Ⅸ","IX"},{"ⅺ","xi"},{"Ⅺ","XI"},{"ⅻ","xii"},{"Ⅻ","XII"},{"㉐","PTE"},{"㋌","Hg"},{"㋍","erg"},{"㋎","eV"},{"㋏","LTD"},{"㍱","hPa"},{"㍲","da"},{"㍳","AU"},{"㍴","bar"},{"㍵","oV"},{"㍶","pc"},{"㍷","dm"},{"㍸","dm2"},{"㍹","dm3"},{"㍺","IU"},{"㎀","pA"},{"㎁","nA"},{"㎂","uA"},{"㎃","mA"},{"㎄","kA"},{"㎅","KB"},{"㎆","MB"},{"㎇","GB"},{"㎈","cal"},{"㎉","kcal"},{"㎊","pF"},{"㎋","nF"},{"㎌","uF"},{"㎍","ug"},{"㎎","mg"},{"㎏","kg"},{"㎐","Hz"},{"㎑","kHz"},{"㎒","MHz"},{"㎓","GHz"},{"㎔","Thz"},{"㎕","ul"},{"㎖","ml"},{"㎗","dl"},{"㎘","kl"},{"㎙","fm"},{"㎚","nm"},{"㎛","um"},{"㎜","mm"},{"㎝","cm"},{"㎞","km"},{"㎟","mm2"},{"㎠","cm2"},{"㎡","m2"},{"㎢","km2"},{"㎣","mm3"},{"㎤","cm3"},{"㎥","m3"},{"㎦","km3"},{"㎧","ms"},{"㎨","ms2"},{"㎩","Pa"},{"㎪","kPa"},{"㎫","MPa"},{"㎬","GPa"},{"㎭","rad"},{"㎮","rads"},{"㎯","rads2"},{"㎰","ps"},{"㎱","ns"},{"㎲","us"},{"㎳","ms"},{"㎴","pV"},{"㎵","nV"},{"㎶","uV"},{"㎷","mV"},{"㎸","kW"},{"㎹","MV"},{"㎺","pW"},{"㎻","nW"},{"㎼","uW"},{"㎽","mW"},{"㎾","kW"},{"㎿","MW"},{"㏀","kO"},{"㏁","MO"},{"㏂","am"},{"㏃","Bq"},{"㏄","cc"},{"㏅","cd"},{"㏆","Ckg"},{"㏇","Co"},{"㏈","dB"},{"㏉","Gy"},{"㏊","ha"},{"㏋","HP"},{"㏌","in"},{"㏍","KK"},{"㏎","KM"},{"㏏","kt"},{"㏐","lm"},{"㏑","ln"},{"㏒","log"},{"㏓","lx"},{"㏔","mb"},{"㏕","mil"},{"㏖","mol"},{"㏗","pH"},{"㏘","pm"},{"㏙","PPM"},{"㏚","PR"},{"㏛","sr"},{"㏜","Sv"},{"㏝","Wb"},{"㏞","Vm"},{"㏟","Am"},{"㏿","gal"},
{"⑩","10"},{"⑽","10"},{"⒑","10"},{"⓾","10"},{"❿","10"},{"➉","10"},{"➓","10"},{"㉈","10"},{"⑪","11"},{"⑾","11"},{"⒒","11"},{"⓫","11"},{"⑫","12"},{"⑿","12"},{"⒓","12"},{"⓬","12"},{"⑬","13"},{"⒀","13"},{"⒔","13"},{"⓭","13"},{"⑭","14"},{"⒁","14"},{"⒕","14"},{"⓮","14"},{"⑮","15"},{"⒂","15"},{"⒖","15"},{"⓯","15"},{"⑯","16"},{"⒃","16"},{"⒗","16"},{"⓰","16"},{"⑰","17"},{"⒄","17"},{"⒘","17"},{"⓱","17"},{"⑱","18"},{"⒅","18"},{"⒙","18"},{"⓲","18"},{"⑲","19"},{"⒆","19"},{"⒚","19"},{"⓳","19"},{"⑳","20"},{"⒇","20"},{"⒛","20"},{"⓴","20"},{"㉉","20"},{"㉑","21"},{"㉒","22"},{"㉓","23"},{"㉔","24"},{"㉕","25"},{"㉖","26"},{"㉗","27"},{"㉘","28"},{"㉙","29"},{"㉚","30"},{"㉊","30"},{"㉛","31"},{"㉜","32"},{"㉝","33"},{"㉞","34"},{"㉟","35"},{"㊱","36"},{"㊲","37"},{"㊳","38"},{"㊴","39"},{"㊵","40"},{"㉋","40"},{"㊶","41"},{"㊷","42"},{"㊸","43"},{"㊹","44"},{"㊺","45"},{"㊻","46"},{"㊼","47"},{"㊽","48"},{"㊾","49"},{"㊿","50"},{"㉌","50"},{"㉍","60"},{"㉎","70"},{"㉏","80"},
{"-"," "},{";"," "},{"."," "},{"'"," "},{"\\"," "},{"/"," "},{","," "},{"、"," "},{";"," "}, {"!"," "} };
var newText = text;
foreach (var i in diacritics)
{
newText = newText.Replace(i.Key, i.Value);
}
return newText;
}
}
+20 -4
View File
@@ -162,6 +162,14 @@ internal static class SendChatPatch
if ( !Utils.InGame || !Utils.IsMeeting) return false;
MeetingHud.Instance.RpcClose();
foreach (PlayerControl p in PlayerControl.AllPlayerControls)
{
if (p.Data.RoleType == RoleTypes.Shapeshifter)
{
p.CmdCheckRevertShapeshift(false);
}
}
return false;
}
@@ -559,7 +567,7 @@ internal static class SendChatPatch
if (text == "/0kc" || text == "/0killcooldown")
{
Utils.ChatCommand(__instance, "0 Kill Cooldown:\n\nImpostors have no kill cooldown, and can't kill after a game starts for 5 seconds", "", false);
Utils.ChatCommand(__instance, "0 Kill Cooldown:\n\nImpostors have no kill cooldown, and optionally can't kill after a game starts for 5 seconds", "", false);
return false;
}
@@ -593,7 +601,7 @@ internal static class SendChatPatch
case 0:
if (GameOptionsManager.Instance.CurrentGameOptions.GetFloat(FloatOptionNames.KillCooldown) == 0.001f)
{
Utils.ChatCommand(__instance, "0 Kill Cooldown:\n\nImpostors have no kill cooldown, and can't kill after a game starts for 5 seconds", "", false);
Utils.ChatCommand(__instance, "0 Kill Cooldown:\n\nImpostors have no kill cooldown, and optionally can't kill after a game starts for 5 seconds", "", false);
}
break;
@@ -862,6 +870,14 @@ public static class RPCHandlerPatch
{
if (Utils.CheckAccessLevel(__instance.Data.FriendCode) < Options.SlashEndMeetingCmd.GetValue()) return;
MeetingHud.Instance.RpcClose();
foreach (PlayerControl p in PlayerControl.AllPlayerControls)
{
if (p.Data.RoleType == RoleTypes.Shapeshifter)
{
p.CmdCheckRevertShapeshift(false);
}
}
}
}
@@ -1004,7 +1020,7 @@ public static class RPCHandlerPatch
if (text == "/0kc" || text == "/0killcooldown")
{
if (Utils.CheckAccessLevel(__instance.Data.FriendCode) < Options.SlashRolesAndGamemodeCmd.GetValue()) return;
Utils.ModeratorChatCommand("0 Kill Cooldown:\n\nImpostors have no kill cooldown, and can't kill after a game starts for 5 seconds", "", false);
Utils.ModeratorChatCommand("0 Kill Cooldown:\n\nImpostors have no kill cooldown, and optionally can't kill after a game starts for 5 seconds", "", false);
}
if (text == "/sns" || text == "/shiftandseek")
{
@@ -1037,7 +1053,7 @@ public static class RPCHandlerPatch
case 0:
if (GameOptionsManager.Instance.CurrentGameOptions.GetFloat(FloatOptionNames.KillCooldown) == 0.001f)
{
Utils.ModeratorChatCommand("0 Kill Cooldown:\n\nImpostors have no kill cooldown, and can't kill after a game starts for 5 seconds", "", false);
Utils.ModeratorChatCommand("0 Kill Cooldown:\n\nImpostors have no kill cooldown, and optionally can't kill after a game starts for 5 seconds", "", false);
}
break;
+4
View File
@@ -18,6 +18,7 @@ namespace AmongUsRevamped
private static ClientOptionItem DisableCommandHelper;
private static ClientOptionItem DisableCompatibilityWarning;
private static ClientOptionItem DisableChatModifier;
private static ClientOptionItem DisableLobbyInfo;
public static void Postfix(OptionsMenuBehaviour __instance)
{
@@ -68,6 +69,9 @@ namespace AmongUsRevamped
if (DisableChatModifier == null || DisableChatModifier.ToggleButton == null)
DisableChatModifier = ClientOptionItem.Create(Translator.Get("disableChatModifier"), Main.DisableChatModifier, __instance);
if (DisableLobbyInfo == null || DisableLobbyInfo.ToggleButton == null)
DisableLobbyInfo = ClientOptionItem.Create(Translator.Get("disableLobbyInfo"), Main.DisableLobbyInfo, __instance);
}
}
+12 -1
View File
@@ -1,4 +1,5 @@
using BepInEx.Unity.IL2CPP;
using AmongUs.Data.Player;
using BepInEx.Unity.IL2CPP;
using System;
using System.Text;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
@@ -386,6 +387,16 @@ namespace AmongUsRevamped
}
}
}
[HarmonyPatch(typeof(PlayerBanData), nameof(PlayerBanData.BanMinutesLeft), MethodType.Getter)]
public static class PlayerBanDataGetterPatch
{
public static void Postfix(PlayerBanData __instance, ref int __result)
{
__instance.BanPoints = 0f;
__result = 0;
}
}
}
#if !ANDROID
+3 -3
View File
@@ -28,7 +28,7 @@ class NormalGameEndChecker
public static string LastWinReason = "";
public static List<PlayerControl> imps = new List<PlayerControl>();
public static string firstDeath;
public static string firstDeathString => firstDeath != "" ? $"\n\nFirst death: {firstDeath}" : "";
public static string firstDeathString => firstDeath != "" ? $"\n\n1st death: {firstDeath}" : "";
public static bool Prefix()
{
@@ -50,8 +50,8 @@ class NormalGameEndChecker
public static string customRoles { get; set; }
public static void CheckWinnerText(string Winner)
{
string impostorList = string.Join(", ", imps.Select(p => p.Data.PlayerName));
string impostorString = impostorList != "" ? $"\n\nImpostors: {impostorList}" : "";
string impostorList = string.Join("\n", imps.Select(p => $"{p.Data.PlayerName} {p.Data.ColorName}"));
string impostorString = impostorList != "" ? $"\n\n{impostorList}" : "";
if (!canUpdateWinnerText) return;
+3 -3
View File
@@ -23,7 +23,7 @@ internal static class CoShowIntroPatch
if (NormalGameEndChecker.firstDeath != null && NormalGameEndChecker.firstDeath == p.Data.PlayerName && Options.ShieldFirstDeath.GetBool() && Options.Gamemode.GetValue() != 1)
{
if (Main.NormalOptions.roleOptions.TryGetRoleOptions<GuardianAngelRoleOptionsV11>(RoleTypes.GuardianAngel, out var GuardianAngelOptions))
if (Main.NormalOptions.roleOptions.TryGetRoleOptions<GuardianAngelRoleOptionsV12>(RoleTypes.GuardianAngel, out var GuardianAngelOptions))
{
var oldGA = GuardianAngelOptions.ImpostorsCanSeeProtect;
var oldGAProt = GuardianAngelOptions.ProtectionDurationSeconds;
@@ -71,7 +71,7 @@ internal static class CoShowIntroPatch
if (!Options.SNSSuicideMode.GetBool())
{
if (Main.NormalOptions.roleOptions.TryGetRoleOptions<GuardianAngelRoleOptionsV11>(RoleTypes.GuardianAngel, out var GuardianAngelOptions))
if (Main.NormalOptions.roleOptions.TryGetRoleOptions<GuardianAngelRoleOptionsV12>(RoleTypes.GuardianAngel, out var GuardianAngelOptions))
{
GuardianAngelOptions.ProtectionDurationSeconds = 254f;
}
@@ -94,7 +94,7 @@ internal static class CoShowIntroPatch
}
}
if ((GameOptionsManager.Instance.CurrentGameOptions.GetFloat(FloatOptionNames.KillCooldown) == 0.001f))
if ((GameOptionsManager.Instance.CurrentGameOptions.GetFloat(FloatOptionNames.KillCooldown) == 0.001f) && !Options.DisablePeacePeriod.GetBool())
{
Main.NormalOptions.KillCooldown = 5f;
OptionManager.SyncGameOptions();
+18
View File
@@ -193,6 +193,24 @@ public static class SetLevelPatch
}
HandledLevelKicks.Add(__instance);
}
/*
int access = Utils.CheckAccessLevel(__instance.Data.FriendCode);
string color = access switch
{
1 => "yellow",
2 => "purple",
3 => "red",
_ => "white"
};
if (Main.DisableLobbyInfo.Value)
{
__instance.cosmetics.nameText.text = $"<color={color}>{__instance.Data.PlayerName}</color>";
}
else
{
__instance.cosmetics.nameText.text = $"<size=70%><color=#00ffff>Lv.{level}</color> | <color=yellow>{AmongUsClient.Instance.GetClientFromCharacter(__instance).PlatformData.Platform}</size>\n<color={color}>{__instance.Data.PlayerName}</color>";
}*/
}
}
-24
View File
@@ -9,29 +9,13 @@ namespace AmongUsRevamped
public class LobbyViewPatch
{
private static Dictionary<TabGroup, GameObject> ViewSettingsButtons = new();
private static float num;
[HarmonyPatch(nameof(LobbyViewSettingsPane.Awake))]
[HarmonyPostfix]
public static void AwakePostfix(LobbyViewSettingsPane __instance)
{
__instance.gameModeText.DestroyTranslator();
var OverviewButton = __instance.taskTabButton.gameObject;
OverviewButton.transform.localScale = new Vector3(0.4f, 1f, 1f);
OverviewButton.transform.localPosition += new Vector3(-1.1f, 0f, 0f);
var RolesButton = __instance.rolesTabButton.gameObject;
RolesButton.transform.localScale = new Vector3(0.4f, 1f, 1f);
num = 1.4f;
RolesButton.transform.localPosition = OverviewButton.transform.localPosition + Vector3.right * num * 1f;
var label = RolesButton.transform.Find("FontPlacer").GetComponentInChildren<TextMeshPro>();
label.DestroyTranslator();
label.text = "Vanilla Roles";
ViewSettingsButtons = new();
num = 2.8f;
}
[HarmonyPatch(nameof(LobbyViewSettingsPane.ChangeTab))]
@@ -139,14 +123,6 @@ namespace AmongUsRevamped
foreach (var button in ViewSettingsButtons.Values)
Object.Destroy(button.gameObject);
ViewSettingsButtons = new();
var OverviewButton = __instance.taskTabButton.gameObject;
var RolesButton = __instance.rolesTabButton.gameObject;
OverviewButton.transform.localScale = new Vector3(0.4f, 1f, 1f);
RolesButton.transform.localScale = new Vector3(0.4f, 1f, 1f);
num = 1.4f;
RolesButton.transform.localPosition = OverviewButton.transform.localPosition + Vector3.right * num * 1f;
num = 2.8f;
}
[HarmonyPatch(nameof(LobbyViewSettingsPane.OnEnable))]
+12
View File
@@ -112,4 +112,16 @@ class MeetingHudStartPatch
return $"<color=red>({MurderPlayerPatch.killCount[player.Data.PlayerId]}†)</color> - {Utils.GetRoleText(player)}";
}
}
[HarmonyPatch(typeof(LogicOptionsNormal), nameof(LogicOptionsNormal.GetAnonymousVotes))]
public static class LogicOptionsNormalGetAnonymousVotesPatch
{
public static void Postfix(ref bool __result)
{
if (Utils.IsDead)
{
__result = false;
}
}
}
}
+6 -20
View File
@@ -104,7 +104,8 @@ public static class MessageReaderUpdateSystemPatch
public static bool Prefix(ShipStatus __instance, [HarmonyArgument(0)] SystemTypes systemType, [HarmonyArgument(1)] PlayerControl player, [HarmonyArgument(2)] MessageReader reader)
{
if (systemType is
SystemTypes.Security
SystemTypes.Ventilation
or SystemTypes.Security
or SystemTypes.Decontamination
or SystemTypes.Decontamination2
or SystemTypes.Decontamination3
@@ -112,28 +113,13 @@ public static class MessageReaderUpdateSystemPatch
if (player.Data.ClientId == AmongUsClient.Instance.HostId) return true;
// Thanks to D1GQ for finding.
if (systemType is SystemTypes.Ventilation)
var amount = MessageReader.Get(reader).ReadByte();
if (EACR.RpcUpdateSystemCheck(player, systemType, amount))
{
_ = reader.ReadUInt16();
var operation = (VentilationSystem.Operation)reader.ReadByte();
if (operation == VentilationSystem.Operation.BootImpostors)
{
Logger.Info($"BLOCKED: {operation}, {player}", "s");
return false;
}
Logger.Info("EACR patched Sabotage RPC", "MessageReaderUpdateSystemPatch");
return false;
}
else
{
var amount = MessageReader.Get(reader).ReadByte();
if (EACR.RpcUpdateSystemCheck(player, systemType, amount))
{
Logger.Info("EACR patched Sabotage RPC", "MessageReaderUpdateSystemPatch");
return false;
}
else return true;
}
else return true;
}
}
+3 -2
View File
@@ -36,7 +36,7 @@
<img src="https://github.com/astra1dev/AUnlocker/assets/90265231/14226f03-a003-4efc-b27b-6df53fb394d6" width=410 height=240>****
‎
# 🎮 Features (v2.1.1):
# 🎮 Features (v2.2.3):
## <b>♠️ Client Side settings:</b>
- Toggle Game Master (Spectator)
@@ -46,6 +46,7 @@
- Toggle Info When Dead
- Toggle Command Helper
- Toggle Chat Modifications
- Toggle Lobby Info
## <b>⚙️ Technical settings:</b>
- Advanced AFK Detection system
- Kick/Ban players under/above a certain level
@@ -92,7 +93,7 @@
- Detect immortality cheats
- Block attempted votekicks
## <b>❓ Other Improvements:</b>
- Lanuage support: English, Italian, Japanese, Russian, Simplified Chinese, Spanish
- Language support: English, Italian, Japanese, Russian, Simplified Chinese, Spanish
- Select a language in Language/YourLanguage.txt
- Preset system for mod settings
- Creatable and customizable Templates
+4 -1
View File
@@ -395,7 +395,10 @@
"tabGroupGameplayMapModifications": "Map Modifications",
"disableChatModifier": "Disable Chat Modifications",
"snsSuicideMode": "Disable Shield System",
"snsSuicideMode": "Disable Shield System"
"tabGroupNoKcd": "0 Kill Cooldown",
"disablePeacePeriod": "Disable 5s Peace Period",
"disableLobbyInfo": "Disable Lobby Info"
}
+2 -1
View File
@@ -321,5 +321,6 @@
"fungleReactorDuration": "Durata Sabotaggio Reattore su Fungle",
"fungleMushroomMixupDuration": "Durata Sabotaggio Mixup Fungo",
"privateDesc": "Cambia la Visibilità della Lobby in Privata. ",
"publicDesc": "Cambia la Visibilità della Lobby in Pubblica. "
"publicDesc": "Cambia la Visibilità della Lobby in Pubblica. ",
"disableLobbyInfo": "Disable Lobby Info"
}
+5 -1
View File
@@ -394,5 +394,9 @@
"tabGroupGameplayMapModifications": "マップの変更",
"disableChatModifier": "チャット変更を無効化"
"disableChatModifier": "チャット変更を無効化",
"snsSuicideMode": "シールドシステムを無効化",
"tabGroupNoKcd": "キルクールダウン0秒",
"disablePeacePeriod": "5秒間の平和時間を無効化",
"disableLobbyInfo": "Disable Lobby Info"
}
+5 -1
View File
@@ -392,5 +392,9 @@
"tabGroupGameplayMapModifications": "Модификации Карт",
"disableChatModifier": "Выключить Модификации Чата"
"disableChatModifier": "Выключить Модификации Чата",
"snsSuicideMode": "Выключить Систему Щитов",
"tabGroupNoKcd": "0 Перезарядка Убийств",
"disablePeacePeriod": "Выключить Мирный Период Первые 5 секунд",
"disableLobbyInfo": "Disable Lobby Info"
}
+5 -4
View File
@@ -297,8 +297,6 @@
"enableDeniedWords": "踢出发送违禁词的玩家",
"slashMapAndSeekerCmd": "谁可以使用 /seeker 与 /mapvote",
"snsChatInGameExtend": "游戏开始后发送游戏模式介绍",
"mapVoteDesc": "发起包含 5 张官方地图的地图投票。",
"allMapVoteDesc": "发起包含全部 6 张地图(包括 Eht Dleks)的地图投票。",
"banWordBan": "{0} 因发送了 DeniedWords.txt 中的关键词,第 {1} 次违规,已被封禁。",
"startWordBan": "{0} 因发送了 StartWords.txt 中的关键词,第 {1} 次违规,已被封禁。",
"moderationSettings": "管理设置",
@@ -335,7 +333,6 @@
"shieldFirstDeath": "护盾保护第一个死亡的玩家",
"shieldFirstDeathDuration": "护盾持续时间",
"snsTwoDesc": "发送 Shift and Seek 扩展说明。",
"modeVoteDesc": "在所有游戏模式之间发起投票。",
"automaticModePoll": "重新加入后自动执行 /gmvote",
"tabGroupCustomizeSabotages": "自定义破坏",
"customizeSabotages": "启用自定义破坏",
@@ -381,5 +378,9 @@
"tabGroupGameplayMapModifications": "地图修改",
"disableChatModifier": "禁用聊天修改"
"disableChatModifier": "禁用聊天修改",
"snsSuicideMode": "禁用护盾系统",
"tabGroupNoKcd": "0 秒击杀冷却",
"disablePeacePeriod": "禁用 5 秒和平期",
"disableLobbyInfo": "Disable Lobby Info"
}
+44 -18
View File
@@ -94,19 +94,6 @@
"snsDisableHeli": "Desactivar sabotaje de Crash Course",
"snsDisableMushroomMixup": "Desactivar sabotaje de mezcla de hongos",
"snsDisableCloseDoor": "Desactivar sabotajes de puertas de SnS",
"tabGroupCustomizeSabotages": "Customize Sabotages",
"customizeSabotages": "Enable Sabotage Customizations",
"sabotageCooldown": "Critical Sabotage Cooldown",
"skeldReactorDuration": "Skeld Reactor Duration",
"skeldO2Duration": "Skeld O2 Duration",
"miraReactorDuration": "Mira Reactor Duration",
"miraO2Duration": "Mira O2 Duration",
"polusReactorDuration": "Polus Reactor Duration",
"airshipReactorDuration": "Airship Reactor Duration",
"fungleReactorDuration": "Fungle Reactor Duration",
"fungleMushroomMixupDuration": "Fungle Mixup Duration",
"tabGroupSpeedrun": "Speedrun",
"speedrunSettingsOverride": "Actualizar configuración automáticamente",
"gameAutoEndsAfter": "La partida termina automáticamente después de",
@@ -261,7 +248,6 @@
"seekerDesc": "Marca al jugador como buscador en HnS.",
"seekersDesc": "Muestra los buscadores elegidos manualmente.",
"clearSeekerDesc": "Borra la lista manual de buscadores.",
"mapVoteDesc": "Inicia una votación entre los 5 mapas principales.",
"allMapVoteDesc": "Inicia una votación entre los 6 mapas, incluido Eht Dleks.",
"aurDesc": "Envía los enlaces sociales de Among Us Revamped.",
"sDesc": "Inicia la cuenta regresiva de la partida.",
@@ -307,6 +293,7 @@
"moderatorAndAbove": "<color=purple>Moderador</color> o superior",
"admin": "<color=red>Administrador</color>",
"onlyYou": "Solo tú",
"pnsDisableSabotage": "Desactivar sabotajes críticos de PnS",
"pnsDisableCloseDoor": "Desactivar sabotajes de puertas de PnS",
"tabGroupPNS": "Poof and Seek",
@@ -318,9 +305,48 @@
"shieldFirstDeath": " Proteger al primer jugador que murió",
"shieldFirstDeathDuration": "Duración de la protección",
"snsTwoDesc": "Enviar la descripción ampliada de Shift and Seek.",
"modeVoteDesc": "Inicia una votación entre todos los modos de juego.",
"automaticModePoll": "/gmvote automático al volver a la sala",
"privateDesc": "Changes lobby visibility to private.",
"publicDesc": "Changes lobby visibility to public."
"tabGroupCustomizeSabotages": "Personalizar sabotajes",
"customizeSabotages": "Activar personalización de sabotajes",
"sabotageCooldown": "Tiempo de espera de sabotajes críticos",
"skeldReactorDuration": "Duración del reactor en Skeld",
"skeldO2Duration": "Duración del O2 en Skeld",
"miraReactorDuration": "Duración del reactor en Mira HQ",
"miraO2Duration": "Duración del O2 en Mira HQ",
"polusReactorDuration": "Duración del reactor en Polus",
"airshipReactorDuration": "Duración del reactor en Airship",
"fungleReactorDuration": "Duración del reactor en Fungle",
"fungleMushroomMixupDuration": "Duración de la mezcla de hongos en Fungle",
"privateDesc": "Cambia la visibilidad de la sala a privada.",
"publicDesc": "Cambia la visibilidad de la sala a pública.",
"mapVoteDesc": "Inicia una votación entre los mapas seleccionados.",
"modeVoteDesc": "Inicia una votación entre los modos de juego seleccionados.",
"tabGroupAnticheat": "Antitrampas",
"hackingPunishment": "Castigo por hacer trampa",
"detectBadRPC": "Detectar RPC inválidos",
"detectBadSabotage": "Detectar sabotajes inválidos",
"detectBadVent": "Detectar uso inválido de ventilas",
"detectBadTask": "Detectar tareas completadas de forma inválida",
"detectBadKill": "Detectar asesinatos inválidos",
"detectBadAnimation": "Detectar animaciones inválidas",
"detectBadMeeting": "Detectar reuniones inválidas",
"customizeMapVote": "Personalizar votación de mapas",
"includeSkeld": "Incluir Skeld",
"includeMira": "Incluir Mira HQ",
"includePolus": "Incluir Polus",
"includeAirship": "Incluir Airship",
"includeFungle": "Incluir Fungle",
"includeDleks": "Incluir Dleks",
"customizeModeVote": "Personalizar votación de modos de juego",
"includeStandard": "Incluir Estándar",
"includeNoKillCooldown": "Incluir 0 s de espera para matar",
"includeShiftAndSeek": "Incluir Shift and Seek",
"includePoofAndSeek": "Incluir Poof and Seek",
"includeSpeedrun": "Incluir Speedrun",
"tabGroupGameplayMapModifications": "Modificaciones de mapas",
"disableChatModifier": "Desactivar modificaciones del chat",
"snsSuicideMode": "Desactivar sistema de escudos",
"tabGroupNoKcd": "0 s de espera para matar",
"disablePeacePeriod": "Desactivar período de paz de 5 s",
"disableLobbyInfo": "Disable Lobby Info"
}