]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/gamemodes/gamemode/tmayhem/sv_tmayhem.qh
Merge branch 'master' into pending-release
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / tmayhem / sv_tmayhem.qh
diff --git a/qcsrc/common/gamemodes/gamemode/tmayhem/sv_tmayhem.qh b/qcsrc/common/gamemodes/gamemode/tmayhem/sv_tmayhem.qh
new file mode 100644 (file)
index 0000000..d05727e
--- /dev/null
@@ -0,0 +1,21 @@
+#pragma once
+
+#include <common/mutators/base.qh>
+
+// autocvars defined here so they can be imported in FFA sv_mayhem.qc
+float autocvar_g_tmayhem_scoring_upscaler;
+float autocvar_g_tmayhem_scoring_kill_weight;
+float autocvar_g_tmayhem_scoring_damage_weight;
+bool autocvar_g_tmayhem_scoring_disable_selfdamage2score;
+
+void tmayhem_Initialize();
+
+REGISTER_MUTATOR(tmayhem, false)
+{
+       MUTATOR_STATIC();
+       MUTATOR_ONADD
+       {
+               tmayhem_Initialize();
+       }
+       return 0;
+}