Teams winning based on total points scored per round

T

The Asylum

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?
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,670
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).
 
T

The Asylum

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?