This commit is contained in:
CWXDEV 2024-01-24 21:08:06 +00:00
parent f547cb2ddb
commit 0d98ee659b
3 changed files with 8 additions and 4 deletions

View File

@ -18,6 +18,7 @@ namespace CWX_DebuggingTool
private Dictionary<string, BotRoleAndDiffClass> _playerRoleAndDiff = new Dictionary<string, BotRoleAndDiffClass>();
private List<BotZone> _zones;
private GameWorld _gameWorld;
private GameObject _mainCamera;
private IBotGame _botGame;
private Rect _rect;
private string _content = "";
@ -47,6 +48,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";
}

View File

@ -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;
}
}