Remove `-Wno-double-declaration`
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / main.qh
1 // --------------------------------------------------------------------------
2 // MENU Functionality
3
4 const float DATABUF_PING = 0;
5 #define DATABUF_CAPTURES (1*maxclients)
6 #define DATABUF_DEATHS (2*maxclients)
7 #define DATABUF_RETURNS (3*maxclients)
8
9 #define DATABUF_NEXT (5*maxclients)
10
11 void() menu_show_error;
12 void() menu_sub_null;
13
14 float menu_visible;
15 var void() menu_show;
16 var float(float bInputType, float nPrimary, float nSecondary) menu_action;
17
18 // --------------------------------------------------------------------------
19 // Onslaught
20
21 // Map coordinate base calculations need these
22 vector mi_center;
23 vector mi_scale;
24 // Minimap
25 string minimapname;
26
27 // --------------------------------------------------------------------------
28 // General stuff
29
30 float postinit;
31 float gametype;
32
33 //float sorted_players;
34 //float sorted_teams;
35
36 // Defs
37 //.float ctf_state;
38 //.float health;
39
40 float FONT_USER = 8;
41
42 // --------------------------------------------------------------------------
43 // Scoreboard stuff
44
45 const int MAX_HUD_FIELDS = 16;
46
47 const int SP_END = -1;
48
49 const int SP_PING = -2;
50 const int SP_NAME = -3;
51 const int SP_KDRATIO = -4;
52 const int SP_CLRATIO = -5;
53 const int SP_PL = -6;
54 const int SP_FRAGS = -7;
55 const int SP_SUM = -8;
56
57 const int SP_SEPARATOR = -100;
58
59 float hud_field[MAX_HUD_FIELDS + 1];
60 float hud_size[MAX_HUD_FIELDS + 1];
61 string hud_title[MAX_HUD_FIELDS + 1];
62 int hud_num_fields;
63
64 string scores_label[MAX_SCORE];
65 int scores_flags[MAX_SCORE];
66 string teamscores_label[MAX_SCORE];
67 int teamscores_flags[MAX_SCORE];
68 .int scores[MAX_SCORE];
69 .float teamscores[MAX_TEAMSCORE];
70
71 #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER )
72 #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) )
73
74
75 vector hud_fontsize;
76
77 float RANKINGS_RECEIVED_CNT;
78 string grecordholder[RANKINGS_CNT];
79 float grecordtime[RANKINGS_CNT];
80 //float csqc_flags;
81
82 entity playerslots[255]; // 255 is engine limit on maxclients
83 entity teamslots[17];    // 17 teams (including "spectator team")
84 .float gotscores;
85 .entity owner;
86 .float ready;
87 .float eliminated;
88
89 .void(void) draw;
90 .void(void) draw2d;
91 .void(void) entremove;
92 float drawframetime;
93 vector view_origin, view_forward, view_right, view_up;
94
95 float button_zoom;
96 float spectatorbutton_zoom;
97 float button_attack2;
98
99 float activeweapon;
100 float switchingweapon;
101 float switchweapon;
102 float current_viewzoom;
103 float zoomin_effect;
104 float warmup_stage;
105
106 string getcommandkey(string text, string command);
107
108 string vote_called_vote;
109 float ready_waiting;
110 float ready_waiting_for_me;
111 float vote_waiting;
112 float vote_waiting_for_me;
113
114 float current_zoomfraction;
115
116 float cs_project_is_b0rked;
117 float vid_width, vid_height, vid_pixelheight;
118
119 float camera_active;            // Demo camera is active if set to true
120 float chase_active_backup;
121 float camera_roll;
122 vector camera_direction;
123
124 void centerprint_hud(string strMessage);
125 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
126
127 const float ALPHA_MIN_VISIBLE = 0.003;
128
129 float armorblockpercent;
130
131 //hooks
132 int calledhooks;
133 const int HOOK_START =    1;
134 const int HOOK_END =      2;
135
136 .float ping, ping_packetloss, ping_movementloss;
137
138 float g_balance_mortar_bouncefactor;
139 float g_balance_mortar_bouncestop;
140 float g_balance_electro_secondary_bouncefactor;
141 float g_balance_electro_secondary_bouncestop;
142 float g_trueaim_minrange;
143
144 entity entcs_receiver[255]; // 255 is the engine limit on maxclients
145
146 float hud;
147 float view_quality;
148 int framecount;