X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fmain.qh;h=784ecb9c99edf37d308a6e3aa14e8a9cc74d2e3b;hb=c05104bde1e758c4022f9755f02f177aa0476134;hp=8a0e78a0d8126fa7fa78fcca829a5c2af1b1f411;hpb=e044c33d2e56a13837659b0cdb0ac9a2e6242957;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/main.qh b/qcsrc/client/main.qh index 8a0e78a0d..784ecb9c9 100644 --- a/qcsrc/client/main.qh +++ b/qcsrc/client/main.qh @@ -11,16 +11,12 @@ string minimapname; bool postinit; entity gametype; +// temporary hack +#define ISGAMETYPE(NAME) (gametype == MAPINFO_TYPE_##NAME) float FONT_USER = 8; -vector OFFSET_CURSOR = '0 0 0'; -vector SIZE_CURSOR = '32 32 0'; -void draw_cursor(vector pos, vector ofs, string img, vector col, float a); -void draw_cursor_normal(vector pos, vector col, float a); -void LoadMenuSkinValues(); - void PostInit(); void Ent_Remove(entity this); @@ -43,20 +39,25 @@ entity teamslots[17]; // 17 teams (including "spectator team") .bool ready; .bool 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(); } +IntrusiveList g_radarlinks; +IntrusiveList g_radaricons; +STATIC_INIT(main) +{ + g_drawables = IL_NEW(); + g_drawables_2d = IL_NEW(); + g_radarlinks = IL_NEW(); + g_radaricons = IL_NEW(); +} + +.void(entity) draw; +.void(entity) draw2d; .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(); } +.float renderflags; // engine field bool button_zoom; bool spectatorbutton_zoom; @@ -89,10 +90,6 @@ float chase_active_backup; float camera_roll; vector camera_direction; -void centerprint_hud(string strMessage); -void centerprint_kill(float id); -void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num); - const float ALPHA_MIN_VISIBLE = 0.003; float armorblockpercent; @@ -118,3 +115,35 @@ int framecount; float GetSpeedUnitFactor(int speed_unit); string GetSpeedUnit(int speed_unit); + +.int enttype; // entity type sent from server +.int sv_entnum; // entity number sent from server + +.int team; +.int team_size; + +int binddb; + +// Spectating +// -1 - observing +// 0 - playing +// >0 - id of spectated player +float spectatee_status; +float spectatee_status_changed_time; + +#define player_currententnum (spectatee_status > 0 ? spectatee_status : player_localnum + 1) + +// short mapname +string shortmapname; + +// database for misc stuff +int tempdb; +int ClientProgsDB; +vector hook_shotorigin[4]; // WEAPONTODO +vector lightning_shotorigin[4]; // TODO: unused + +float serverprevtime, serverdeltatime; + +float ticrate; + +int serverflags;