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