Fix up some stuff with damage types

- Reset the damage type at the end of the damage loop to fix any potentially
  buggy scripts that rely on that behavior.
- Remove the loop from the damage hud, and instead execute it directly from the
  main loop so that it can run before the damage type gets cleared.
- Change the main loop to use a health check again, seems it was missed here.