Structs:Team

From ZDoom Wiki
Jump to navigation Jump to search

The Team struct stores info and functions pertaining to a Team in team deathmath netgames. Such as its' name.

Constants

  • NOTEAM
    Equals 255. If the teams' index is 255, then that means the player isn't in any team. (Verification needed)
  • MAX
    Equals 16. The max amount of teams GZDoom supports.

Variables

  • String mName
    The name of the team.

Methods

  • static bool IsValid(uint teamIndex)
    Returns true if the team is valid based on its' index.
  • Color GetPlayerColor(int Slot)
    Gets the player color assigned to the team through TEAMINFO.
  • int GetTextColor()
    Gets the text color assigned to the team. The color is returned as a CR_ value.
  • TextureID GetLogo()
    Returns the TextureID of the teams' logo.
  • String GetLogoName()
    Returns the texture name of the logo. (Verification needed)
  • bool AllowsCustomPlayerColor()
    Returns of this team allows member players to use their own player colors. Instead of forcing the team color on them.