mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
fix
This commit is contained in:
1 parent
3f32bfa651
commit
9875c2fb3d
6 files changed
+55
-8
No files matched your search
@@ -1491,12 +1491,14 @@ internal static class ExtendedPlayerControl
|
||||
MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(player.NetId, (byte)CustomRPC.Invisibility, SendOption.Reliable);
|
||||
writer.WritePacked(1);
|
||||
AmongUsClient.Instance.FinishRpcImmediately(writer);
|
||||
NotifyRoles(SpecifySeer: player, SpecifyTarget: player, SendOption: SendOption.None);
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(player.NetId, (byte)CustomRPC.Invisibility, SendOption.Reliable);
|
||||
writer.WritePacked(11);
|
||||
AmongUsClient.Instance.FinishRpcImmediately(writer);
|
||||
NotifyRoles(SpecifyTarget: player);
|
||||
}
|
||||
|
||||
foreach (PlayerControl pc in PlayerControl.AllPlayerControls)
|
||||
@@ -1534,12 +1536,14 @@ internal static class ExtendedPlayerControl
|
||||
MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(player.NetId, (byte)CustomRPC.Invisibility, SendOption.Reliable);
|
||||
writer.WritePacked(0);
|
||||
AmongUsClient.Instance.FinishRpcImmediately(writer);
|
||||
NotifyRoles(SpecifySeer: player, SpecifyTarget: player);
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(player.NetId, (byte)CustomRPC.Invisibility, SendOption.Reliable);
|
||||
writer.WritePacked(10);
|
||||
AmongUsClient.Instance.FinishRpcImmediately(writer);
|
||||
NotifyRoles(SpecifyTarget: player);
|
||||
}
|
||||
|
||||
foreach (PlayerControl pc in PlayerControl.AllPlayerControls)
|
||||
@@ -1938,6 +1942,7 @@ internal static class ExtendedPlayerControl
|
||||
|
||||
LateTask.New(() =>
|
||||
{
|
||||
if (ReportDeadBodyPatch.MeetingStarted || GameStates.IsMeeting) return;
|
||||
Vector2 pos = Object.FindObjectsOfType<DeadBody>().First(x => x.ParentId == target.PlayerId).TruePosition;
|
||||
|
||||
if (Vector2.Distance(pos, Pelican.GetBlackRoomPS()) > 2f)
|
||||
|
||||
Reference in new issue
Block a user