Multiple Teams On CTF

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
The_Spartan
 
Posts: 79
Joined: Fri Oct 12, 2012 1:12 pm
Location: Italy
Contact:

Multiple Teams On CTF

#1

Post by The_Spartan » Sun Feb 02, 2014 1:22 pm

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?
Last edited by The_Spartan on Sun Feb 02, 2014 1:22 pm, edited 1 time in total.

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

RE: Multiple Teams On CTF

#2

Post by Torr Samaho » Sun Feb 02, 2014 1:38 pm

You need to increase sv_maxteams (default value is 2).

User avatar
The_Spartan
 
Posts: 79
Joined: Fri Oct 12, 2012 1:12 pm
Location: Italy
Contact:

RE: Multiple Teams On CTF

#3

Post by The_Spartan » Sun Feb 02, 2014 2:41 pm

Torr Samaho wrote: You need to increase sv_maxteams (default value is 2).
Thanks. That solved.

Post Reply