Improve hit detection

Uses a proper cone shape and contact test to find the closest hit object, and makes it not player specific. Also adds a minor fix to stop the landing/splash sound from playing when walking out of water.