]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/g_world.qh
6b9a9f8eca7b8860ea5458dd9f49468b9d9b1b89
[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 cache_mutatormsg;
12 string cache_lastmutatormsg;
13
14 const int WINNING_NO = 0; // no winner, but time limits may terminate the game
15 const int WINNING_YES = 1; // winner found
16 const int WINNING_NEVER = 2; // no winner, enter overtime if time limit is reached
17 const int WINNING_STARTSUDDENDEATHOVERTIME = 3; // no winner, enter suddendeath overtime NOW
18
19 float WinningCondition_Scores(float limit, float leadlimit);
20 void SetWinners(.float field, float value);
21 void IntermissionThink(entity this);
22 void GotoNextMap(float reinit);
23 void ReadyRestart();
24
25 string GetGametype();
26
27 void DumpStats(float final);
28 float Map_IsRecent(string m);
29 string GetNextMap();
30 void ShuffleMaplist();
31 void Map_Goto_SetStr(string nextmapname);
32 void Map_Goto(float reinit);
33 void Map_MarkAsRecent(string m);
34 float DoNextMapOverride(float reinit);
35 void CheckRules_World();
36 float RedirectionThink();