Teams

From DDraceNetwork
Revision as of 00:16, 11 June 2024 by Iza (talk | contribs) (I've added a new section to the "Teams" page, called "Team Colors". Which describes the calculations of the team colors and shows a graph of each teams color. (I dont have media perms))
This article is a Stub. You can help us by editing and improving it.


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 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-team 0) team.

Joining Teams

Joining and interacting with teams is done via chat commands. To enter these commands you have to either press T or ↵ Enter and use

  • /team <id>: joins team with id 0-63, when joining you are in the specially handled team 0
    • /team: when specifying no team to join the server simply outputs the current team to your chat
  • /lock: toggles lock state, default is unlocked
    • /lock 1: always locks the team
    • /lock 0 or /unlock: always unlocks the team
  • /invite player_name: Invites a player into your team, allowing them to join even when the team is locked.

Binds

  • To speed up joining dummy maps: TODO

Team size

The most members a single team can have is equal to 64. 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 MAX_CLIENTS.

The largest team finish, with 64 tees, was done on "Gold Mine" in 2019-08-22 09:59:58 UTC[1].

Maps requiring more than two players

Three players

Four players

  • Insane ★✰✰✰✰ 4q
  • Insane ★★★✰✰ 4u
  • Insane ★★★★✰ 4k

Five players

Ten players

New teamrank system

https://ddnet.org/news/new-rank-team-rank-calculation/

Locking and restarting

Locking a team prevents its current players from leaving it when dying. It also makes it so that all players in the team are killed if 1 member dies.

A team can be locked and unlocked using the chat command /lock

Team 0

It's the default team a player gets upon joining a server. Finishing in this team will grant a rank but not a team rank, as such requires you to be in a proper team.

Team 0 cannot be locked.

Config variables

Team Colors

Each team (1-63) has its own color, these colors are calculated by multiplying the team index with the golden angle (~137.50776°) and taking the modulo 360° of that.

Due to the properties of the golden angle, this can generate never repeating sequences of unique colors where the adjacent colors are very distinct.


Here is a graph which depicts all teams corresponding to their colors:

[Image (i dont have media perms)]