]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
New opt-in feature for less stalemates in CA when round timer runs out
authorDr. Jaska <drjaska83@gmail.com>
Sun, 16 Oct 2022 19:53:24 +0000 (19:53 +0000)
committerterencehill <piuntn@gmail.com>
Sun, 16 Oct 2022 19:53:24 +0000 (19:53 +0000)
commitda62f34a13a4c4349b1983b608c7a84e3bf2cea8
tree8cb6c1736d0602baab6dd4c37e5b4b183da23f54
parentf601dbac886cf2ca1e8adbdc7977abbf60ea5274
New opt-in feature for less stalemates in CA when round timer runs out
New cvar: `g_ca_prevent_stalemate 0|1`
First the amount of players alive in each team is checked, if there is a single highest then that team wins the round.
If two teams have the same amount of players then their total health counts are calculated and compared.
If there is the same amount of players and total health in the 2 top teams then it's still a stalemate.

Code cleanup by z411
gamemodes-server.cfg
qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc
qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qh