]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/command/common.qh
#include this
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / common.qh
1 #ifndef COMMAND_COMMON_H
2 #define COMMAND_COMMON_H
3
4 #if defined(CSQC)
5 #elif defined(MENUQC)
6 #elif defined(SVQC)
7     #include "../../common/util-pre.qh"
8     #include "../sys-pre.qh"
9     #include "../../dpdefs/progsdefs.qc"
10     #include "../../dpdefs/dpextensions.qc"
11     #include "../sys-post.qh"
12     #include "../../warpzonelib/anglestransform.qh"
13     #include "../../warpzonelib/mathlib.qh"
14     #include "../../warpzonelib/common.qh"
15     #include "../../warpzonelib/util_server.qh"
16     #include "../../warpzonelib/server.qh"
17     #include "../../common/constants.qh"
18     #include "../../common/stats.qh"
19     #include "../../common/teams.qh"
20     #include "../../common/util.qh"
21     #include "../../common/nades.qh"
22     #include "../../common/buffs.qh"
23     #include "../../common/test.qh"
24     #include "../../common/counting.qh"
25     #include "../../common/urllib.qh"
26     #include "../../common/command/markup.qh"
27     #include "../../common/command/rpn.qh"
28     #include "../../common/command/generic.qh"
29     #include "../../common/command/shared_defs.qh"
30     #include "../../common/net_notice.qh"
31     #include "../../common/animdecide.qh"
32     #include "../../common/monsters/monsters.qh"
33     #include "../../common/monsters/sv_monsters.qh"
34     #include "../../common/monsters/spawn.qh"
35     #include "../../common/weapons/config.qh"
36     #include "../../common/weapons/weapons.qh"
37     #include "../weapons/accuracy.qh"
38     #include "../weapons/common.qh"
39     #include "../weapons/csqcprojectile.qh"
40     #include "../weapons/hitplot.qh"
41     #include "../weapons/selection.qh"
42     #include "../weapons/spawning.qh"
43     #include "../weapons/throwing.qh"
44     #include "../weapons/tracing.qh"
45     #include "../weapons/weaponstats.qh"
46     #include "../weapons/weaponsystem.qh"
47     #include "../t_items.qh"
48     #include "../autocvars.qh"
49     #include "../constants.qh"
50     #include "../defs.qh"
51     #include "../../common/notifications.qh"
52     #include "../../common/deathtypes.qh"
53     #include "../mutators/mutators_include.qh"
54     #include "../tturrets/include/turrets_early.qh"
55     #include "../vehicles/vehicles_def.qh"
56     #include "../campaign.qh"
57     #include "../../common/campaign_common.qh"
58     #include "../../common/mapinfo.qh"
59 #endif
60
61 // ============================================================
62 //  Shared declarations for server commands, written by Samual
63 //  Last updated: December 30th, 2011
64 // ============================================================
65
66 // client verification results
67 const float CLIENT_ACCEPTABLE = 1;
68 const float CLIENT_DOESNT_EXIST = -1;
69 const float CLIENT_NOT_REAL = -2;
70 const float CLIENT_NOT_BOT = -3;
71
72 // definitions for timeouts
73 const float TIMEOUT_INACTIVE = 0;
74 const float TIMEOUT_LEADTIME = 1;
75 const float TIMEOUT_ACTIVE = 2;
76
77 // timeout which pauses the game by setting the slowmo value extremely low.
78 const float TIMEOUT_SLOWMO_VALUE = 0.0001;
79
80 // global timeout information declarations
81 entity timeout_caller; // contains the entity of the player who started the last timeout
82 entity timeout_handler; // responsible for centerprinting the timeout countdowns and playing sounds
83 float sys_frametime; // gets initialised in worldspawn, saves the value from autocvar_sys_ticrate
84 float orig_slowmo; // contains the value of autocvar_slowmo so that, after timeout finished, it isn't set to slowmo 1 necessarily
85 float timeout_time; // contains the time in seconds that the active timeout has left
86 float timeout_leadtime; // contains the number of seconds left of the leadtime (before the timeout starts)
87 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)
88 .float allowed_timeouts; // contains the number of allowed timeouts for each player
89 .vector lastV_angle; //used when pausing the game in order to force the player to keep his old view angle fixed
90
91 // allow functions to be used in other code like g_world.qc and teamplay.qc
92 void timeout_handler_think();
93
94 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
95 void CommonCommand_macro_write_aliases(float fh);
96
97 // keep track of the next token to use for argc
98 float next_token;
99 #endif