private void DeactivateJetpackRagdoll()
        {
            if (MyFakes.ENABLE_RAGDOLL_DEBUG)
            {
                Debug.WriteLine("RagdollComponent.DeactivateJetpackRagdoll");
            }
            if (RagdollMapper == null || Character.Physics == null || Character.Physics.Ragdoll == null)
            {
                return;
            }
            if (!MyPerGameSettings.EnableRagdollModels)
            {
                return;
            }
            if (!MyPerGameSettings.EnableRagdollInJetpack)
            {
                return;
            }

            if (RagdollMapper.IsPartiallySimulated)
            {
                RagdollMapper.DeactivatePartialSimulation();
            }

            if (Character.Physics.IsRagdollModeActive)
            {
                Character.Physics.CloseRagdollMode();
            }
        }
예제 #2
0
        private void DeactivateJetpackRagdoll()
        {
            if (RagdollMapper == null || Character.Physics == null || Character.Physics.Ragdoll == null)
            {
                return;
            }
            if (!MyPerGameSettings.EnableRagdollModels)
            {
                return;
            }
            if (!MyPerGameSettings.EnableRagdollInJetpack)
            {
                return;
            }

            if (RagdollMapper.IsPartiallySimulated)
            {
                RagdollMapper.DeactivatePartialSimulation();
            }

            if (Character.Physics.IsRagdollModeActive)
            {
                Character.Physics.CloseRagdollMode();
            }
        }