Skip to content

Commit

Permalink
Change
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommy-XL committed Mar 1, 2025
1 parent e3e4dc2 commit 4b13b71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modules/ExtendedPlayerControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public static void RpcExileDesync(this PlayerControl player, PlayerControl seer)
player.Exiled();
return;
}
MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(player.NetId, (byte)RpcCalls.Exiled, SendOption.None, clientId);
MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(player.NetId, (byte)RpcCalls.Exiled, SendOption.Reliable, clientId);
AmongUsClient.Instance.FinishRpcImmediately(writer);
}
public static void RpcExileV2(this PlayerControl player)
Expand All @@ -348,7 +348,7 @@ public static void RpcExileV2(this PlayerControl player)
}
player.Exiled();

MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(player.NetId, (byte)RpcCalls.Exiled, SendOption.None, -1);
MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(player.NetId, (byte)RpcCalls.Exiled, SendOption.Reliable, -1);
AmongUsClient.Instance.FinishRpcImmediately(writer);
}
public static void RpcCastVote(this PlayerControl player, byte suspectIdx)
Expand Down Expand Up @@ -830,7 +830,7 @@ public static void RpcResetAbilityCooldown(this PlayerControl target)
}
else
{
MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(target.NetId, (byte)RpcCalls.ProtectPlayer, SendOption.None, target.GetClientId());
MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(target.NetId, (byte)RpcCalls.ProtectPlayer, RpcSendOption, target.GetClientId());
writer.WriteNetObject(target);
writer.Write(0);
AmongUsClient.Instance.FinishRpcImmediately(writer);
Expand Down

0 comments on commit 4b13b71

Please sign in to comment.