]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reduce verbosity of most logging operations and fix some cvars not being defined...
authorMario <mario.mario@y7mail.com>
Wed, 23 Sep 2020 14:06:05 +0000 (00:06 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 23 Sep 2020 14:06:05 +0000 (00:06 +1000)
qcsrc/common/playerstats.qc
qcsrc/common/weapons/all.qh
qcsrc/lib/log.qh
xonotic-client.cfg

index 0202adb1dad10ccf9346176861585a8b297b65f0..28d6ccf4ce8acfa434105396cbe92fa2fbecf123 100644 (file)
@@ -458,7 +458,7 @@ void PlayerStats_PlayerBasic(entity joiningplayer, float newrequest)
 
                        // now request the information
                        uri = strcat(uri, "/player/", uri_escape(uri_escape(uri_escape(joiningplayer.crypto_idfp))), "/elo.txt");
-                       LOG_TRACE("Retrieving playerstats from URL: ", uri);
+                       LOG_DEBUG("Retrieving playerstats from URL: ", uri);
                        url_single_fopen(
                                uri,
                                FILE_APPEND,
@@ -593,8 +593,8 @@ void PlayerStats_PlayerBasic_Handler(entity fh, entity p, float status)
                         gt = data;
                         break;
                     case "e":
-                        LOG_TRACE("G: ", gt);
-                        LOG_TRACE("e: ", data);
+                        //LOG_TRACE("G: ", gt);
+                        //LOG_TRACE("e: ", data);
                         if (gt == PlayerStats_GetGametype()) {
                             handled = true;
                             float e = stof(data);
index f98152aa8b8b1838245d80de623c8c6346a44bd6..2a7ed0bebbc46a8764d35722b3b0a4cce05d70b0 100644 (file)
@@ -329,7 +329,7 @@ STATIC_INIT(register_weapons_done)
         else
                inaccessible = strcat(inaccessible, "\n", it.netname);
     });
-    if (inaccessible) LOG_TRACEF("Impulse limit exceeded, weapon(s) will not be directly accessible: %s", inaccessible);
+    if (inaccessible && autocvar_developer > 0) LOG_TRACEF("Impulse limit exceeded, weapon(s) will not be directly accessible: %s", inaccessible);
     #ifdef CSQC
     FOREACH(Weapons, true, it.wr_init(it));
     #endif
index 01ce44408cfead3fa0fae87b027b9d111d9ced95..59bb70dd390c5e10436a0db7153d4c44eac71bc9 100644 (file)
@@ -51,7 +51,8 @@ string(string, string...) strcat1n = #115;
 #define _LOG_HEADER(level) "^9[::^7"PROGNAME"^9::"level"^9] ", __SOURCELOC__
 #define _LOG(f, level, s) \
        MACRO_BEGIN \
-               f(strcat1n(_LOG_HEADER(level), "\n^7", s, "\n")); \
+               if (autocvar_developer > 0) f(strcat1n(_LOG_HEADER(level), "\n")); \
+               f(strcat1n("^7", s, "\n")); \
        MACRO_END
 
 #define  LOG_FATAL(...) _LOG_FATAL(strcat1n(__VA_ARGS__))
@@ -70,7 +71,7 @@ string(string, string...) strcat1n = #115;
 #define  LOG_INFOF(...) _LOG_INFO(sprintf(__VA_ARGS__))
 #define _LOG_INFO(s) \
        MACRO_BEGIN \
-               dprint(_LOG_HEADER("^5INFO")); \
+               if (autocvar_developer > 1) dprint(_LOG_HEADER("^5INFO")); \
                string __s = s; \
                print("\n^7", __s); \
                /* TODO: unconditionally add a newline when possible */ \
index e39a892fb28d4ef9d7ea5d6a46e8d49af56c40c0..ac5212408fc613a0f192a7fea3bb9c2da846a8cf 100644 (file)
@@ -233,6 +233,8 @@ set cl_deathglow_min 0.5 "glow out up to this glow factor"
 
 set cl_respawn_ghosts_keepcolors 0 "if enabled respawn ghosts keep body colors"
 
+set _teams_available 0 "internal cvar, value is synced from the server to reflect currently available teams to join"
+
 cl_movement 1
 cl_movement_track_canjump 0
 cl_stairsmoothspeed 200
@@ -721,6 +723,11 @@ alias _gunalign_13 "cl_gunalign 4"
 alias _gunalign_14 "cl_gunalign 3"
 alias _gunalign_update "_gunalign_$v_flipped$menu_cl_gunalign"
 
+set cl_shootfromfixedorigin "" "dummy cvar, value is synced from the server's g_shootfromfixedorigin setting"
+
+set cl_jumpspeedcap_min "" "dummy cvar, value is synced from the server's sv_jumpspeedcap_min setting"
+set cl_jumpspeedcap_max "" "dummy cvar, value is synced from the server's sv_jumpspeedcap_max setting"
+
 set _menu_alpha "" // will be set by menu QC to the current fading of the menu, can be used by CSQC to fade items
 set _menu_initialized 0 "is 0 on first menu loading, 1 later"
 
@@ -859,13 +866,27 @@ seta cl_items_nofade 0
 seta cl_animate_items 1
 seta cl_ghost_items 0.45 "enable ghosted items (when between 0 and 1, overrides the alpha value)"
 seta cl_ghost_items_color "-1 -1 -1" "color of ghosted items (colormod format: 0 0 0 leaves the color unchanged, negative values allowed)"
+seta cl_ghost_items_vehicle 1 "show ghosted items when inside a vehicle even when the item is available, to indicate that it can't be picked up"
 seta cl_simple_items 0 "enable simple items (if server allows)"
 set cl_simpleitems_postfix "_luma" "posfix to add fo model name when simple items are enabled"
 set cl_weapon_stay_color "2 0.5 0.5" "Color of picked up weapons when g_weapon_stay > 0 (colormod format: 0 0 0 leaves the color unchanged, negative values allowed)"
 set cl_weapon_stay_alpha 0.75 "Alpha of picked up weapons when g_weapon_stay > 0"
 
+seta cl_arcbeam_simple 1 "use a simplified beam for the Arc instead of accurate flexible poly drawing (improves performance and visuals slightly)"
+seta cl_arcbeam_teamcolor 1 "color the Arc beam based on the player's colors"
+
+seta cl_grapplehook_alpha 1 "opacity of the grappling hook chain"
+
+seta cl_vaporizerbeam_particle 0 "use a legacy particle effect for the vaporizer beam instead of a rendered poly, may not reflect accurate colors"
+seta cl_vaporizerbeam_lifetime 0.8 "time it takes for the vaporizer beam to fade completely"
+seta cl_vaporizerbeam_colorboost 0.7 "saturation of the vaporizer beam's color based on the player color"
+
 seta cl_showspectators 0 "Show who's spectating you if server has sv_showspectators enabled"
 
+set cl_useenginerefdef 0
+
+set cl_rollkillspeed 10
+
 // Facility for config.cfg use ONLY.
 // Interpreted in post-config.cfg.
 seta menu_forced_saved_cvars "" "These cvars will always be saved, despite engine/Xonotic cvar saving status"