#pragma once
+bool lockteams;
+
+// ========================== Global teams API ================================
+
/// \brief Returns the global team entity at the given index.
/// \param[in] index Index of the team.
/// \return Global team entity at the given index.
/// \return Global team entity that corresponds to the given TEAM_NUM value.
entity Team_GetTeam(int team_num);
+// ========================= Team specific API ================================
+
/// \brief Returns the score of the team.
/// \param[in] team_ Team entity.
/// \return Score of the team.
void LogTeamchange(float player_id, float team_number, float type);
+// ======================= Entity specific API ================================
+
void setcolor(entity this, int clr);
/// \brief Returns whether the given entity belongs to a valid team.
bool SetPlayerTeam(entity player, int destination_team_index,
int source_team_index, bool no_print);
+/// \brief Moves player to the specified team.
+/// \param[in,out] client Client to move.
+/// \param[in] team_index Index of the team.
+/// \param[in] type ???
+/// \return True on success, false otherwise.
+bool MoveToTeam(entity client, int team_index, float type);
+
/// \brief Kills player as a result of team change.
/// \param[in,out] player Player to kill.
void KillPlayerForTeamChange(entity player);