コード例 #1
0
        public static void fovRandom()
        {
            initialFOV = MiscSettings.fieldOfView;


            //This is a kinda janky method of grabbing a random fov outside of the typically playable fovs
            System.Random random = new System.Random();

            int lowRandNum  = random.Next(5, 45);
            int highRandNum = random.Next(85, 150);

            double randCoinFlip = random.NextDouble();
            int    randNum;

            if (randCoinFlip > 0.5)
            {
                randNum = highRandNum;
            }
            else
            {
                randNum = lowRandNum;
            }

            //ErrorMessage.AddMessage(randNum.ToString());
            if (randNum < 40)
            {
                HideForScreenshots.Hide(HideForScreenshots.HideType.Mask);
            }
            MiscSettings.fieldOfView = randNum;
            if (SNCameraRoot.main != null)
            {
                SNCameraRoot.main.SyncFieldOfView();
            }
        }
コード例 #2
0
        public static void fovNormal()
        {
            MiscSettings.fieldOfView = initialFOV;
            if (SNCameraRoot.main != null)
            {
                SNCameraRoot.main.SyncFieldOfView();
            }

            HideForScreenshots.Hide(HideForScreenshots.HideType.None);
        }
コード例 #3
0
        public static void fovRandom()
        {
            initialFOV = MiscSettings.fieldOfView;


            // this is bad
            // i did it because atto said to
            // blame him
            // it works tho
            // the weird random number thing that is
            // I completely agree with doing random fov
            System.Random random = new System.Random();

            int lowRandNum  = random.Next(5, 45);
            int highRandNum = random.Next(85, 150);

            double randCoinFlip = random.NextDouble();
            int    randNum;

            if (randCoinFlip > 0.5)
            {
                randNum = highRandNum;
            }
            else
            {
                randNum = lowRandNum;
            }

            //ErrorMessage.AddMessage(randNum.ToString());
            if (randNum < 40)
            {
                HideForScreenshots.Hide(HideForScreenshots.HideType.Mask);
            }
            MiscSettings.fieldOfView = randNum;
            if (SNCameraRoot.main != null)
            {
                SNCameraRoot.main.SyncFieldOfView();
            }
        }
コード例 #4
0
 public static void showHUD()
 {
     HideForScreenshots.Hide(HideForScreenshots.HideType.None);
 }
コード例 #5
0
 public static void hideHUD()
 {
     HideForScreenshots.Hide(HideForScreenshots.HideType.Mask | HideForScreenshots.HideType.HUD);
 }