]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
ka, tka: refactor/fix ball carrier time scoring
authorbones_was_here <bones_was_here@xonotic.au>
Thu, 27 Feb 2025 16:50:57 +0000 (02:50 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 14 Mar 2025 18:18:36 +0000 (04:18 +1000)
commit718f144ab8fdf50d99aa10ad16082c856878790f
treee83d429a0c30e7f0e5ced13c2b52e8205b5a7199
parent16b5866cd3943e7d1de38f605cea4fa096d8bd05
ka, tka: refactor/fix ball carrier time scoring

ka: runs the ball carried think func every frame to facilitate other
features, which also allows the code to be simplified somewhat and makes
cvar g_keepaway_score_timeinterval redundant. See subsequent commits.

tka: as above, also implements fractional timepoints accumulation,
making g_tka_score_timepoints behaviour consistent with
g_keepaway_score_timepoints.
qcsrc/common/gamemodes/gamemode/keepaway/sv_keepaway.qc
qcsrc/common/gamemodes/gamemode/tka/sv_tka.qc
qcsrc/common/gamemodes/sv_rules.qc
qcsrc/common/gamemodes/sv_rules.qh