diff --git a/QSB/Player/PlayerHUDMarker.cs b/QSB/Player/PlayerHUDMarker.cs index 9835b3da..b0818d82 100644 --- a/QSB/Player/PlayerHUDMarker.cs +++ b/QSB/Player/PlayerHUDMarker.cs @@ -16,7 +16,7 @@ namespace QSB.Player _markerTarget = new GameObject().transform; _markerTarget.parent = transform; - _markerTarget.localPosition = Vector3.up * 2; + _markerTarget.localPosition = Vector3.up * 0.25f; } public void Init(PlayerInfo player) diff --git a/QSB/Player/QSBPlayerManager.cs b/QSB/Player/QSBPlayerManager.cs index fc783ba0..7a5efe55 100644 --- a/QSB/Player/QSBPlayerManager.cs +++ b/QSB/Player/QSBPlayerManager.cs @@ -62,7 +62,7 @@ namespace QSB.Player return default; } - DebugLog.DebugWrite($"Create Player : id<{id}> Stacktrace :\r\n{Environment.StackTrace}", MessageType.Info); + DebugLog.DebugWrite($"Create Player : id<{id}>", MessageType.Info); player = new PlayerInfo(id); PlayerList.Add(player); OnAddPlayer?.Invoke(id); @@ -71,7 +71,7 @@ namespace QSB.Player public static void RemovePlayer(uint id) { - DebugLog.DebugWrite($"Remove Player : id<{id}> Stacktrace :\r\n{Environment.StackTrace}", MessageType.Info); + DebugLog.DebugWrite($"Remove Player : id<{id}>", MessageType.Info); PlayerList.RemoveAll(x => x.PlayerId == id); } @@ -140,6 +140,8 @@ namespace QSB.Player public static void ChangePlayerVisibility(uint playerId, bool visible) { var player = GetPlayer(playerId); + player.Visible = visible; + if (player.Body == null) { DebugLog.ToConsole($"Warning - Player {playerId} has a null player model!", MessageType.Warning); @@ -150,8 +152,6 @@ namespace QSB.Player { renderer.enabled = visible; } - - player.Visible = visible; } public static PlayerInfo GetClosestPlayerToWorldPoint(Vector3 worldPoint, bool includeLocalPlayer) => includeLocalPlayer