]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Added mod info
authorLegendaryGuard <rootuser999@gmail.com>
Sat, 29 May 2021 11:21:34 +0000 (13:21 +0200)
committerLegendaryGuard <rootuser999@gmail.com>
Sat, 29 May 2021 11:21:34 +0000 (13:21 +0200)
qcsrc/server/modinfo.qc [new file with mode: 0644]

diff --git a/qcsrc/server/modinfo.qc b/qcsrc/server/modinfo.qc
new file mode 100644 (file)
index 0000000..6b998fe
--- /dev/null
@@ -0,0 +1,15 @@
+REGISTER_MUTATOR(mutator_mod, true);
+
+MUTATOR_HOOKFUNCTION(mutator_mod, BuildMutatorsString) {
+    M_ARGV(0, string) = strcat(M_ARGV(0, string), ":mod");
+}
+
+// we now show a proper message in the about page
+//MUTATOR_HOOKFUNCTION(mutator_mod, BuildMutatorsPrettyString) {
+//    M_ARGV(0, string) = strcat(M_ARGV(0, string), ", Mod");
+//}
+
+MUTATOR_HOOKFUNCTION(mutator_mod, BuildGameplayTipsString, CBC_ORDER_LAST)
+{
+    M_ARGV(0, string) = strcat(M_ARGV(0, string), "\n\n ^7Running ^5Cyber^7 mod \n^3https://gitlab.com/xonotic/xonotic-data.pk3dir/-/tree/LegendaryGuard/cyber/");
+}
\ No newline at end of file