Not two, but four teams?
Well I have an HL2 DM codebase, converted to TDM.
Now that I want to have 4 teams (by sets of two - A vs B, C vs D), while I have now only 2.
How can I have it like, the map has a certain parameter, say map_teams, whose existance decides whether it's A vs B or C vs D which battle in that map. Then, when I join the server, based on the parameter, gives either of the team-menus (say, resource/ui/tm1.res and ...../tm2.res). Also, all the team-switching functions would account for this parameter.
Sounds very messy, but the main question is - how can I have 4 teams and how can I make a map parameter that decides whether A vs B or C vs D are going to fight? Also, how I'm going to access this parameter in the source code?
Now that I want to have 4 teams (by sets of two - A vs B, C vs D), while I have now only 2.
How can I have it like, the map has a certain parameter, say map_teams, whose existance decides whether it's A vs B or C vs D which battle in that map. Then, when I join the server, based on the parameter, gives either of the team-menus (say, resource/ui/tm1.res and ...../tm2.res). Also, all the team-switching functions would account for this parameter.
Sounds very messy, but the main question is - how can I have 4 teams and how can I make a map parameter that decides whether A vs B or C vs D are going to fight? Also, how I'm going to access this parameter in the source code?