]> git.xonotic.org Git - xonotic/xonotic.wiki.git/commitdiff
Lyberta created page: dynamic handicap
authorLyberta <lyberta@lyberta.net>
Sun, 24 Sep 2017 02:34:46 +0000 (02:34 +0000)
committerLyberta <lyberta@lyberta.net>
Sun, 24 Sep 2017 02:34:46 +0000 (02:34 +0000)
dynamic-handicap.md [new file with mode: 0644]

diff --git a/dynamic-handicap.md b/dynamic-handicap.md
new file mode 100644 (file)
index 0000000..b511784
--- /dev/null
@@ -0,0 +1,22 @@
+This mutator changes the handicap of players based on difference of their score to the mean score. Linear handicap value is calculated using the following formula:
+
+       linear_handicap = |(score - mean) * g_dynamic_handicap_scale| ^ g_dynamic_handicap_exponent
+
+After that the sign is restored and final handicap if calculated using this formula:
+
+       if (linear_handicap >= 0)
+       {
+               handicap = linear_handicap + 1;
+       }
+       else
+       {
+               handicap = 1 / (|linear_handicap| + 1);
+       }
+
+## Server settings
+
+       g_dynamic_handicap 0 "Whether to enable dynamic handicap."
+       g_dynamic_handicap_scale 0.2 "The scale of the handicap. Larger values mean more penalties for strong players and more buffs for weak players."
+       g_dynamic_handicap_exponent 1 "The exponent used to calculate handicap. 1 means linear scale. Values more than 1 mean stronger non-linear handicap. Values less than 1 mean weaker non-linear handicap"
+       g_dynamic_handicap_min 0 "The minimum value of the handicap."
+       g_dynamic_handicap_max 0 "The maximum value of the handicap."
\ No newline at end of file