TEAMINFO

From ZDoom Wiki
Jump to: navigation, search

TEAMINFO allows a player to define custom teams for team deathmatch play mode. There is no limit of teams you can define meaning it's possible for you to define a wide and exciting variety of teams. The team number depends on their order of introduction in the lump -- by default, blue is 0, red is 1, green is two, and so on.

Syntax

clearteams // Optional
Team <Name>
{
        PlayerColor "RR GG BB"
        TextColor "Color"
        <other properties>
}

Commands

ClearTeams - Removes all predefined teams. Remember to place this before you define your own teams!

Team <name> - Start a team definition, to be contained within curly braces.

Properties

All these properties are valid within a team definition.

Name <string> - The name of your team to be defined, e.g, "Purple".

Game <keyword> - The game in which the team is defined. Valid values are "Any", "Chex", "Doom", "Heretic", "Hexen", "Raven" and "Strife".

PlayerColor <color> - In a hexadecimal format, this property defines the color of the player on said team, e.g, "FF 00 00".

TextColor <color> - The color of the players' name on the scoreboard, e.g, "RED".

Logo - The name of the logo drawn on the scoreboard. This feature is not supported by Skulltag.

AllowCustomPlayerColor - If present, this keyword enables players to use their own custom colors, instead of their team color.

Skulltag properties

Skulltag defines additional properties. They are silently ignored in ZDoom, and have no effect. They are, however, naturally supported by Skulltag's successor Zandronum.

RailColor <color> - In a hexadecimal format, the color of your team's railgun, e.g "FF 00 FF".

FlagItem <string> - The actor for your team's flag (in capture the flag).

SkullItem <string> - The actor for your team's Skull (in skulltag mode).

PlayerStartThingNumber <number> - The team start thing number.

SmallFlagHUDIcon <string> - This icon is shown on the screen next to the name of the player who is holding the flag.

SmallSkullHUDIcon <string> - This icon is shown on the screen next to the name of the player who is holding the skull.

LargeFlagHUDIcon <string> - The flag icon on the full screen HUD.

LargeSkullHUDIcon <string> - The skull icon on the full screen HUD.

WinnerPic <string> - The picture shown to members of the victorious team after a match.

LoserPic <string> - The picture shown to members of the defeated team after a match.

WinnerTheme <string> - The music played to members of the victorious team after a match.

LoserTheme <string> - The music played to members of the defeated team after a match.

Examples

Here are the defined teams in zdoom.pk3.

ClearTeams

Team "Blue"
{
	PlayerColor "00 00 FF"
	TextColor "Blue"
}

Team "Red"
{
	PlayerColor "FF 00 00"
	TextColor "Red"
}

Team "Green"
{
	PlayerColor "00 FF 00"
	TextColor "Green"
}

Team "Gold"
{
	PlayerColor "FF FF 00"
	TextColor "Gold"
}

Team "Black"
{
	PlayerColor "00 00 00"
	TextColor "Black"
}

Team "White"
{
	PlayerColor "FF FF FF"
	TextColor "White"
}

Team "Orange"
{
	PlayerColor "FF 80 00"
	TextColor "Orange"
}

Team "Purple"
{
	PlayerColor "FF 00 FF"
	TextColor "Purple"
}

Here's another example:

Team "Assassins"
{
       PlayerColor "FF 10 00"
       TextColor "DarkRed"
       Logo "ASSALOGO"
}