source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

[TF2] Add FCVAR_SERVER_CANNOT_QUERY to cl_disablehtmlmotd

Open megascatterbomb opened this issue 6 days ago • 6 comments

Updates cl_disablehtmlmotd by adding the FCVAR_SERVER_CANNOT_QUERY flag to prevent community servers from "nagging" for it to be enabled.

Originally I proposed disabling the cvar outright by adding dev only, however the discussion below made it clear that several other useful features rely on html motds. This updated proposal will hopefully serve as an acceptable compromise.

Original Proposal Also requires removing/commenting out this option in `user_default.scr` (outside this repo):
// To be removed from user_default.scr L601-L607
	"cl_disablehtmlmotd"
	{
		"#Valve_DisableHTMLMOTD"
		"#Tooltip_DisableHTMLMOTD"
		{ BOOL }
		{ "0" }
	}

This PR proposes changing cl_disablehtmlmotd to a dev-only cvar forced to 1, preventing forced advertising within community servers.

In practice, HTML Motds are slow to load, and are used for two purposes:

  • Communicating server info like the rules (which can be done with a non-html motd).
  • Advertising to players.

Even when users have set cl_disablehtmlmotd 1, they are often nagged to revert this cvar. For this reason, I believe just changing the cvar's default to 1 is insufficient; the dev-only flag is required to dissuade this practice entirely.

Example of advertising with HTML Motd:

image

Examples of nags:

image

Screenshot 2025-02-20 230751

megascatterbomb avatar Feb 21 '25 02:02 megascatterbomb