]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/client/main.qh
handle an entity changing its type right (happend when both a remove and a spawn...
[divverent/nexuiz.git] / data / qcsrc / client / main.qh
1 // --------------------------------------------------------------------------
2 // MENU Functionality
3
4 #define 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 // CTF
20
21 void() ctf_menu_show;
22 string ctf_temp_1;
23
24 // --------------------------------------------------------------------------
25 // Onslaught
26
27 // Map coordinate base calculations need these
28 vector mi_center;
29 vector mi_scale;
30 // Minimap
31 string minimapname;
32 float ons_showmap;
33
34 // --------------------------------------------------------------------------
35 // General stuff
36
37 float csqc_revision;
38
39 float drawfont;
40 float postinit;
41 float gametype;
42 entity gps_start;
43
44 float draw_enginesbar;
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
78 #define SP_SEPARATOR -100
79
80 float sbar_field[MAX_SBAR_FIELDS + 1];
81 float sbar_size[MAX_SBAR_FIELDS + 1];
82 string sbar_title[MAX_SBAR_FIELDS + 1];
83 float sbar_num_fields;
84
85 float sbar_font;
86 float sbar_bigfont;
87
88 string scores_label[MAX_SCORE];
89 float scores_flags[MAX_SCORE];
90 string teamscores_label[MAX_SCORE];
91 float teamscores_flags[MAX_SCORE];
92 .float scores[MAX_SCORE];
93 .float teamscores[MAX_TEAMSCORE];
94
95 #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER )
96 #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) )
97
98
99 vector sbar_fontsize;
100
101 float csqc_flags;
102 #define CSQC_FLAG_READPICTURE 1
103
104 string config_get(string key, string defaultvalue);
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;