Fixed spectator camera position
This commit is contained in:
@@ -117,16 +117,10 @@ namespace SeamlessClientPlugin
|
|||||||
private System.Timers.Timer PingTimer = new System.Timers.Timer(3000);
|
private System.Timers.Timer PingTimer = new System.Timers.Timer(3000);
|
||||||
|
|
||||||
public static LoadServer Server = new LoadServer();
|
public static LoadServer Server = new LoadServer();
|
||||||
|
|
||||||
|
|
||||||
public static bool IsSwitching = false;
|
public static bool IsSwitching = false;
|
||||||
public static bool RanJoin = false;
|
public static bool RanJoin = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static Action JoinAction = () => { };
|
|
||||||
|
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
#pragma warning disable CS0618 // Type or member is obsolete
|
#pragma warning disable CS0618 // Type or member is obsolete
|
||||||
@@ -219,12 +213,9 @@ namespace SeamlessClientPlugin
|
|||||||
IsSwitching = true;
|
IsSwitching = true;
|
||||||
TransferMessage.PingServerAndBeginRedirect();
|
TransferMessage.PingServerAndBeginRedirect();
|
||||||
RanJoin = false;
|
RanJoin = false;
|
||||||
|
MySession.Static.SetCameraController(VRage.Game.MyCameraControllerEnum.SpectatorFixed);
|
||||||
//DisposeInitilizations();
|
//DisposeInitilizations();
|
||||||
}
|
}
|
||||||
else if (Recieved.MessageType == ClientMessageType.FirstJoin)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@@ -304,6 +304,8 @@ namespace SeamlessClientPlugin.SeamlessTransfer
|
|||||||
|
|
||||||
//MyScreenManager.CloseScreen(GUIScreenChat);
|
//MyScreenManager.CloseScreen(GUIScreenChat);
|
||||||
MyHud.Chat.RegisterChat(MyMultiplayer.Static);
|
MyHud.Chat.RegisterChat(MyMultiplayer.Static);
|
||||||
|
//MySession.SetSpectatorPositionFromServer(SeamlessClient.PreviousPosition ?? Vector3D.Zero);
|
||||||
|
MySession.Static.SetCameraController(MyCameraControllerEnum.SpectatorFixed);
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
Reference in New Issue
Block a user