mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-19 15:51:58 +00:00
a
This commit is contained in:
1 parent
ad27252681
commit
f87c0f6288
4 files changed
+8
-3
No files matched your search
+1
-1
@@ -1453,7 +1453,7 @@ internal static class RPC
|
||||
|
||||
SendOption sendOption = SendOption.Reliable;
|
||||
|
||||
if (GameStates.CurrentServerType == GameStates.ServerType.Vanilla && Options.CurrentGameMode != CustomGameMode.Standard)
|
||||
if (GameStates.CurrentServerType == GameStates.ServerType.Vanilla)
|
||||
sendOption = SendOption.None;
|
||||
|
||||
MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(PlayerControl.LocalPlayer.NetId, (byte)CustomRPC.PlaySound, sendOption);
|
||||
|
||||
+1
-1
@@ -3927,7 +3927,7 @@ public static class Utils
|
||||
nums[Options.GameStateInfo.MadmateCount]++;
|
||||
else if (pc.IsNeutralKiller())
|
||||
nums[Options.GameStateInfo.NKCount]++;
|
||||
else if (pc.Is(Team.Impostor))
|
||||
else if (pc.Is(Team.Impostor) || pc.Is(CustomRoles.DoubleAgent))
|
||||
nums[Options.GameStateInfo.ImpCount]++;
|
||||
else if (pc.Is(Team.Crewmate))
|
||||
nums[Options.GameStateInfo.CrewCount]++;
|
||||
|
||||
@@ -859,7 +859,7 @@ internal static class ChatCommands
|
||||
return;
|
||||
}
|
||||
|
||||
if (!targetState.MainRole.Is(Team.Crewmate) || targetState.MainRole == CustomRoles.GM)
|
||||
if (!targetState.MainRole.Is(Team.Crewmate) || targetState.MainRole is CustomRoles.GM or CustomRoles.Trickster)
|
||||
{
|
||||
RPC.PlaySoundRPC(player.PlayerId, Sounds.SabotageSound);
|
||||
Utils.SendMessage("\n", player.PlayerId, GetString("Imitator.TargetMustBeCrew"), importance: MessageImportance.High);
|
||||
|
||||
@@ -196,4 +196,9 @@ public class Shadow : CovenBase
|
||||
Utils.RpcChangeSkin(pc, OriginalOutfit);
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnReceiveNecronomicon()
|
||||
{
|
||||
SetKillCooldown(ShadowId);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user