Skip to content

Improved StrafeHUD

Juhu requested to merge Juhu/strafehud-fixes into master

There have been many improvements to the StrafeHUD code since the initial merge request.

new features:

  • arrow shaped angle indicator: much better to pinpoint the exact angle than a line which obscures part of the hud
  • line indicator is still available, can now be configured to be a dashed line
  • new optimal angle indicator, copy of the current angle indicator offsetted at the optimal angle, try to make both indicators overlap for maximum acceleration
  • added cvars to disable optional features, disabling for example the slick detector no longer requires setting the range or alpha value to 0, there's now a dedicated cvar for that

Bug fixes/improvements:

  • start speed indicator now works on all maps
  • strafehud is more accurate now, the actual optimal strafing angle is frametime dependent, this was previously ignored
  • made jump height indicator more reliable
  • strafehud default values in *.cfg files have been tweaked
  • various code quality improvements, refactoring and reformatting
  • fixed various visual glitches
  • fixed various spectator bugs
  • fixed many other small bugs

Note that there is only one side switching indicator now (previously a yellow and a green line (yellow on inactive and green on active side). Only the one on the inactive side (yellow line) remains (if you switch sides you aim for the spot where the yellow line was). The switch indicator on the active side (which was technically not even a side switching indicator) has been replaced by the new optimal angle indicator.

Unlike the strafehud version currently in master the code is now based on the actual physics code of Xonotic (and to a small degree DarkPlaces) instead of only on the Q3 strafing theory, also tested it in various ways including local modifications to physics code to test that the behaviour is indeed correct.

Edited by Juhu

Merge request reports