Preserving entities over rounds while still switching teams

Discussion in 'Mapping Questions & Discussion' started by bob+M|M+, Jan 29, 2012.

  1. bob+M|M+

    bob+M|M+ L6: Sharp Member

    Messages:
    348
    Positive Ratings:
    185
    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 (??)
     
  2. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    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.
     
    • Thanks Thanks x 1
  3. bob+M|M+

    bob+M|M+ L6: Sharp Member

    Messages:
    348
    Positive Ratings:
    185
    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.