mirror of
https://github.com/ApeMV/AmongUsRevamped.git
synced 2026-10-25 12:46:55 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
90f0224d54 |
No files matched your search
+1
-1
@@ -44,7 +44,7 @@ public partial class Main : BasePlugin
|
||||
|
||||
public static bool HasArgumentException;
|
||||
public static string CredentialsText;
|
||||
public const string ModVersion = "v1.9.0";
|
||||
public const string ModVersion = "v1.9.1";
|
||||
|
||||
public static float GameTimer;
|
||||
|
||||
|
||||
@@ -224,7 +224,6 @@ public static class Utils
|
||||
PlayerControlSetRolePatch.FirstAssign = true;
|
||||
PlayerControlSetRolePatch.manualSeekers.Clear();
|
||||
|
||||
OnGameStartPatch.ScheduleExile = false;
|
||||
CoShowIntroPatch.IntroInitiated = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,12 +45,6 @@ class PlayerControlSetRolePatch
|
||||
|
||||
canOverrideRole = false;
|
||||
|
||||
if (Main.GM.Value && __instance.PlayerId == PlayerControl.LocalPlayer.PlayerId)
|
||||
{
|
||||
roleType = RoleTypes.Crewmate;
|
||||
OnGameStartPatch.ScheduleExile = true;
|
||||
}
|
||||
|
||||
if (Utils.isHideNSeek && Seekers.Count() == 0 && Options.NumSeekers.GetInt() > 0)
|
||||
{
|
||||
int seekersCount = Options.NumSeekers.GetInt();
|
||||
@@ -115,7 +109,6 @@ class PlayerControlSetRolePatch
|
||||
{
|
||||
Seekers.Clear();
|
||||
ProcessedPlayers.Clear();
|
||||
FirstAssign = false;
|
||||
|
||||
Logger.Info("PCSRP successful", "RoleManaging");
|
||||
}
|
||||
@@ -127,7 +120,6 @@ class PlayerControlSetRolePatch
|
||||
[HarmonyPatch(typeof(HudManager), nameof(HudManager.OnGameStart))]
|
||||
internal static class OnGameStartPatch
|
||||
{
|
||||
public static bool ScheduleExile;
|
||||
public static void Postfix()
|
||||
{
|
||||
if (AmongUsClient.Instance.AmHost && Options.Gamemode.GetValue() == 1 && Options.SNSChatInGame.GetBool())
|
||||
@@ -136,11 +128,11 @@ internal static class OnGameStartPatch
|
||||
if (MeetingHud.Instance != null) MeetingHud.Instance.RpcClose();
|
||||
}
|
||||
|
||||
if (ScheduleExile)
|
||||
if (Main.GM.Value)
|
||||
{
|
||||
Logger.Info($" Game Master Successful", "StartGame");
|
||||
PlayerControl.LocalPlayer.Exiled();
|
||||
PlayerControl.LocalPlayer.RpcSetRole(RoleTypes.CrewmateGhost);
|
||||
ScheduleExile = false;
|
||||
}
|
||||
|
||||
foreach (var p in PlayerControl.AllPlayerControls)
|
||||
|
||||
@@ -43,7 +43,7 @@ public static class SabotageSystemTypeRepairDamagePatch
|
||||
Sabo == SystemTypes.Comms && Options.SNSDisableComms.GetBool() ||
|
||||
Sabo == SystemTypes.HeliSabotage && Options.SNSDisableHeli.GetBool() ||
|
||||
Sabo == SystemTypes.MushroomMixupSabotage && Options.SNSDisableMushroomMixup.GetBool() ||
|
||||
Sabo == SystemTypes.Laboratory && Options.DisableReactor.GetBool() && msgReader != null ||
|
||||
Sabo == SystemTypes.Laboratory && Options.SNSDisableReactor.GetBool() && msgReader != null ||
|
||||
player.Data.IsDead && !Options.DeadImpostorsCanSabotage.GetBool())
|
||||
{
|
||||
Logger.Info($" Sabotage {Sabo} by: {player.Data.PlayerName} was blocked", "SnSSabotageCheck");
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<img src="https://github.com/astra1dev/AUnlocker/assets/90265231/14226f03-a003-4efc-b27b-6df53fb394d6" width=410 height=240>****
|
||||
|
||||
|
||||
# 🎮 Features (v1.9.0):
|
||||
# 🎮 Features (v1.9.1):
|
||||
|
||||
## <b>♠️ Client Side settings:</b>
|
||||
- Game Master (Spectator)
|
||||
@@ -106,7 +106,6 @@
|
||||
| /help | Show command help |
|
||||
| /l<br>/lastgame | Send last game info |
|
||||
| /r | Send current gamemode/roles description |
|
||||
| /r {ability} | Send specific Ability info |
|
||||
| /0kc<br>/sns</br>/sp | Send respective gamemode description |
|
||||
| /ban {name} | Ban a player by name |
|
||||
| /kick {name} | Kick a player by name |
|
||||
@@ -121,6 +120,9 @@
|
||||
| /s<br>/start | Start game countdown |
|
||||
| /vip<br>/moderator<br>/admin | Add a user to respective list by name |
|
||||
| /t {template} | Send a Template from Templates.txt |
|
||||
| /seeker {name} | Manually adds someone as Seeker in HnS |
|
||||
| /seekers | Shows manual Seeker list in HnS |
|
||||
| /clearseekers | Clears manual Seeker list in HnS |
|
||||
|
||||
|
||||
**Credit to these mods and their developers for their code:**
|
||||
|
||||
Reference in new issue
Block a user