예제 #1
0
 public virtual void RestoreBasePlayers()
 {
     foreach (var player in Players.Values)
     {
         IemUtils.TeleportPlayerPosition(BasePlayer.Find(player.PlayerId),
                                         player.PreviousLocation);
         me.IemUtils.RestoreInventory(BasePlayer.Find(player.PlayerId), GetGuid());
     }
 }
예제 #2
0
            public override IemUtils.IIemTeamPlayer AddPlayer(BasePlayer player)
            {
                if (!Players.ContainsKey(player.UserIDString))
                {
                    Players[player.UserIDString] = new IemEmbankmentPlayer(player, this);
                }
                IemUI.ShowTeamUiForPlayer(player, this);
                IemUtils.TeleportPlayerPosition(player, teamLobby.location);

                return((IemUtils.IIemTeamPlayer)Players[player.UserIDString]);
            }
예제 #3
0
            public bool MovePlayerToTeamLocation(BasePlayer player, Vector3 location)
            {
                IemUtils.GLog("moving players to game");

                if (!IemUtils.CheckPointNearToLocation(
                        player.transform.position, location, 2))
                {
                    IemUtils.TeleportPlayerPosition(player, location);
                }

                return(true);
            }
예제 #4
0
 public IemEmbankmentPlayer(BasePlayer player, IemGameEmbankmentGame game) : base(player)
 {
     IemUtils.TeleportPlayerPosition(player, game.teamLobby.location);
     me.IemUtils?.SaveInventory(player, game.GetGuid());
     game.teamLobby.OpenDoors();
 }