Preserving entities over rounds while still switching teams

bob+M|M+

L6: Sharp Member
Mar 31, 2008
346
394
working on a strange entity setup, and it's not too easy to figure out. :confused:

I'm going for 2 rounds per game. 1st round red scores x times, and a math_counter keeps track of the #. Then 2nd round I want to switch the teams, preserve the math_counter from the previous round, and then based on how many points new red team scores, the winner will be decided on who accumulated more points/the biggest #.

so my trouble areas are:
#1: teamswitching between rounds (is this possible?)
#2: entities being preserved through rounds (??)
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,670
You'll need to actually use round entities like for multi-stage maps, and have a gander at game_forcerespawn for the switching. I recall advising Mangy on something like this for one of his maps, if you can find him to poke.
 

bob+M|M+

L6: Sharp Member
Mar 31, 2008
346
394
Thanks. Set it up as a multi-stage map with invisible team_control_points and that did the job!

The key settings were in the game_round_win "Force map reset" = no and "Switch teams on map win?" = yes which allowed me to switch teams in between rounds, while still continuing the map and preserving the entities.

then used another game_round_win with "Force map reset" = yes for the second round which restarts the whole thing.