]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/client/main.qh
Xonstat: parse current gamemode elo
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / main.qh
1 #pragma once
2
3 #include <common/constants.qh>
4 #include <common/weapons/all.qh>
5
6 // --------------------------------------------------------------------------
7 // MENU Functionality
8
9 void setpredraw(entity this, void(entity) pdfunc);
10
11 // --------------------------------------------------------------------------
12 // Onslaught
13
14 // Map coordinate base calculations need these
15 vector mi_center;
16 vector mi_scale;
17 // Minimap
18 string minimapname;
19
20 // --------------------------------------------------------------------------
21 // General stuff
22
23 float postinit;
24 float gametype;
25
26 //float sorted_players;
27 //float sorted_teams;
28
29 // Defs
30 //.float ctf_state;
31 //.float health;
32
33 float FONT_USER = 8;
34
35
36 vector OFFSET_CURSOR = '0 0 0';
37 vector SIZE_CURSOR = '32 32 0';
38 void draw_cursor(vector pos, vector ofs, string img, vector col, float a);
39 void draw_cursor_normal(vector pos, vector col, float a);
40 void LoadMenuSkinValues();
41
42 // --------------------------------------------------------------------------
43 // Scoreboard stuff
44
45 const int MAX_HUD_FIELDS = MAX_SCORE;
46
47 PlayerScoreField hud_field[MAX_HUD_FIELDS + 1];
48 float hud_size[MAX_HUD_FIELDS + 1];
49 string hud_title[MAX_HUD_FIELDS + 1];
50 int hud_num_fields;
51
52 vector hud_fontsize;
53
54 float RANKINGS_RECEIVED_CNT;
55 string grecordholder[RANKINGS_CNT];
56 float grecordtime[RANKINGS_CNT];
57 //float csqc_flags;
58
59 entity playerslots[255]; // 255 is engine limit on maxclients
60 entity teamslots[17];    // 17 teams (including "spectator team")
61 .float gotscores;
62 .entity owner;
63 .float ready;
64 .float eliminated;
65
66 .void(entity) draw;
67 .void(entity) draw2d;
68 .void(entity) entremove;
69 float drawframetime;
70 vector view_origin, view_forward, view_right, view_up;
71
72 bool button_zoom;
73 bool spectatorbutton_zoom;
74 bool button_attack2;
75
76 Weapon activeweapon;
77 Weapon switchingweapon;
78 Weapon switchweapon;
79 float current_viewzoom;
80 float zoomin_effect;
81 float warmup_stage;
82
83 void Fog_Force();
84
85 string getcommandkey(string text, string command);
86
87 string vote_called_vote;
88 float ready_waiting;
89 float ready_waiting_for_me;
90 float vote_waiting;
91 float vote_waiting_for_me;
92
93 float current_zoomfraction;
94
95 float cs_project_is_b0rked;
96 float vid_width, vid_height, vid_pixelheight;
97
98 float camera_active;            // Demo camera is active if set to true
99 float chase_active_backup;
100 float camera_roll;
101 vector camera_direction;
102
103 void centerprint_hud(string strMessage);
104 void centerprint_kill(float id);
105 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
106
107 const float ALPHA_MIN_VISIBLE = 0.003;
108
109 float armorblockpercent;
110
111 //hooks
112 int calledhooks;
113 const int HOOK_START =    1;
114 const int HOOK_END =      2;
115
116 .float ping, ping_packetloss, ping_movementloss;
117
118 float g_trueaim_minrange;
119
120 float hud;
121 float view_quality;
122 int framecount;
123 .float health;