]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/world.qh
Implemented endmatch announcer in teamplay
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / 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 cvar_changes;
12 string cvar_purechanges;
13 float cvar_purechanges_count;
14
15 string modname;
16
17 string gamemode_name;
18
19 int fragsleft;
20 int fragsleft_last;
21
22 string clientstuff;
23
24 string matchid;
25
26 .string fog;
27
28 float intermission_running;
29 float intermission_exittime;
30 float alreadychangedlevel;
31
32 string cache_mutatormsg;
33 string cache_lastmutatormsg;
34
35 float default_player_alpha;
36 float default_weapon_alpha;
37
38 // database
39 float ServerProgsDB;
40 float TemporaryDB;
41
42 .float winning;
43 const int WINNING_NO = 0; // no winner, but time limits may terminate the game
44 const int WINNING_YES = 1; // winner found
45 const int WINNING_NEVER = 2; // no winner, enter overtime if time limit is reached
46 const int WINNING_STARTSUDDENDEATHOVERTIME = 3; // no winner, enter suddendeath overtime NOW
47
48 float WinningCondition_Scores(float limit, float leadlimit);
49 void SetWinners(.float field, float value);
50 void IntermissionThink(entity this);
51 void GotoNextMap(float reinit);
52 void ReadyRestart();
53
54 string GetGametype();
55
56 void DumpStats(float final);
57 float Map_IsRecent(string m);
58 string GetNextMap();
59 void ShuffleMaplist();
60 void Map_Goto_SetStr(string nextmapname);
61 void Map_Goto(float reinit);
62 void Map_MarkAsRecent(string m);
63 float DoNextMapOverride(float reinit);
64 void CheckRules_World();
65 float RedirectionThink();
66
67 IntrusiveList g_moveables;
68 STATIC_INIT(g_moveables) { g_moveables = IL_NEW(); }