![]() |
Nuclide
Software Development Kit for id Technology (BETA)
|
Team library.
Public Member Functions | |
| int | BestAutoJoinTeam (void) |
| Find out what the best choice of team it is to join. | |
| int | TeamCount (void) |
| Find out how many teams are registered in the current game. | |
| int | OpenTeamCount (void) |
| Find out how many teams are open to new players. | |
| vector | Color (int teamID) |
| Find out which color represents a team. | |
| string | Name (int teamID) |
| Find the name of a team, that you can use in prints and written text. | |
| int | Score (int teamID) |
| Find the current score of a team. | |
| string | SpawnPoint (int teamID) |
| Find the entity class name representing individual team spawn points. | |
| int | NumPlayers (int teamID) |
| Find out how many players are in an active team. | |
| int | NumAlivePlayers (int teamID) |
| Find out how many team players are active/alive in a match. | |
| int | NumDeadPlayers (int teamID) |
| Find out how many team players are currently inactive/dead in a match. | |
| int | TotalDeaths (int teamID) |
| Find out how many times all the players in a given team have 'died' in the game. | |
| int | TotalFrags (int teamID) |
| Find out how many times all the players in a given team have scored 'frags'. | |
| float | Valid (int teamID) |
| Find out if a given team exists, or valid. | |
| void | AddScore (int teamID, int addedScore) |
| Increases the score of a specified team. | |
| void | SetScore (int teamID, int scoreValue) |
| Overridess the score of a specified team. | |
| entity | RandomPlayer (int teamID) |
| Find a random player belonging to a given team. | |
| void | SetUp (int teamID, string teamTitle, vector teamColor, float openTeam) |
| Sets up a team for the current session. | |
| void | AddClass (int teamID, string classType) |
| Sets up a team class for the current session. | |
| int | TotalClasses (int teamID) |
| Find out how many classes are registered within a team. | |
| string | ClassForIndex (int teamID, int classIndex) |
| Find out the name of a team class given an index. | |
| void | SetSpawnPoint (int teamID, string spawnPointEntityClassname) |
| Sets up a team spawn point for the current session. | |
| void teamAPI_t::AddClass | ( | int | teamID, |
| string | classType ) |
Sets up a team class for the current session.
Making them available to choose in the team selection menu. You can have different classes per teams also.
| teamID | specifies which team slot to occupy. |
| classType | specifies the name of the player class. Used as an identifer in rules and menus. |
| void teamAPI_t::AddScore | ( | int | teamID, |
| int | addedScore ) |
Increases the score of a specified team.
| teamID | specifies the team to query. |
| addedScore | is the amount of points to add to the existing score. |
| int teamAPI_t::BestAutoJoinTeam | ( | void | ) |
Find out what the best choice of team it is to join.
| string teamAPI_t::ClassForIndex | ( | int | teamID, |
| int | classIndex ) |
Find out the name of a team class given an index.
| teamID | specifies which team slot to query for class types. |
| classIndex | specifies the index of the class to query. Use teams.TotalClasses() for the range. |
| vector teamAPI_t::Color | ( | int | teamID | ) |
Find out which color represents a team.
| teamID | specifies the team to query. |
| string teamAPI_t::Name | ( | int | teamID | ) |
Find the name of a team, that you can use in prints and written text.
| teamID | specifies the team to query. |
| int teamAPI_t::NumAlivePlayers | ( | int | teamID | ) |
Find out how many team players are active/alive in a match.
| teamID | specifies the team to query. |
| int teamAPI_t::NumDeadPlayers | ( | int | teamID | ) |
Find out how many team players are currently inactive/dead in a match.
| teamID | specifies the team to query. |
| int teamAPI_t::NumPlayers | ( | int | teamID | ) |
Find out how many players are in an active team.
| teamID | specifies the team to query. |
| int teamAPI_t::OpenTeamCount | ( | void | ) |
Find out how many teams are open to new players.
| entity teamAPI_t::RandomPlayer | ( | int | teamID | ) |
Find a random player belonging to a given team.
__NULL__ if one does not exist. | teamID | specifies the team to query. |
| int teamAPI_t::Score | ( | int | teamID | ) |
Find the current score of a team.
Usually tested against the cvar scorelimit.
| teamID | specifies the team to query. |
| void teamAPI_t::SetScore | ( | int | teamID, |
| int | scoreValue ) |
Overridess the score of a specified team.
| teamID | specifies the team to query. |
| scoreValue | is the value which the score should be set to. |
| void teamAPI_t::SetSpawnPoint | ( | int | teamID, |
| string | spawnPointEntityClassname ) |
Sets up a team spawn point for the current session.
Using this function you can override the default team spawn, such as info_player_deathmatch type entities - and reroute spawns for a specific team to a different class.
| teamID | specifies which team slot to occupy. |
| spawnPointEntityClassname | specifies the classname of this team's spawn point. |
| void teamAPI_t::SetUp | ( | int | teamID, |
| string | teamTitle, | ||
| vector | teamColor, | ||
| float | openTeam ) |
Sets up a team for the current session.
Will flush the team specific scores.
| teamID | specifies which team slot to occupy. |
| teamTitle | specifies the title of the team. |
| teamColor | specifies the color of the team (e.g. [0, 255, 0] for green). |
| openTeam | specifies whether players can join the team manually. |
| string teamAPI_t::SpawnPoint | ( | int | teamID | ) |
Find the entity class name representing individual team spawn points.
| teamID | specifies the team to query. |
| int teamAPI_t::TeamCount | ( | void | ) |
Find out how many teams are registered in the current game.
| int teamAPI_t::TotalClasses | ( | int | teamID | ) |
Find out how many classes are registered within a team.
| teamID | specifies which team slot to query for class types. |
| int teamAPI_t::TotalDeaths | ( | int | teamID | ) |
Find out how many times all the players in a given team have 'died' in the game.
| teamID | specifies the team to query. |
| int teamAPI_t::TotalFrags | ( | int | teamID | ) |
Find out how many times all the players in a given team have scored 'frags'.
A frag can be a 'kill' or just an alternative way of saying scorepoints, specific to players.
| teamID | specifies the team to query. |
| float teamAPI_t::Valid | ( | int | teamID | ) |
Find out if a given team exists, or valid.
Invalid teams should not be joined, and aren't offered on the client.
| teamID | specifies the team to query. |