]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/g_world.qh
3d6276384e3344c74e65551cf732ba85e1ffdde7
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_world.qh
1 #pragma once
2
3 float checkrules_equality;
4 float checkrules_suddendeathwarning;
5 float checkrules_suddendeathend;
6 float checkrules_overtimesadded; //how many overtimes have been already added
7
8 // flag set on worldspawn so that the code knows if it is dedicated or not
9 bool server_is_dedicated;
10
11 string modname;
12
13 string gamemode_name;
14
15 float intermission_running;
16 float intermission_exittime;
17 float alreadychangedlevel;
18
19 string cache_mutatormsg;
20 string cache_lastmutatormsg;
21
22 // database
23 float ServerProgsDB;
24 float TemporaryDB;
25
26 const int WINNING_NO = 0; // no winner, but time limits may terminate the game
27 const int WINNING_YES = 1; // winner found
28 const int WINNING_NEVER = 2; // no winner, enter overtime if time limit is reached
29 const int WINNING_STARTSUDDENDEATHOVERTIME = 3; // no winner, enter suddendeath overtime NOW
30
31 float WinningCondition_Scores(float limit, float leadlimit);
32 void SetWinners(.float field, float value);
33 void IntermissionThink(entity this);
34 void GotoNextMap(float reinit);
35 void ReadyRestart();
36
37 string GetGametype();
38
39 void DumpStats(float final);
40 float Map_IsRecent(string m);
41 string GetNextMap();
42 void ShuffleMaplist();
43 void Map_Goto_SetStr(string nextmapname);
44 void Map_Goto(float reinit);
45 void Map_MarkAsRecent(string m);
46 float DoNextMapOverride(float reinit);
47 void CheckRules_World();
48 float RedirectionThink();