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()); } }
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]); }
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); }
public IemEmbankmentPlayer(BasePlayer player, IemGameEmbankmentGame game) : base(player) { IemUtils.TeleportPlayerPosition(player, game.teamLobby.location); me.IemUtils?.SaveInventory(player, game.GetGuid()); game.teamLobby.OpenDoors(); }