[TF2] Huntman hit detection improvement suggestion
Issue #5904 was posted a while back, reporting an issue with the how the huntsman hit detection is inconsistent based on the enemy's rotation. On top of fixing that, I want to suggest an additional improvement:
To my knowledge, after an arrow collides with a player's bounding box, the huntsman hit detection only looks for the closest player hitbox, it doesn't consider the distance between the arrow and the closest player hitbox. This results in shots that look like clear misses being comically teleported a long distance to hit a player. It especially results in weird behaviors at the corners of the bounding box.
I propose making the hit detection check if the distance between the huntsman arrow and the closest player hitbox is less than or equal to 16 HU. If it is, allow it to hit. If it isn't, don't allow it to hit.
16 HU is a little bit less than half of the size of the player's width. Feel free to suggest a different number if you feel 16 doesn't work.