示例#1
0
 public void InitDeadBodyPhysics()
 {
     if (Character.Physics.IsRagdollModeActive)
     {
         Character.Physics.CloseRagdollMode();
     }
     if (RagdollMapper.IsActive)
     {
         RagdollMapper.Deactivate();
     }
     Character.Physics.SwitchToRagdollMode();
     RagdollMapper.Activate();
     RagdollMapper.SetRagdollToKeyframed();
     RagdollMapper.UpdateRagdollPose();
     RagdollMapper.SetRagdollToDynamic();
 }
 public void InitDeadBodyPhysics()
 {
     if (MyFakes.ENABLE_RAGDOLL_DEBUG)
     {
         Debug.WriteLine("RagdollComponent.InitDeadBodyPhysics");
     }
     if (Character.Physics.IsRagdollModeActive)
     {
         Character.Physics.CloseRagdollMode();
     }
     if (RagdollMapper.IsActive)
     {
         RagdollMapper.Deactivate();
     }
     Character.Physics.SwitchToRagdollMode();
     RagdollMapper.Activate();
     RagdollMapper.SetRagdollToKeyframed();
     RagdollMapper.UpdateRagdollPose();
     RagdollMapper.SetRagdollToDynamic();
 }
示例#3
0
        public void InitDeadBodyPhysics()
        {
            bool          flag1   = MyFakes.ENABLE_RAGDOLL_DEBUG;
            MyPhysicsBody physics = base.Character.Physics;

            if (physics.IsRagdollModeActive)
            {
                physics.CloseRagdollMode();
            }
            MyRagdollMapper ragdollMapper = this.RagdollMapper;

            if (ragdollMapper.IsActive)
            {
                ragdollMapper.Deactivate();
            }
            physics.SwitchToRagdollMode(true, 1);
            ragdollMapper.Activate();
            ragdollMapper.SetRagdollToKeyframed();
            ragdollMapper.UpdateRagdollPose();
            ragdollMapper.SetRagdollToDynamic();
        }