]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Network handicap "level" to the client and display on scoreboard
authorotta8634 <k9wolf@pm.me>
Sat, 14 Dec 2024 09:43:12 +0000 (17:43 +0800)
committerotta8634 <k9wolf@pm.me>
Sat, 17 May 2025 06:01:51 +0000 (14:01 +0800)
commit4091acde57753eecb22860ecc53176fb04414840
treeea0a880d118d730037a89a3ef391f840db64a546
parent6086b18a5d332d02f8bf4b352e5df89187fabf76
Network handicap "level" to the client and display on scoreboard

Total bidirectional handicap (client-set & server-enforced, and given & taken) is now networked to the client with .handicap_level.
- Values from 1 to 5 are mapped to be between 1 and 255 resulting in the "level". The "5" value is arbitrary and can be replaced in future.
The handicap logo now displays on the scoreboard next to players with .handicap_level > 0.
- Starts as white at 1, becomes full-red as the handicap level increases up to 255.
Also changed spaces to tabs in qcsrc/common/ent_cs.qh as a cleanup.
None of the newly added code should become redundant after 0.9 releases.
qcsrc/client/hud/panel/scoreboard.qc
qcsrc/common/ent_cs.qc
qcsrc/common/ent_cs.qh
qcsrc/server/handicap.qc
qcsrc/server/handicap.qh