Page 1 of 1

Multiple Teams On CTF

Posted: Sun Feb 02, 2014 1:22 pm
by The_Spartan
Hi guys i'm creating a mod that would include multiple classes and more than 2 teams to choose in a CTF. So I created a TEAMINFO lump, and put this code:
ClearTeams

Team "Blue"
{
PlayerColor "00 00 BF"
TextColor "Blue"
RailColor "00 00 FF"

FlagItem "BlueFlag"
SkullItem "BlueSkullST"

PlayerStartThingNumber 5080
SmallFlagHUDIcon "STFLA1"
SmallSkullHUDIcon "STKEYS3"
LargeFlagHUDIcon "BFLASMAL"
LargeSkullHUDIcon "BSKUA0"
}

Team "Red"
{
PlayerColor "BF 00 00"
TextColor "Red"
RailColor "FF 00 00"

FlagItem "RedFlag"
SkullItem "RedSkullST"

PlayerStartThingNumber 5081
SmallFlagHUDIcon "STFLA2"
SmallSkullHUDIcon "STKEYS5"
LargeFlagHUDIcon "RFLASMAL"
LargeSkullHUDIcon "RSKUA0"
}

Team "Yellow"
{
PlayerColor "FF FF 00"
TextColor "Yellow"
RailColor "FF FF 00"

FlagItem "YellowFlag"
SkullItem "YellowSkullST"

PlayerStartThingNumber 5084
SmallFlagHUDIcon "STFLA2"
SmallSkullHUDIcon "STKEYS5"
LargeFlagHUDIcon "YFLASMAL"
LargeSkullHUDIcon "YSKUA0"
}

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

FlagItem "GreenFlag"
SkullItem "GreenSkullST"

PlayerStartThingNumber 5083
SmallFlagHUDIcon "STFLA2"
SmallSkullHUDIcon "STKEYS5"
LargeFlagHUDIcon "GFLASMAL"
LargeSkullHUDIcon "GSKUA0"
}
But when I join the game, it tells me to choose the class first and then it asks me for the team i wanna choose, and there I can choose only between the first two teams i defined in TEAMINFO (in this case red and blue).

All I want is to choose between all four teams. Any idea?

RE: Multiple Teams On CTF

Posted: Sun Feb 02, 2014 1:38 pm
by Torr Samaho
You need to increase sv_maxteams (default value is 2).

RE: Multiple Teams On CTF

Posted: Sun Feb 02, 2014 2:41 pm
by The_Spartan
Torr Samaho wrote: You need to increase sv_maxteams (default value is 2).
Thanks. That solved.