4 #include "../common/constants.qh"
5 #include "../common/weapons/all.qh"
7 // --------------------------------------------------------------------------
10 const float DATABUF_PING = 0;
11 #define DATABUF_CAPTURES (1*maxclients)
12 #define DATABUF_DEATHS (2*maxclients)
13 #define DATABUF_RETURNS (3*maxclients)
15 #define DATABUF_NEXT (5*maxclients)
17 // --------------------------------------------------------------------------
20 // Map coordinate base calculations need these
26 // --------------------------------------------------------------------------
32 //float sorted_players;
41 // --------------------------------------------------------------------------
44 const int MAX_HUD_FIELDS = 16;
46 const int SP_END = -1;
48 const int SP_PING = -2;
49 const int SP_NAME = -3;
50 const int SP_KDRATIO = -4;
51 const int SP_CLRATIO = -5;
53 const int SP_FRAGS = -7;
54 const int SP_SUM = -8;
56 const int SP_SEPARATOR = -100;
58 float hud_field[MAX_HUD_FIELDS + 1];
59 float hud_size[MAX_HUD_FIELDS + 1];
60 string hud_title[MAX_HUD_FIELDS + 1];
63 string scores_label[MAX_SCORE];
64 int scores_flags[MAX_SCORE];
65 string teamscores_label[MAX_SCORE];
66 int teamscores_flags[MAX_SCORE];
67 .int scores[MAX_SCORE];
68 .float teamscores[MAX_TEAMSCORE];
70 #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER )
71 #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) )
76 float RANKINGS_RECEIVED_CNT;
77 string grecordholder[RANKINGS_CNT];
78 float grecordtime[RANKINGS_CNT];
81 entity playerslots[255]; // 255 is engine limit on maxclients
82 entity teamslots[17]; // 17 teams (including "spectator team")
92 vector view_origin, view_forward, view_right, view_up;
95 bool spectatorbutton_zoom;
99 Weapon switchingweapon;
101 float current_viewzoom;
107 string getcommandkey(string text, string command);
109 string vote_called_vote;
111 float ready_waiting_for_me;
113 float vote_waiting_for_me;
115 float current_zoomfraction;
117 float cs_project_is_b0rked;
118 float vid_width, vid_height, vid_pixelheight;
120 float camera_active; // Demo camera is active if set to true
121 float chase_active_backup;
123 vector camera_direction;
125 void centerprint_hud(string strMessage);
126 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
128 const float ALPHA_MIN_VISIBLE = 0.003;
130 float armorblockpercent;
134 const int HOOK_START = 1;
135 const int HOOK_END = 2;
137 .float ping, ping_packetloss, ping_movementloss;
139 float g_trueaim_minrange;