Teams winning based on total points scored per round

Discussion in 'Mapping Questions & Discussion' started by The Asylum, Mar 18, 2011.

  1. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    439
    So I'm sure you've been on a 2fort server before, with one that has an actual time limit on the round. I'm also sure you've been in this scenario before: Your team is winning the capture game 2-0, and you just need one more capture to win.

    All of a sudden, time runs out, and you hear "YOU FAILED!" and the chorus of boos.
    Why? Because the other team scored more points combined than your team's combined points that round.

    Now as it happens, I have a need to implement something like this into a map. What cvar wizardry do I need to include to do this?
     
  2. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    If SetStalemateOnTimelimit (parameter 1) has been sent to the gamerules, that will occur when mp_timelimit is up. It doesn't matter what game mode it is either, it will award the whole-game victory to the team with more points, except it's usually only used in CTF and 5 CP (since they don't have a built-in timer that will eventually end no matter what).
     
  3. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    439
    I'm trying that out now, with a logic_auto sending a SetStalemateOnTimeLimit 1 to a tf_gamerules, and a mp_timelimit 1 to a point_servercommand. I kill a bot and wait for time to run out.

    After mp_timelimit runs out, it stalemates instead of giving my "team" the win. What am I doing wrong here?
     
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    It goes by team points, not a total of personal points on each team.
     
  5. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    439
    Team points?

    You mean how many individual rounds a team won?
     
  6. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    In CTF, yes, usually. Team points is the number shown on the scoreboard header (which can be gained in any number of ways).
     
    • Thanks Thanks x 1
  7. Vincent

    aa Vincent 🔨 Grandmaster Lizard Wizard Jedi 🔨

    Messages:
    914
    Positive Ratings:
    581
    If you want to do it based on how many points an individual player has, that isn't possible.