Exopandora / ShoulderSurfing

Shoulder Surfing Reloaded is a highly configurable third person camera mod for minecraft.
MIT License
48 stars 9 forks source link

[FEATURE] Position dynamic crosshair at point of interaction #144

Closed PencilVoid closed 6 months ago

PencilVoid commented 6 months ago

Currently, when the crosshair is set to "dynamic" it positions itself somewhere between the player's head and where the player is looking. This makes it difficult to do things that require some degree of precision, such as pressing buttons or attacking mobs. Positioning the crosshair at the end of the raycast, i.e. where the player is looking, would help to alleviate this.

Exopandora commented 6 months ago

I think what you want is to limit the raytrace distance to the players reach. This can be done (approximately) by setting custom_raytrace_distance to 5.0.

PencilVoid commented 6 months ago

The player reach varies between game modes. According to the Minecraft Wiki, reach is 5.2 blocks in Creative mode and 4.5 blocks otherwise. It would be nice if the mod could handle this automatically.

Exopandora commented 6 months ago

I don't know why this didn't come to my mind earlier, but you can achieve exactly that by setting use_custom_raytrace_distance to false.