mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
inline
This commit is contained in:
1 parent
e6c5436bb2
commit
64006d01f2
2 files changed
+5
-5
No files matched your search
@@ -186,7 +186,7 @@ internal static class ExtendedPlayerControl
|
||||
{
|
||||
if (pc == player || pc.AmOwner) continue;
|
||||
CustomRpcSender sender = CustomRpcSender.Create($"SnapTo Freeze ({player.GetNameWithRole()})", SendOption.Reliable);
|
||||
sender.StartMessage(pc.GetClientId());
|
||||
sender.StartMessage(pc.OwnerId);
|
||||
sender.StartRpc(player.NetTransform.NetId, (byte)RpcCalls.SnapTo)
|
||||
.WriteVector2(player.transform.position)
|
||||
.Write(player.NetTransform.lastSequenceId)
|
||||
|
||||
@@ -73,7 +73,7 @@ public class Exclusionary : RoleBase
|
||||
}
|
||||
|
||||
var sender = CustomRpcSender.Create("Exclusionary", SendOption.Reliable);
|
||||
sender.StartMessage(target.GetClientId());
|
||||
sender.StartMessage(target.OwnerId);
|
||||
|
||||
foreach (PlayerControl player in Main.EnumerateAlivePlayerControls())
|
||||
{
|
||||
@@ -84,7 +84,7 @@ public class Exclusionary : RoleBase
|
||||
Utils.NumSnapToCallsThisRound++;
|
||||
sender.SendMessage();
|
||||
sender = CustomRpcSender.Create("Exclusionary", SendOption.Reliable);
|
||||
sender.StartMessage(target.GetClientId());
|
||||
sender.StartMessage(target.OwnerId);
|
||||
}
|
||||
|
||||
sender.StartRpc(player.NetId, RpcCalls.SetPetStr)
|
||||
@@ -153,7 +153,7 @@ public class Exclusionary : RoleBase
|
||||
}
|
||||
|
||||
var sender = CustomRpcSender.Create("Exclusionary Revert", SendOption.Reliable);
|
||||
sender.StartMessage(pc.GetClientId());
|
||||
sender.StartMessage(pc.OwnerId);
|
||||
|
||||
foreach (PlayerControl player in Main.EnumerateAlivePlayerControls())
|
||||
{
|
||||
@@ -164,7 +164,7 @@ public class Exclusionary : RoleBase
|
||||
Utils.NumSnapToCallsThisRound++;
|
||||
sender.SendMessage();
|
||||
sender = CustomRpcSender.Create("Exclusionary Revert", SendOption.Reliable);
|
||||
sender.StartMessage(pc.GetClientId());
|
||||
sender.StartMessage(pc.OwnerId);
|
||||
}
|
||||
|
||||
if (Options.UsePets.GetBool())
|
||||
|
||||
Reference in new issue
Block a user