math counter to end round, and map

Discussion in 'Mapping Questions & Discussion' started by l3eeron, Oct 4, 2008.

  1. l3eeron

    l3eeron L8: Fancy Shmancy Member

    Messages:
    594
    Positive Ratings:
    85
    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:
     
  2. FaTony

    FaTony Banned

    Messages:
    902
    Positive Ratings:
    160
    Ummm there should be game_round_win. And math_counter has OutValue output.
     
    • Thanks Thanks x 1
  3. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,557
    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.
     
    • Thanks Thanks x 1
    Last edited: Oct 5, 2008
  4. l3eeron

    l3eeron L8: Fancy Shmancy Member

    Messages:
    594
    Positive Ratings:
    85
    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?
     
  5. FaTony

    FaTony Banned

    Messages:
    902
    Positive Ratings:
    160
    Sorry, this is admin mod only feature.
     
  6. Zeewier

    Zeewier L9: Fashionable Member

    Messages:
    619
    Positive Ratings:
    130
    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.
     
    • Thanks Thanks x 1