]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/world.qh
Further cleanup miscfunctions, document the need to use intrusive lists on entities...
[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 string clientstuff;
20
21 string matchid;
22
23 .string fog;
24
25 string redirection_target;
26
27 string cache_mutatormsg;
28 string cache_lastmutatormsg;
29
30 float default_player_alpha;
31 float default_weapon_alpha;
32
33 // database
34 float ServerProgsDB;
35 float TemporaryDB;
36
37 .float winning;
38 const int WINNING_NO = 0; // no winner, but time limits may terminate the game
39 const int WINNING_YES = 1; // winner found
40 const int WINNING_NEVER = 2; // no winner, enter overtime if time limit is reached
41 const int WINNING_STARTSUDDENDEATHOVERTIME = 3; // no winner, enter suddendeath overtime NOW
42
43 float WinningCondition_Scores(float limit, float leadlimit);
44 void SetWinners(.float field, float value);
45 void ReadyRestart();
46
47 void DumpStats(float final);
48 void CheckRules_World();
49 float RedirectionThink();
50
51 void droptofloor(entity this);
52
53 IntrusiveList g_moveables;
54 STATIC_INIT(g_moveables) { g_moveables = IL_NEW(); }