]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Whitelist some client cvar changes shown while playing as a listen server
authorMario <mario.mario@y7mail.com>
Sun, 26 Jan 2025 08:12:27 +0000 (08:12 +0000)
committerbones_was_here <bones_was_here@xonotic.au>
Sun, 26 Jan 2025 08:12:27 +0000 (08:12 +0000)
qcsrc/server/world.qc

index e0bfbe2289e9792b1bf60a328058d4323acb06c9..f9b627871590a9f501b7037e0dc6ef8851e32e4b 100644 (file)
@@ -207,6 +207,8 @@ void cvar_changes_init()
                BADPREFIX("v_");
                BADPREFIX("vid_");
                BADPREFIX("crosshair");
+               BADPREFIX("notification_");
+               BADPREFIX("prvm_");
                BADCVAR("mod_q3bsp_lightmapmergepower");
                BADCVAR("mod_q3bsp_nolightmaps");
                BADCVAR("fov");
@@ -215,6 +217,9 @@ void cvar_changes_init()
                BADCVAR("bgmvolume");
                BADCVAR("in_pitch_min");
                BADCVAR("in_pitch_max");
+               BADCVAR("bottomcolor");
+               BADCVAR("topcolor");
+               BADCVAR("playermodel");
 
                // private
                BADCVAR("developer");
@@ -324,6 +329,7 @@ void cvar_changes_init()
                BADCVAR("g_maplist_mostrecent");
                BADCVAR("sv_motd");
                BADCVAR("sv_termsofservice_url");
+               BADCVAR("sv_adminnick");
 
                v = cvar_string(k);
                d = cvar_defstring(k);
@@ -419,8 +425,6 @@ void cvar_changes_init()
                BADPREFIX("g_mod_");
                BADPREFIX("g_respawn_");
                BADPREFIX("net_");
-               BADPREFIX("notification_");
-               BADPREFIX("prvm_");
                BADPREFIX("skill_");
                BADPREFIX("sv_allow_");
                BADPREFIX("sv_cullentities_");
@@ -504,7 +508,6 @@ void cvar_changes_init()
                BADCVAR("rcon_restricted_commands");
                BADCVAR("rcon_restricted_password");
                BADCVAR("skill");
-               BADCVAR("sv_adminnick");
                BADCVAR("sv_autoscreenshot");
                BADCVAR("sv_autotaunt");
                BADCVAR("sv_curl_defaulturl");