]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/client/main.qh
remove all TEs that contain a permanent state.
[divverent/nexuiz.git] / data / 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 // CTF
22
23 void() ctf_menu_show;
24 string ctf_temp_1;
25
26 // --------------------------------------------------------------------------
27 // Onslaught
28
29 // Map coordinate base calculations need these
30 vector mi_center;
31 vector mi_scale;
32 // Minimap
33 string minimapname;
34 float ons_showmap;
35
36 // --------------------------------------------------------------------------
37 // General stuff
38
39 float csqc_revision;
40
41 float drawfont;
42 float postinit;
43 float gametype;
44
45 //float sorted_players;
46 //float sorted_teams;
47
48 // Defs
49 //.float ctf_state;
50 //.float health;
51
52 // Constants
53 const float COLOR_TEAM_RED = 64;
54 const float COLOR_TEAM_BLUE = 208;
55
56 const float COLOR_TEAM1       = 4;  // red
57 const float COLOR_TEAM2       = 13; // blue
58 const float COLOR_TEAM3       = 12; // yellow
59 const float COLOR_TEAM4       = 9; // pink
60 const float COLOR_SPECTATOR = 1337;
61
62 #define FONT_DEFAULT 0
63 #define FONT_USER 8
64
65 // --------------------------------------------------------------------------
66 // Scoreboard stuff
67
68 #define MAX_SBAR_FIELDS 16
69
70 #define SP_END -1
71
72 #define SP_PING -2
73 #define SP_NAME -3
74 #define SP_KDRATIO -4
75 #define SP_CLRATIO -5
76 #define SP_PL -6
77 #define SP_FRAGS -7
78
79 #define SP_SEPARATOR -100
80
81 float sbar_field[MAX_SBAR_FIELDS + 1];
82 float sbar_size[MAX_SBAR_FIELDS + 1];
83 string sbar_title[MAX_SBAR_FIELDS + 1];
84 float sbar_num_fields;
85
86 float sbar_font;
87 float sbar_bigfont;
88
89 string scores_label[MAX_SCORE];
90 float scores_flags[MAX_SCORE];
91 string teamscores_label[MAX_SCORE];
92 float teamscores_flags[MAX_SCORE];
93 .float scores[MAX_SCORE]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(scores);
94 .float teamscores[MAX_TEAMSCORE]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(teamscores);
95
96 #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER )
97 #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) )
98
99
100 vector sbar_fontsize;
101
102 float csqc_flags;
103 #define CSQC_FLAG_READPICTURE 1
104 #define CSQC_FLAG_COLORCODES 2
105
106 entity playerslots[255]; // 255 is engine limit on maxclients
107 entity teamslots[17];    // 17 teams (including "spectator team")
108 .float gotscores;
109 .entity owner;
110
111 .void(void) draw;
112 .void(void) draw2d;
113 float drawframetime;
114 vector view_origin, view_angles, view_forward, view_right, view_up;
115
116 float button_zoom;
117 float spectatorbutton_zoom;
118 float button_attack2;
119 float activeweapon;
120 float current_viewzoom;
121 float zoomin_effect;
122 float ignore_plus_zoom;
123 float ignore_minus_zoom;
124 float warmup_stage;
125
126 float weaponimpulse[24];
127 string getcommandkey(string text, string command);
128 float sbar_showbinds;
129 float sbar_showbinds_limit;
130
131 string vote_called_vote;
132 float ready_waiting;
133 float ready_waiting_for_me;
134 float vote_waiting;
135 float vote_waiting_for_me;
136
137 float current_zoomfraction;
138
139 float cs_project_is_b0rked;
140 float vid_width, vid_height, vid_pixelheight;