using Comfort.Common; using EFT; namespace ScopeTweaks { public class Utils { public bool gameIsReady() { var gameWorld = Singleton.Instance; var sessionResultPanel = Singleton.Instance; if (gameWorld == null || gameWorld.AllPlayers == null || gameWorld.AllPlayers.Count <= 0 || sessionResultPanel != null) { return false; } return true; } public Player getLocalPlayer() { return Singleton.Instance.RegisteredPlayers.Find(p => p.IsYourPlayer); } } }