]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/client/main.qh
also compare the team in SPRITERULE_DEFAULT. Should make it possible to hide a waypoi...
[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 entity gps_start;
45
46 //float sorted_players;
47 //float sorted_teams;
48
49 // Defs
50 //.float ctf_state;
51 //.float health;
52
53 // Constants
54 const float COLOR_TEAM_RED = 64;
55 const float COLOR_TEAM_BLUE = 208;
56
57 const float COLOR_TEAM1       = 4;  // red
58 const float COLOR_TEAM2       = 13; // blue
59 const float COLOR_TEAM3       = 12; // yellow
60 const float COLOR_TEAM4       = 9; // pink
61 const float COLOR_SPECTATOR = 1337;
62
63 #define FONT_DEFAULT 0
64 #define FONT_USER 8
65
66 // --------------------------------------------------------------------------
67 // Scoreboard stuff
68
69 #define MAX_SBAR_FIELDS 16
70
71 #define SP_END -1
72
73 #define SP_PING -2
74 #define SP_NAME -3
75 #define SP_KDRATIO -4
76 #define SP_CLRATIO -5
77 #define SP_PL -6
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
105 string config_get(string key, string defaultvalue);
106
107 entity playerslots[255]; // 255 is engine limit on maxclients
108 entity teamslots[17];    // 17 teams (including "spectator team")
109 .float gotscores;
110 .entity owner;
111
112 .void(void) draw;
113 .void(void) draw2d;
114 float drawframetime;
115 vector view_origin, view_angles, view_forward, view_right, view_up;
116
117 float button_zoom;
118 float spectatorbutton_zoom;
119 float button_attack2;
120 float activeweapon;
121 float current_viewzoom;
122 float zoomin_effect;
123 float ignore_plus_zoom;
124 float ignore_minus_zoom;
125 float warmup_stage;
126
127 float weaponimpulse[24];
128 float angles_held_status[24];
129 string getcommandkey(string text, string command);
130 float sbar_showbinds;
131 float sbar_showbinds_limit;
132
133 string vote_called_vote;
134 float ready_waiting;
135 float ready_waiting_for_me;
136 float vote_waiting;
137 float vote_waiting_for_me;
138
139 float current_zoomfraction;
140
141 float cs_project_is_b0rked;
142 float vid_width, vid_height;