]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Improve player_handicap icon implementation
authorotta8634 <k9wolf@pm.me>
Sun, 15 Dec 2024 11:01:37 +0000 (19:01 +0800)
committerotta8634 <k9wolf@pm.me>
Sun, 15 Dec 2024 11:01:37 +0000 (19:01 +0800)
commitd5e33d809572dd49367ac9e4ca2ee040a78ad9ef
treeaae226e53def23c327c0527952bfd036b45b330a
parent6d11e75ad6893a32c1227c7a502495c790989bf0
Improve player_handicap icon implementation

Changed the handicap_total calculation method to average given and taken, instead of multiplying them.
Made .handicap_level range from 0 to 16 instead of to 255, so the player_handicap icon will essentially be \xFFF, \xFEE, ..., \xF00 from 1 to 16.
Added HANDICAP_MAX_LEVEL_EQUIVALENT, set to 2, the cl_handicap at which .handicap_level 16 is reached.
Improved some associated comments.
Fixed ".handicap_total" typo.
qcsrc/client/hud/panel/scoreboard.qc
qcsrc/server/handicap.qc
qcsrc/server/handicap.qh