]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commit
strafehud: fix and refactor jumpheight feature 939/head
authorbones_was_here <bones_was_here@xa.org.au>
Tue, 12 Oct 2021 07:37:07 +0000 (17:37 +1000)
committerbones_was_here <bones_was_here@xa.org.au>
Tue, 12 Oct 2021 08:59:54 +0000 (18:59 +1000)
commitb61422541ba30169dc487bf8823adb08e40b4e61
tree75481f237b994c7878e5c3f237533c10ea818e9b
parent76f998af134742c6baa86468ec995b3b8abb1e68
strafehud: fix and refactor jumpheight feature

The height displayed was always too small, as one or two frames
of each jump were not included (especially the first frame,
when z velocity is greatest).

It now shows the exact height predicted by the formula in physicsX.cfg
and should be correct for all physics configurations.

Also, simplified the logic and removed 6 globals.
qcsrc/client/hud/panel/strafehud.qc