diff --git a/Live/CWX_DebuggingTool/BotmonClass.cs b/Live/CWX_DebuggingTool/BotmonClass.cs index 9dc8155..33b8544 100644 --- a/Live/CWX_DebuggingTool/BotmonClass.cs +++ b/Live/CWX_DebuggingTool/BotmonClass.cs @@ -18,6 +18,7 @@ namespace CWX_DebuggingTool private Dictionary _playerRoleAndDiff = new Dictionary(); private List _zones; private GameWorld _gameWorld; + private GameObject _mainCamera; private IBotGame _botGame; private Rect _rect; private string _content = ""; @@ -46,6 +47,9 @@ namespace CWX_DebuggingTool // Get Player from GameWorld _player = _gameWorld.MainPlayer; + + // Get Player Camera + _mainCamera = GameObject.Find("FPS Camera"); // Make new rect to use for GUI _rect = new Rect(0, 60, 0, 0); @@ -161,7 +165,7 @@ namespace CWX_DebuggingTool // _content += $"[{GetRotationToPlayer(_player, player)}]"; // } - _distance = Vector3.Distance(player.CameraPosition.position, _player.Transform.position); + _distance = Vector3.Distance(player.Transform.position, _player.CameraPosition.position); _content += $"> [{_distance:n2}m] [{_playerRoleAndDiff.First(x => x.Key == player.ProfileId).Value.Role}] " + $"[{player.Profile.Side}] [{_playerRoleAndDiff.First(x => x.Key == player.ProfileId).Value.Difficulty}] {player.Profile.Nickname}\n"; } diff --git a/Live/CWX_DebuggingTool/Build/CWX_DebuggingTool.dll b/Live/CWX_DebuggingTool/Build/CWX_DebuggingTool.dll index 8395f17..1d296b0 100644 Binary files a/Live/CWX_DebuggingTool/Build/CWX_DebuggingTool.dll and b/Live/CWX_DebuggingTool/Build/CWX_DebuggingTool.dll differ diff --git a/Live/CWX_WeatherPatcher/WeatherPatcher.cs b/Live/CWX_WeatherPatcher/WeatherPatcher.cs index 9730745..4ae2f9c 100644 --- a/Live/CWX_WeatherPatcher/WeatherPatcher.cs +++ b/Live/CWX_WeatherPatcher/WeatherPatcher.cs @@ -26,9 +26,9 @@ namespace CWX_WeatherPatcher var debug = WeatherController.Instance.WeatherDebug; debug.Enabled = true; debug.CloudDensity = -1f; - debug.Fog = 0f; - debug.Rain = 0f; - debug.LightningThunderProbability = 0f; + // debug.Fog = 0f; + // debug.Rain = 0f; + // debug.LightningThunderProbability = 0f; debug.WindMagnitude = 0f; } }