X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fteamplay.qh;h=06787c6ffa06c72ec593b4429560949c99e74996;hb=5dc828e3b59c65f75c870d4a57e34c023cdbdb86;hp=33f9d02d7e6b01da87c6dd86e6217b3ab546aa95;hpb=958d2ae389ca20ed9ff65ff4f8253f4388edc3fc;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/teamplay.qh b/qcsrc/server/teamplay.qh index 33f9d02d7..06787c6ff 100644 --- a/qcsrc/server/teamplay.qh +++ b/qcsrc/server/teamplay.qh @@ -8,10 +8,16 @@ bool autocvar_teamplay_lockonrestart; bool autocvar_g_balance_teams; bool autocvar_g_balance_teams_prevent_imbalance; +string autocvar_g_forced_team_otherwise; + bool lockteams; +.int team_forced; // can be a team number to force a team, or 0 for default action, or -1 for forced spectator + // ========================== Global teams API ================================ +void Team_InitTeams(); + /// \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. @@ -319,8 +325,8 @@ int TeamBalanceTeam_GetNumberOfBots(entity team_ent); int TeamBalance_CompareTeamsInternal(entity team_a, entity team_index_b, entity player, bool use_score); -/// \brief Called when the player connects or when they change their color with -/// the "color" command. +/// \brief Called when the player changes color with the "color" command. +/// Note that the "color" command is always called early on player connection /// \param[in,out] player Player that requested a new color. /// \param[in] new_color Requested color. void SV_ChangeTeam(entity player, int new_color);