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

Discussion in 'Mapping Questions & Discussion' started by Kill_the_Bug, Sep 8, 2019.

  1. Kill_the_Bug

    aa Kill_the_Bug

    Messages:
    1,699
    Positive Ratings:
    351
    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?
     
  2. Idolon

    aa Idolon the worst admin

    Messages:
    1,767
    Positive Ratings:
    5,318
    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.
     
  3. puxorb

    aa puxorb L69: Emoticon

    Messages:
    474
    Positive Ratings:
    699
    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)
     
  4. Kill_the_Bug

    aa Kill_the_Bug

    Messages:
    1,699
    Positive Ratings:
    351
    Thanks for the info guys but I just remembered another piece of game logic (already built in) that prevents me from doing this.