Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Yeah, the intended use case for setting look yaw is the same as this. Basically set a yaw then walk without touching the mouse. A yaw lock would mean you could touch the mouse without the yaw changing. One way we could approach your suggestion is an absolute movement mode for wasd, i.e. w is north, a is west, s south, d east, instead of being relative to the look direction. Another possible approach is a yaw lock module, with the option to allow client-side-only looking (mouse movements are rendered, but don't affect actual yaw). This may be more difficult, as you would need movements to be calculated using the locked yaw, but rendering to use the displayed yaw. I don't see why we couldn't implement both options, though I don't know if/when it will happen.
Given how we already have
It could either be a module that when enabled rounds your yaw to the nearest 45 degrees, then disables itself. Or it could be a module that stays enabled and keeps your yaw locked to that.