mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
temp solution for kicking
This commit is contained in:
1 parent
7819572d1f
commit
a8ac3e840a
20 files changed
+68
-61
No files matched your search
@@ -851,7 +851,7 @@ public static class BedWars
|
||||
NameNotifyManager.Notifies.Remove(pc.PlayerId);
|
||||
RPC.PlaySoundRPC(pc.PlayerId, Sounds.TaskComplete);
|
||||
pc.ReviveFromTemporaryExile();
|
||||
pc.RpcSetColor(Team.GetColorId());
|
||||
// pc.RpcSetColor(Team.GetColorId());
|
||||
pc.TP(Base.SpawnPosition);
|
||||
pc.SetChatVisible(true);
|
||||
Utils.NotifyRoles(SpecifyTarget: pc, SendOption: SendOption.None);
|
||||
|
||||
@@ -368,7 +368,7 @@ public static class CaptureTheFlag
|
||||
players.Remove(player);
|
||||
PlayerTeams[player.PlayerId] = CTFTeam.Blue;
|
||||
bluePlayers.Add(player.PlayerId);
|
||||
player.RpcSetColor(1);
|
||||
// player.RpcSetColor(1);
|
||||
yield return WaitFrameIfNecessary();
|
||||
}
|
||||
|
||||
@@ -376,7 +376,7 @@ public static class CaptureTheFlag
|
||||
{
|
||||
PlayerTeams[player.PlayerId] = CTFTeam.Yellow;
|
||||
yellowPlayers.Add(player.PlayerId);
|
||||
player.RpcSetColor(5);
|
||||
// player.RpcSetColor(5);
|
||||
yield return WaitFrameIfNecessary();
|
||||
}
|
||||
|
||||
|
||||
@@ -970,7 +970,7 @@ public static class KingOfTheZones
|
||||
|
||||
yield return null;
|
||||
|
||||
foreach (PlayerControl player in Main.EnumerateAlivePlayerControls())
|
||||
/*foreach (PlayerControl player in Main.EnumerateAlivePlayerControls())
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -980,7 +980,7 @@ public static class KingOfTheZones
|
||||
player.RpcSetColor(colorId);
|
||||
}
|
||||
catch (Exception e) { Utils.ThrowException(e); }
|
||||
}
|
||||
}*/
|
||||
|
||||
yield return null;
|
||||
|
||||
|
||||
@@ -329,7 +329,7 @@ public static class TheMindGame
|
||||
foreach (PlayerControl pc in players)
|
||||
{
|
||||
Groups[pc.PlayerId] = group;
|
||||
pc.RpcSetColor(group.GetColorId());
|
||||
// pc.RpcSetColor(group.GetColorId());
|
||||
pc.TP(location);
|
||||
ids.Add(pc.PlayerId);
|
||||
}
|
||||
@@ -404,7 +404,7 @@ public static class TheMindGame
|
||||
|
||||
Round = 2;
|
||||
|
||||
DefaultColorIds.DoIf(x => x.Key && x.Value is >= byte.MinValue and <= byte.MaxValue, x => x.Key.RpcSetColor((byte)x.Value));
|
||||
// DefaultColorIds.DoIf(x => x.Key && x.Value is >= byte.MinValue and <= byte.MaxValue, x => x.Key.RpcSetColor((byte)x.Value));
|
||||
|
||||
yield return NotifyEveryone("TMG.Notify.Round", 2, 2);
|
||||
if (Stop) yield break;
|
||||
|
||||
Reference in new issue
Block a user