From: LegendaryGuard Date: Sat, 29 May 2021 11:21:34 +0000 (+0200) Subject: Added mod info X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=be9d3ba8f0755db405c3847f8d1094d36990705d;p=xonotic%2Fxonotic-data.pk3dir.git Added mod info --- diff --git a/qcsrc/server/modinfo.qc b/qcsrc/server/modinfo.qc new file mode 100644 index 000000000..6b998fe91 --- /dev/null +++ b/qcsrc/server/modinfo.qc @@ -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