Check which direction the player was hit from?

it should be ACOSd, not ASINd.