[Solved]How to team base a win in a payload map based con cap points controlled?

Oct 6, 2008
1,947
445
I'm making a tug of war map and want blue or red to win based upon the number of points they have captured throughout the tugging. i.e. if blue has captured 4 points and red only 1 then the win would go to the blue team (4:1) instead of the current stalemate system I have in place < since no one team has pushed the cart right to the end for an absolute victory.

If one team should push all the way to the end then they would win regardless of the above.

Next and this is only a bonus thing - is there a way I could have this displayed onscreen as a scoreboard type of thing?
 

Idolon

they/them
aa
Feb 7, 2008
2,105
6,106
Maintain a math_counter for each team and Add 1 every time they capture a point. Use a logic_compare to determine which number is higher at the end of the round and then use game_round_win to force a win for one team or the other.

I'm not sure about how to display this on the screen other than a logic_case and an array of game_texts, which is a bit sloppy.
 

puxorb

L69: Emoticon
aa
Dec 15, 2013
531
798
Make sure to use GetValue on the math_counters as well or its going to cause a headache when you can't figure out why its not working! (Speaking from experience)
 
Oct 6, 2008
1,947
445
Thanks for the info guys but I just remembered another piece of game logic (already built in) that prevents me from doing this.