Difference between revisions of "Maxplayers"

From Valve Developer Community
Jump to: navigation, search
(Added TF2 maxplayers, also added the games symbols into the text)
Line 4: Line 4:
 
'''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.
 
'''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. The highest actual player limits are currently found in [[Garry's Mod]] (128) and [[Counter-Strike: Source]] (64).
+
The absolute player limit of Source is 255, though the number supported by most games is far lower. The highest actual player limits are currently found in {{Template:GMOD}}[[Garry's Mod]] (128), {{Template:Css}}[[Counter-Strike: Source]] (64) and {{Template:Tf2}}[[Team Fortress 2]] (32).
 +
 
  
 
== Usage ==
 
== Usage ==

Revision as of 09:48, 12 August 2020

Warning.png Warning: In Counter-Strike: Global Offensive, maxplayers is deprecated, set it in gamemodes_server.txt.example or use -maxplayers_override instead.

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. The highest actual player limits are currently found in <Garry's Mod>Garry's Mod (128), <Counter-Strike: Source>Counter-Strike: Source (64) and <Team Fortress 2>Team Fortress 2 (32).


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.

In the entity index, 1 to maxplayers is reserved for player entities (0 is worldspawn).