math counter to end round, and map

l3eeron

L8: Fancy Shmancy Member
Jan 4, 2008
593
88
I have a big piece of glass, that is a func_breakable. I want to end the round on break, and end the map after a team breaks the glass three times. I have never used a math_counter before but I'm assuming this is how it's done. If someone could tell me which game entities to end the round/map right it would be a huge help. Maybe just a list of necessary entities?

func_breakable to end round, which also adds 1 to math counter (one math_counter per team right?) then set the max to 3 and ouput on maxhit to game_end?

do I need one game_round_win per team? and one end_game per team? I'm pulling my hair out over here! D:
 

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
Is all you really need is to tell the glass to add 1 to the math_counter on break (edit: but don't forget to add a point for a defence as well). I'm not sure what other capture systems you have in place in your map?

My map works fine and has 2 round win entities (one for each team) Though i think red can just win on defence anyway? I can't remember, i just left it in after the last A/D setup i had (which was slightly different), since it still all works.

But basicly you seem to have the idea in what you've said already. It's your standard A/D map but with a twist of final objectives (it doesn't matter what happens before hand, it's the last point that triggers all the important stuff, the rest just unlock the last point etc).

You only need one game_end which will be triggered by which ever team gets the 3 game points first.
 
Last edited:

l3eeron

L8: Fancy Shmancy Member
Jan 4, 2008
593
88
I figured where the problem is, but I don't know how to fix it. I was hoping someone might have a solution....

I have the math_counter adding 1 every time the last cap is capped. But it never reaches my limit of 3 because every time the last cap is capped, the map restarts and everything respawns and the counter gets set back to 0. I know this is the problem because when I set the max to 1 everything works....

So, how do I restart the round without resetting the counter back to 0?
 

Zeewier

L9: Fashionable Member
Sep 20, 2008
619
262
I think you should add an extra cap thats not visable on HUD and Ingame (set the right flags and place it outside the map) it won't trigger the "Win" that way.

You could also try to make 3 possible rounds, that have the same settings (used cp's, spawnpoints ect.) So each round is the same and the map wont restart.