]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/command/common.qh
Clean up macros
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / common.qh
1 // ============================================================
2 //  Shared declarations for server commands, written by Samual
3 //  Last updated: December 30th, 2011
4 // ============================================================
5
6 // client verification results
7 const float CLIENT_ACCEPTABLE = 1;
8 const float CLIENT_DOESNT_EXIST = -1;
9 const float CLIENT_NOT_REAL = -2;
10 const float CLIENT_NOT_BOT = -3;
11
12 // definitions for timeouts
13 const float TIMEOUT_INACTIVE = 0;
14 const float TIMEOUT_LEADTIME = 1;
15 const float TIMEOUT_ACTIVE = 2;
16
17 // timeout which pauses the game by setting the slowmo value extremely low.
18 const float TIMEOUT_SLOWMO_VALUE = 0.0001;
19
20 // global timeout information declarations
21 entity timeout_caller; // contains the entity of the player who started the last timeout
22 entity timeout_handler; // responsible for centerprinting the timeout countdowns and playing sounds
23 float sys_frametime; // gets initialised in worldspawn, saves the value from autocvar_sys_ticrate
24 float orig_slowmo; // contains the value of autocvar_slowmo so that, after timeout finished, it isn't set to slowmo 1 necessarily
25 float timeout_time; // contains the time in seconds that the active timeout has left
26 float timeout_leadtime; // contains the number of seconds left of the leadtime (before the timeout starts)
27 float timeout_status; // (values: 0, 1, 2) contains whether a timeout is not active (0), was called but still at leadtime (1) or is active (2)
28 .float allowed_timeouts; // contains the number of allowed timeouts for each player
29 .vector lastV_angle; //used when pausing the game in order to force the player to keep his old view angle fixed
30
31 // allow functions to be used in other code like g_world.qc and teamplay.qc
32 void timeout_handler_think();
33
34 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
35 void CommonCommand_macro_write_aliases(float fh);
36
37 // keep track of the next token to use for argc
38 float next_token;