#include <common/effects/all.qh>
#include <common/vehicles/all.qh>
+#include <server/gamelog.qh>
#include <server/teamplay.qh>
#include <lib/warpzone/common.qh>
#include "sv_cts.qh"
#include <server/race.qh>
+#include <server/gamelog.qh>
#include <server/items.qh>
float autocvar_g_cts_finish_kill_delay;
#include "sv_domination.qh"
+#include <server/gamelog.qh>
#include <server/teamplay.qh>
bool g_domination;
#include "sv_keepaway.qh"
#include <common/effects/all.qh>
+#include <server/gamelog.qh>
.entity ballcarried;
#include "sv_keyhunt.qh"
+#include <server/gamelog.qh>
+
float autocvar_g_balance_keyhunt_damageforcescale;
float autocvar_g_balance_keyhunt_delay_collect;
float autocvar_g_balance_keyhunt_delay_damage_return;
#include "sv_nexball.qh"
+#include <server/gamelog.qh>
+
.entity ballcarried;
int autocvar_g_nexball_goalleadlimit;
#include "sv_race.qh"
+#include <server/gamelog.qh>
#include <server/race.qh>
#define autocvar_g_race_laps_limit cvar("g_race_laps_limit")
#include "sv_minigames.qh"
#include "minigames.qh"
+#include <server/gamelog.qh>
+
void player_clear_minigame(entity player)
{
CS(player).active_minigame = NULL;
#include <server/g_damage.qc>
#include <server/g_hook.qc>
#include <server/g_world.qc>
+#include <server/gamelog.qc>
#include <server/handicap.qc>
#include <server/impulse.qc>
#include <server/ipban.qc>
#include <server/g_damage.qh>
#include <server/g_hook.qh>
#include <server/g_world.qh>
+#include <server/gamelog.qh>
#include <server/handicap.qh>
#include <server/impulse.qh>
#include <server/ipban.qh>
#include "antilag.qh"
#include "autocvars.qh"
#include "defs.qh"
+#include <server/gamelog.qh>
#include "miscfunctions.qh"
#include "command/common.qh"
#include "clientkill.qh"
#include "cheats.qh"
#include "g_world.qh"
+#include <server/gamelog.qh>
#include "race.qh"
#include "antilag.qh"
#include "campaign.qh"
#include "vote.qh"
#include <server/defs.qh>
+#include <server/gamelog.qh>
#include <server/miscfunctions.qh>
#include <common/command/_mod.qh>
#include <common/effects/all.qh>
#include "bot/api.qh"
#include "g_hook.qh"
+#include <server/gamelog.qh>
#include <server/mutators/_mod.qh>
#include "teamplay.qh"
#include "scores.qh"
#include "command/sv_cmd.qh"
#include "command/vote.qh"
#include "g_hook.qh"
+#include <server/gamelog.qh>
#include "ipban.qh"
#include "mapvoting.qh"
#include <server/mutators/_mod.qh>
--- /dev/null
+#include "gamelog.qh"
+
+#include <server/autocvars.qh>
+#include <server/miscfunctions.qh>
+
+string GameLog_ProcessIP(string s)
+{
+ if(!autocvar_sv_eventlog_ipv6_delimiter)
+ return s;
+ return strreplace(":", "_", s);
+}
+
+void GameLogEcho(string s)
+{
+ if (autocvar_sv_eventlog_files)
+ {
+ if (!logfile_open)
+ {
+ logfile_open = true;
+ int matches = autocvar_sv_eventlog_files_counter + 1;
+ cvar_set("sv_eventlog_files_counter", itos(matches));
+ string fn = ftos(matches);
+ if (strlen(fn) < 8)
+ fn = strcat(substring("00000000", 0, 8 - strlen(fn)), fn);
+ fn = strcat(autocvar_sv_eventlog_files_nameprefix, fn, autocvar_sv_eventlog_files_namesuffix);
+ logfile = fopen(fn, FILE_APPEND);
+ fputs(logfile, ":logversion:3\n");
+ }
+ if (logfile >= 0)
+ {
+ if (autocvar_sv_eventlog_files_timestamps)
+ fputs(logfile, strcat(":time:", strftime(true, "%Y-%m-%d %H:%M:%S", "\n", s, "\n")));
+ else
+ fputs(logfile, strcat(s, "\n"));
+ }
+ }
+ if (autocvar_sv_eventlog_console)
+ {
+ dedicated_print(strcat(s, "\n"));
+ }
+}
+
+void GameLogInit()
+{
+ logfile_open = false;
+ // will be opened later
+}
+
+void GameLogClose()
+{
+ if (logfile_open && logfile >= 0)
+ {
+ fclose(logfile);
+ logfile = -1;
+ }
+}
--- /dev/null
+#pragma once
+
+bool logfile_open;
+float logfile;
+
+string GameLog_ProcessIP(string s);
+
+void GameLogEcho(string s);
+
+void GameLogInit();
+
+void GameLogClose();
#include "mapvoting.qh"
#include <server/defs.qh>
+#include <server/gamelog.qh>
#include <server/miscfunctions.qh>
#include "g_world.qh"
#include "command/cmd.qh"
#include "command/common.qh"
#include "constants.qh"
#include "g_hook.qh"
+#include <server/gamelog.qh>
#include "ipban.qh"
#include <server/mutators/_mod.qh>
#include "../common/t_items.qh"
if (server_is_dedicated) print(input);
}
-string GameLog_ProcessIP(string s)
-{
- if(!autocvar_sv_eventlog_ipv6_delimiter)
- return s;
- return strreplace(":", "_", s);
-}
-
-void GameLogEcho(string s)
-{
- string fn;
- int matches;
-
- if (autocvar_sv_eventlog_files)
- {
- if (!logfile_open)
- {
- logfile_open = true;
- matches = autocvar_sv_eventlog_files_counter + 1;
- cvar_set("sv_eventlog_files_counter", itos(matches));
- fn = ftos(matches);
- if (strlen(fn) < 8)
- fn = strcat(substring("00000000", 0, 8 - strlen(fn)), fn);
- fn = strcat(autocvar_sv_eventlog_files_nameprefix, fn, autocvar_sv_eventlog_files_namesuffix);
- logfile = fopen(fn, FILE_APPEND);
- fputs(logfile, ":logversion:3\n");
- }
- if (logfile >= 0)
- {
- if (autocvar_sv_eventlog_files_timestamps)
- fputs(logfile, strcat(":time:", strftime(true, "%Y-%m-%d %H:%M:%S", "\n", s, "\n")));
- else
- fputs(logfile, strcat(s, "\n"));
- }
- }
- if (autocvar_sv_eventlog_console)
- {
- dedicated_print(strcat(s, "\n"));
- }
-}
-
-void GameLogInit()
-{
- logfile_open = 0;
- // will be opened later
-}
-
-void GameLogClose()
-{
- if (logfile_open && logfile >= 0)
- {
- fclose(logfile);
- logfile = -1;
- }
-}
-
entity findnearest(vector point, bool checkitems, vector axismod)
{
vector dist;
/** print(), but only print if the server is not local */
void dedicated_print(string input);
-string GameLog_ProcessIP(string s);
-
-void GameLogEcho(string s);
-
-void GameLogInit();
-
-void GameLogClose();
-
void GetCvars(entity this, entity store, int f);
string GetMapname();
// copies a string to a tempstring (so one can strunzone it)
string strcat1(string s) = #115; // FRIK_FILE
-float logfile_open;
-float logfile;
-
/*
// NOTE: DO NOT USE THIS FUNCTION TOO OFTEN.
// IT WILL MOST PROBABLY DESTROY _ALL_ OTHER TEMP
#include "g_hook.qh"
#include "g_damage.qh"
#include "g_world.qh"
+#include <server/gamelog.qh>
#include "bot/api.qh"
#include "teamplay.qh"
#include "client.qh"
+#include <server/gamelog.qh>
#include "race.qh"
#include "scores.qh"
#include "scores_rules.qh"