X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fgamelog.qc;h=1b308d0940de2bcbcfb0ab9a79bcd4c76d06f5e6;hb=978b389f7810328d616ff4ceca1690ef51d90b53;hp=a3e747cab6419a307034b227ca63bbbaf421d6f1;hpb=c859a2a87cbeb3dd30f402782cf7e59d132b1b81;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/gamelog.qc b/qcsrc/server/gamelog.qc index a3e747cab..1b308d094 100644 --- a/qcsrc/server/gamelog.qc +++ b/qcsrc/server/gamelog.qc @@ -1,6 +1,7 @@ #include "gamelog.qh" - -#include +#include // GetGametype(), GetMapname() +#include // autocvar_g_norecoil +#include // matchid #include string GameLog_ProcessIP(string s) @@ -42,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()