Maxplayers: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		 Warning:In
Warning:In  Counter-Strike: Global Offensive, maxplayers is deprecated. Set it in gamemodes_server.txt.example or use the launch option -maxplayers_override <number> instead.
 Counter-Strike: Global Offensive, maxplayers is deprecated. Set it in gamemodes_server.txt.example or use the launch option -maxplayers_override <number> instead.
 Warning:In
Warning:In  Counter-Strike 2, maxplayers_override  is deprecated. Use the launch option -maxplayers <number> instead.
 Counter-Strike 2, maxplayers_override  is deprecated. Use the launch option -maxplayers <number> instead.
 Note:In
Note:In  Source 2013 Singleplayer, maxplayers is hardcoded to 1.
 Source 2013 Singleplayer, maxplayers is hardcoded to 1.
		
	
|  (Add CS2 maxplayers) |  (Replaced depecrated console var template with This is a.) | ||
| Line 1: | Line 1: | ||
| {{ | {{This is a|engine=source|cvar|name=maxplayers}} | ||
| '''{{mono|maxplayers}}''' is a server [[console variable]] that determines the maximum number of [[player]]s that can join a game. It cannot be changed while a server is running. | '''{{mono|maxplayers}}''' is a server [[console variable]] that determines the maximum number of [[player]]s that can join a game. It cannot be changed while a server is running. | ||
Revision as of 10:10, 23 December 2023
maxplayers  is a   cvar  available in all  Source games.
maxplayers is a server console variable that determines the maximum number of players that can join a game. It cannot be changed while a server is running.
 Source games.
maxplayers is a server console variable that determines the maximum number of players that can join a game. It cannot be changed while a server is running.
The absolute player limit of Source is 255, though the number supported by most games is far lower. Usually the limit is 32.
 Warning:In
Warning:In  Counter-Strike: Global Offensive, maxplayers is deprecated. Set it in gamemodes_server.txt.example or use the launch option -maxplayers_override <number> instead.
 Counter-Strike: Global Offensive, maxplayers is deprecated. Set it in gamemodes_server.txt.example or use the launch option -maxplayers_override <number> instead.
 Warning:In
Warning:In  Counter-Strike 2, maxplayers_override  is deprecated. Use the launch option -maxplayers <number> instead.
 Counter-Strike 2, maxplayers_override  is deprecated. Use the launch option -maxplayers <number> instead.
 Note:In
Note:In  Source 2013 Singleplayer, maxplayers is hardcoded to 1.
 Source 2013 Singleplayer, maxplayers is hardcoded to 1.Usage
The engine can be put into single-player mode by setting maxplayers to 1 before a game starts. This bridges the normal client-server divide in several areas, eliminating latency and interpolation and opening backdoors like the one used by the inverse kinematics system.
The entity indices 1 to <maxplayers> are reserved for player entities (0 is worldspawn).
