X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fclient%2Fmain.qh;h=bd9ffe64c58967841650baf971d1ec65fbad948f;hb=c0d4211cc0400146d46a49e0e6e0218925eaaf48;hp=6788daad18d229f17499c3f7f38b425d839252d5;hpb=0e5d97682e9478c51d8033a3ab9624471da0579d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/main.qh b/qcsrc/client/main.qh index 6788daad1..8369a5ff2 100644 --- a/qcsrc/client/main.qh +++ b/qcsrc/client/main.qh @@ -1,5 +1,3 @@ -const string string_null; - // -------------------------------------------------------------------------- // MENU Functionality @@ -17,14 +15,6 @@ float menu_visible; var void() menu_show; var float(float bInputType, float nPrimary, float nSecondary) menu_action; -// -------------------------------------------------------------------------- -// CTF - -#ifdef CTF_EXAMPLE -void() ctf_menu_show; -string ctf_temp_1; -#endif - // -------------------------------------------------------------------------- // Onslaught @@ -48,16 +38,6 @@ float gametype; //.float ctf_state; //.float health; -// Constants -const float COLOR_TEAM_RED = 64; -const float COLOR_TEAM_BLUE = 208; - -const float COLOR_TEAM1 = 4; // red -const float COLOR_TEAM2 = 13; // blue -const float COLOR_TEAM3 = 12; // yellow -const float COLOR_TEAM4 = 9; // pink -const float COLOR_SPECTATOR = 1337; - #define FONT_DEFAULT 0 #define FONT_USER 8 @@ -86,8 +66,8 @@ string scores_label[MAX_SCORE]; float scores_flags[MAX_SCORE]; string teamscores_label[MAX_SCORE]; float teamscores_flags[MAX_SCORE]; -.float scores[MAX_SCORE]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(scores); -.float teamscores[MAX_TEAMSCORE]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(teamscores); +.float scores[MAX_SCORE]; +.float teamscores[MAX_TEAMSCORE]; #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER ) #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) ) @@ -117,6 +97,8 @@ float spectatorbutton_zoom; float button_attack2; float activeweapon; +float switchingweapon; +float switchweapon; float current_viewzoom; float zoomin_effect; float warmup_stage; @@ -129,10 +111,6 @@ float ready_waiting_for_me; float vote_waiting; float vote_waiting_for_me; -float previous_game_starttime; -entity restartAnnouncer; //a temporary entity which will play the countdown sounds 3, 2, 1 for the client -void restartAnnouncer_Think(); - float current_zoomfraction; float cs_project_is_b0rked; @@ -143,7 +121,8 @@ float chase_active_backup; float camera_roll; vector camera_direction; -void centerprint(string strMessage); +void centerprint_hud(string strMessage); +void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num); #define ALPHA_MIN_VISIBLE 0.003 @@ -166,3 +145,5 @@ float g_trueaim_minrange; entity entcs_receiver[255]; // 255 is the engine limit on maxclients float hud; +float view_quality; +float framecount;