3 #include <common/constants.qh>
4 #include <common/weapons/all.qh>
6 // --------------------------------------------------------------------------
9 void setpredraw(entity this, void(entity) pdfunc);
11 // --------------------------------------------------------------------------
14 // Map coordinate base calculations need these
20 // --------------------------------------------------------------------------
26 //float sorted_players;
36 vector OFFSET_CURSOR = '0 0 0';
37 vector SIZE_CURSOR = '32 32 0';
38 void draw_cursor(vector pos, vector ofs, string img, vector col, float a);
39 void draw_cursor_normal(vector pos, vector col, float a);
40 void LoadMenuSkinValues();
42 // --------------------------------------------------------------------------
45 const int MAX_HUD_FIELDS = 64;
47 PlayerScoreField hud_field[MAX_HUD_FIELDS + 1];
48 float hud_size[MAX_HUD_FIELDS + 1];
49 string hud_title[MAX_HUD_FIELDS + 1];
54 float RANKINGS_RECEIVED_CNT;
55 string grecordholder[RANKINGS_CNT];
56 float grecordtime[RANKINGS_CNT];
59 entity playerslots[255]; // 255 is engine limit on maxclients
60 entity teamslots[17]; // 17 teams (including "spectator team")
68 .void(entity) entremove;
70 vector view_origin, view_forward, view_right, view_up;
73 bool spectatorbutton_zoom;
77 Weapon switchingweapon;
79 float current_viewzoom;
85 string getcommandkey(string text, string command);
87 string vote_called_vote;
89 float ready_waiting_for_me;
91 float vote_waiting_for_me;
93 float current_zoomfraction;
95 float cs_project_is_b0rked;
96 float vid_width, vid_height, vid_pixelheight;
98 float camera_active; // Demo camera is active if set to true
99 float chase_active_backup;
101 vector camera_direction;
103 void centerprint_hud(string strMessage);
104 void centerprint_kill(float id);
105 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
107 const float ALPHA_MIN_VISIBLE = 0.003;
109 float armorblockpercent;
113 const int HOOK_START = 1;
114 const int HOOK_END = 2;
116 .float ping, ping_packetloss, ping_movementloss;
118 float g_trueaim_minrange;