X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fmain.qh;h=ffb853d2f8379d93d47bac930923b1813defb23e;hb=77c46a6022a0e5c6fa2541e858a0cd9cba8d6b0b;hp=084dfba2f81ae92ca1a577c232b00353dedbf635;hpb=99dd6efe892a86f7b34451eb85b3dfb7fcbb0403;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/main.qh b/qcsrc/client/main.qh index 084dfba2f..ffb853d2f 100644 --- a/qcsrc/client/main.qh +++ b/qcsrc/client/main.qh @@ -1,5 +1,4 @@ -#ifndef CLIENT_MAIN_H -#define CLIENT_MAIN_H +#pragma once #include #include @@ -7,15 +6,6 @@ // -------------------------------------------------------------------------- // MENU Functionality -const float DATABUF_PING = 0; -#define DATABUF_CAPTURES (1*maxclients) -#define DATABUF_DEATHS (2*maxclients) -#define DATABUF_RETURNS (3*maxclients) - -#define DATABUF_NEXT (5*maxclients) - -void setpredraw(entity this, void(entity) pdfunc); - // -------------------------------------------------------------------------- // Onslaught @@ -95,11 +85,20 @@ entity teamslots[17]; // 17 teams (including "spectator team") .float eliminated; .void(entity) draw; +IntrusiveList g_drawables; +STATIC_INIT(g_drawables) { g_drawables = IL_NEW(); } .void(entity) draw2d; +IntrusiveList g_drawables_2d; +STATIC_INIT(g_drawables_2d) { g_drawables_2d = IL_NEW(); } .void(entity) entremove; float drawframetime; vector view_origin, view_forward, view_right, view_up; +IntrusiveList g_radarlinks; +STATIC_INIT(g_radarlinks) { g_radarlinks = IL_NEW(); } +IntrusiveList g_radaricons; +STATIC_INIT(g_radaricons) { g_radaricons = IL_NEW(); } + bool button_zoom; bool spectatorbutton_zoom; bool button_attack2; @@ -113,7 +112,9 @@ float warmup_stage; void Fog_Force(); -string getcommandkey(string text, string command); +string _getcommandkey(string text, string command, bool forcename); +#define getcommandkey(cmd_name, command) _getcommandkey(cmd_name, command, false) +#define getcommandkey_forcename(cmd_name, command) _getcommandkey(cmd_name, command, true) string vote_called_vote; float ready_waiting; @@ -153,4 +154,5 @@ float view_quality; int framecount; .float health; -#endif +float GetSpeedUnitFactor(int speed_unit); +string GetSpeedUnit(int speed_unit);