]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Display fuel level on the Ammo panel
authorterencehill <piuntn@gmail.com>
Tue, 3 Sep 2024 00:50:46 +0000 (02:50 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 3 Sep 2024 23:07:47 +0000 (01:07 +0200)
commit7fa74eecb48b86965587cd0dec56364564ed78c6
treedc2830436344326092537a6cac1e6cafdfb7cf09
parent359f6e1614d712861383e237eb5b8d4df324e635
Display fuel level on the Ammo panel

It was improperly displayed on the HealthArmor panel as a simple bar

Normally Fuel is not displayed, it now appears under these updated conditions: if player has some fuel or unlimited ammo or jetpack or off-hand hook.

The GetAmmoStat change allowed to handle the returned value in a consistent way (fuel should have called getstatf instead of getstati on the returned value)
_hud_common.cfg
qcsrc/client/hud/panel/ammo.qc
qcsrc/client/hud/panel/ammo.qh
qcsrc/client/hud/panel/healtharmor.qc
qcsrc/client/hud/panel/healtharmor.qh
qcsrc/client/hud/panel/weapons.qc
qcsrc/common/resources/all.inc
qcsrc/common/weapons/all.qc