Leawind's Third Person

Leawind's Third Person

27k Downloads

Locked aim sprint issue

DoctorVerum opened this issue ยท 0 comments

commented

Describe the bug

When in a locked aim state, sprinting sometimes does not trigger correctly. From what I can tell this happens particularly when moving diagonally or when moving sideways before trying to sprint, as well as when turning the camera rapidly before sprinting. This issue sometimes persists until force aim state is disabled.

Reproduce

Steps to reproduce the behavior:

  1. Shift camera state to force aim (i.e. with the player turning towards the crosshair), either by holding the "force aim" control or setting the camera to that state
  2. Either move diagonally, sideways or turn the camera rapidly to either side before sprinting
  3. This frequently leads to sprinting becoming disabled, either until I stop moving and try to sprint again, or occasionally until I exit the force aim state

Expected behavior

I expect sprinting to not stop working, and for the sprint button to allow sprinting regardless of aim state.

Additional context

This issue stops immediately when turning off the force aim camera state and does not occur in any other camera state (both third and first person). It is most easily reproduced by moving diagonally, then pressing the sprint key and trying to sprint forwards, which usually does not work. I personally suspect this has to do with the mod treating the player as if they are moving sideways even when moving forwards shortly after having moved sideways.

Is this issue related to the "sprint impulse threshold" option? I am not sure what that option means.