public void SetLedgeGrabState(CEntityPlayer player, PlayerState state, eLedgeType ledgeHangType)
 {
     if (state == PlayerState.LedgeHang)
     {
         m_velocity = 0;
         player.SetPlayerState(PlayerState.LedgeHang);
         m_body.constraints = RigidbodyConstraints.FreezeAll;
         m_jumpState        = JumpState.Landed;
         m_ledgeHangType    = ledgeHangType;
     }
 }
 public void SetLedgeGrabState(CEntityPlayer player, PlayerState state, eLedgeType ledgeHangType)
 {
     if (state == PlayerState.LedgeHang)
     {
         m_velocity = 0;
         player.SetPlayerState(PlayerState.LedgeHang);
         m_body.constraints = RigidbodyConstraints.FreezeAll;
         m_jumpState = JumpState.Landed;
         m_ledgeHangType = ledgeHangType;
     }
 }