3 #include <common/constants.qh>
4 #include <common/weapons/all.qh>
6 // --------------------------------------------------------------------------
9 // --------------------------------------------------------------------------
12 // Map coordinate base calculations need these
18 // --------------------------------------------------------------------------
24 //float sorted_players;
34 vector OFFSET_CURSOR = '0 0 0';
35 vector SIZE_CURSOR = '32 32 0';
36 void draw_cursor(vector pos, vector ofs, string img, vector col, float a);
37 void draw_cursor_normal(vector pos, vector col, float a);
38 void LoadMenuSkinValues();
40 // --------------------------------------------------------------------------
43 const int MAX_HUD_FIELDS = MAX_SCORE;
45 PlayerScoreField hud_field[MAX_HUD_FIELDS + 1];
46 float hud_size[MAX_HUD_FIELDS + 1];
47 string hud_title[MAX_HUD_FIELDS + 1];
52 float RANKINGS_RECEIVED_CNT;
53 string grecordholder[RANKINGS_CNT];
54 float grecordtime[RANKINGS_CNT];
57 entity playerslots[255]; // 255 is engine limit on maxclients
58 entity teamslots[17]; // 17 teams (including "spectator team")
66 .void(entity) entremove;
68 vector view_origin, view_forward, view_right, view_up;
71 bool spectatorbutton_zoom;
75 Weapon switchingweapon;
77 float current_viewzoom;
83 string getcommandkey(string text, string command);
85 string vote_called_vote;
87 float ready_waiting_for_me;
89 float vote_waiting_for_me;
91 float current_zoomfraction;
93 float cs_project_is_b0rked;
94 float vid_width, vid_height, vid_pixelheight;
96 float camera_active; // Demo camera is active if set to true
97 float chase_active_backup;
99 vector camera_direction;
101 void centerprint_hud(string strMessage);
102 void centerprint_kill(float id);
103 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
105 const float ALPHA_MIN_VISIBLE = 0.003;
107 float armorblockpercent;
111 const int HOOK_START = 1;
112 const int HOOK_END = 2;
114 .float ping, ping_packetloss, ping_movementloss;
116 float g_trueaim_minrange;