Fixed spectator camera position

This commit is contained in:
Bob Da Ross
2021-04-13 02:29:08 -05:00
parent 7de461f55a
commit ae3cc2003d
2 changed files with 3 additions and 10 deletions

View File

@@ -117,15 +117,9 @@ namespace SeamlessClientPlugin
private System.Timers.Timer PingTimer = new System.Timers.Timer(3000);
public static LoadServer Server = new LoadServer();
public static bool IsSwitching = false;
public static bool RanJoin = false;
public static Action JoinAction = () => { };
public void Dispose()
{
@@ -219,12 +213,9 @@ namespace SeamlessClientPlugin
IsSwitching = true;
TransferMessage.PingServerAndBeginRedirect();
RanJoin = false;
MySession.Static.SetCameraController(VRage.Game.MyCameraControllerEnum.SpectatorFixed);
//DisposeInitilizations();
}
else if (Recieved.MessageType == ClientMessageType.FirstJoin)
{
}
}
catch (Exception ex)
{

View File

@@ -304,6 +304,8 @@ namespace SeamlessClientPlugin.SeamlessTransfer
//MyScreenManager.CloseScreen(GUIScreenChat);
MyHud.Chat.RegisterChat(MyMultiplayer.Static);
//MySession.SetSpectatorPositionFromServer(SeamlessClient.PreviousPosition ?? Vector3D.Zero);
MySession.Static.SetCameraController(MyCameraControllerEnum.SpectatorFixed);
}
catch (Exception ex)