]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Move physics-state strafehud/physics hud code to ../common_physics.qc
authorotta8634 <k9wolf@pm.me>
Tue, 24 Sep 2024 13:30:09 +0000 (21:30 +0800)
committerotta8634 <k9wolf@pm.me>
Tue, 24 Sep 2024 13:37:28 +0000 (21:37 +0800)
commitca404af93ce6f6b3d866a347fc4c655b09840267
treecc0a7e2208346dddb024c7efe9b4477f81400a57
parentc748bbf4e1e998c3b5bcee24d8e1bd526a41522b
Move physics-state strafehud/physics hud code to ../common_physics.qc

The physics hud and strafehud require similar calculations/variables (e.g. vel,
onslick, speed, immobile, onground, jumpheld (& keys), swimming, alive_player).
Moved all associated code to client/hud/common_physics.qc which runs before the
HUDs are drawn. This prevents duplicate code.
Consequently, includes for these huds could be cleaned up.
Updated strafehud and physics hud code accordingly.
Added GeomLerp to common/physics/player.qh for strafehud.
12 files changed:
qcsrc/client/hud/_mod.inc
qcsrc/client/hud/_mod.qh
qcsrc/client/hud/common_physics.qc [new file with mode: 0644]
qcsrc/client/hud/common_physics.qh [new file with mode: 0644]
qcsrc/client/hud/hud.qc
qcsrc/client/hud/panel/physics.qc
qcsrc/client/hud/panel/physics.qh
qcsrc/client/hud/panel/strafehud.qc
qcsrc/common/_mod.inc
qcsrc/common/_mod.qh
qcsrc/common/ent_cs.qh
qcsrc/common/physics/player.qh