private void UpdatePromptStasisState(Player player)
        {
            var mymod = ResetModeMod.Instance;

            if (!mymod.Session.Data.IsRunning)
            {
                return;
            }

            if (this.IsPromptingForResetOnLocal)
            {
                PlayerHelpers.LockdownPlayerPerTick(player);
            }
        }
Example #2
0
        private void UpdatePlayerState()
        {
            if (this.player.dead)
            {
                return;
            }

            this.IsInInitLockdown = !LoadHelpers.IsWorldSafelyBeingPlayed();

            if (this.IsInInitLockdown)
            {
                PlayerHelpers.LockdownPlayerPerTick(this.player);
            }

            var args = new PlayerPromiseArguments {
                Who = this.player.whoAmI
            };

            Promises.TriggerValidatedPromise(OnARailPlayer.PlayerFuncsValidator, OnARailPlayer.MyValidatorKey, args);
        }