X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fgamelog.qc;h=1b308d0940de2bcbcfb0ab9a79bcd4c76d06f5e6;hb=e88e1e15090f826fe3ac9b006e89eca0d1ecfe68;hp=f89cf18a0335c284f531de6a385e0bc5ca346a59;hpb=3e6e644488b54b638078fb88b88c643e103ac8e1;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/gamelog.qc b/qcsrc/server/gamelog.qc index f89cf18a0..1b308d094 100644 --- a/qcsrc/server/gamelog.qc +++ b/qcsrc/server/gamelog.qc @@ -1,5 +1,7 @@ #include "gamelog.qh" - +#include // GetGametype(), GetMapname() +#include // autocvar_g_norecoil +#include // matchid #include string GameLog_ProcessIP(string s) @@ -41,8 +43,32 @@ void GameLogEcho(string s) void GameLogInit() { - logfile_open = false; - // will be opened later + GameLogEcho(strcat(":gamestart:", GetGametype(), "_", GetMapname(), ":", matchid)); + string s = ":gameinfo:mutators:LIST"; + + MUTATOR_CALLHOOK(BuildMutatorsString, s); + s = M_ARGV(0, string); + + // initialiation stuff, not good in the mutator system + if(!autocvar_g_use_ammunition) + s = strcat(s, ":no_use_ammunition"); + + // initialiation stuff, not good in the mutator system + if(autocvar_g_pickup_items == 0) + s = strcat(s, ":no_pickup_items"); + if(autocvar_g_pickup_items > 0) + s = strcat(s, ":pickup_items"); + + // initialiation stuff, not good in the mutator system + if(autocvar_g_weaponarena != "0") + s = strcat(s, ":", autocvar_g_weaponarena, " arena"); + + // TODO to mutator system + if(autocvar_g_norecoil) + s = strcat(s, ":norecoil"); + + GameLogEcho(s); + GameLogEcho(":gameinfo:end"); } void GameLogClose()