when you checkpoint it records HP at that point then when you die it sets HP back to that savedHP