{{Stub}}
DDNet allows players to play maps in '''''teams''''' with friends without interacting with the rest of the server. All teams are numbered and there are 63 teams available from team 1 to team 63. When joining a server everyone is in team 0 (also called [[Common Terminology#Acronyms|t0]]) by default and can interact with everyone else in team 0. Some map types like in the Dummy Server category, where you have to play with your [[dummy]] require you to join a (non-team0) team.
==Joining Teams==
Joining and interacting with teams is done via chat commands. To enter these commands you have to either press {{Key press|T}} or {{Key press|Enter}} and use
* <code>/team <id></code>: joins team with id 0-63, when joining you are in the specially handled team 0
**<code>/team</code>: when specifying no team to join the server simply outputs the current team to your chat
* <code>/lock</code>: toggles lock state, default is unlocked
** <code>/lock 1</code>: always locks the team
** <code>/lock 0</code> or <code>/unlock</code>: always unlocks the team
* <code>/invite player_name</code>: Invites a player into your team, allowing them to join even when the team is locked.
===Binds===
* To speed up joining dummy maps: TODO
==Projectiles==
Projectiles are always in the same team as the tee that spawned it. So when a player switches teams, the projectile switches with the tee.
==Team size==
The most members a single team can have is equal to <code>64</code>. The same number can be seen getting used for the player slots of a single server. This is a limitation set by the codebase and is referred to as <code>MAX_CLIENTS</code>.
Thanks to the database instance we can tell that a team rank with the magical member count of 64 indeed was set. Surprisingly it wasn't done on [https://ddnet.org/maps/Multeasymap/ "Multeasymap"] (2022) as you might have expected, but on [https://ddnet.org/maps/Gold-32-Mine/ "Gold Mine"] dating as far back as 22nd August 2019. That team was initiated by a player named "Nooback". [[https://ddstats.org/ddnet-ffbfefd?sql=SELECT+*%2C+COUNT%28*%29+AS+%27Player+Count%27+FROM+teamrace%0D%0AGROUP+BY+ID%0D%0AORDER+BY+COUNT%28*%29+DESC Source]]
==Maps for three players==
==Maps for four players==
==New teamrank system==
https://ddnet.org/news/new-rank-team-rank-calculation/
==Locking and restarting==
==Team 0==
==Config variables==
(edited){{Stub}}
DDNet allows players to play maps in '''''teams''''' with friends without interacting with the rest of the server. All teams are numbered and there are 63 teams available from team 1 to team 63. When joining a server everyone is in team 0 (also called [[Common Terminology#Acronyms|t0]]) by default and can interact with everyone else in team 0. Some map types like in the Dummy Server category, where you have to play with your [[dummy]] require you to join a (non-team0) team.
==Joining Teams==
Joining and interacting with teams is done via chat commands. To enter these commands you have to either press {{Key press|T}} or {{Key press|Enter}} and use
* <code>/team <id></code>: joins team with id 0-63, when joining you are in the specially handled team 0
**<code>/team</code>: when specifying no team to join the server simply outputs the current team to your chat
* <code>/lock</code>: toggles lock state, default is unlocked
** <code>/lock 1</code>: always locks the team
** <code>/lock 0</code> or <code>/unlock</code>: always unlocks the team
* <code>/invite player_name</code>: Invites a player into your team, allowing them to join even when the team is locked.
===Binds===
* To speed up joining dummy maps: TODO
==Projectiles==
Projectiles are always in the same team as the tee that spawned it. So when a player switches teams, the projectile switches with the tee.
==Team size==
The most members a single team can have is equal to <code>64</code>. The same number can be seen getting used for the player slots of a single server. This is a limitation set by the codebase and is referred to as <code>MAX_CLIENTS</code>.
Thanks to the database instance we can tell that a team rank with the magical member count of 64 indeed was set. Surprisingly it wasn't done on [https://ddnet.org/maps/Multeasymap/ "Multeasymap"] (2022) as you might have expected, but on [https://ddnet.org/maps/Gold-32-Mine/ "Gold Mine"] dating as far back as 22nd August 2019. That team was initiated by a player named "Nooback". [[https://ddstats.org/ddnet-ffbfefd?sql=SELECT+*%2C+COUNT%28*%29+AS+%27Player+Count%27+FROM+teamrace%0D%0AGROUP+BY+ID%0D%0AORDER+BY+COUNT%28*%29+DESC Source]]
==Maps for three players==
==Maps for four players==
==New teamrank system==
https://ddnet.org/news/new-rank-team-rank-calculation/
==Locking and restarting==
==Team 0==
==Config variables==
(edited)