CTF round timing?

Discussion in 'Mapping Questions & Discussion' started by Nerdbot, Mar 30, 2009.

  1. Nerdbot

    Nerdbot L7: Fancy Member

    Messages:
    485
    Positive Ratings:
    124
    In the first version of my CTF map, the round timer would count down normally according to the server time. However, when the time reached 0:00, the map would not end properly and it'd just stay in limbo forever.

    I added in a team_round_timer or whatever to fix this, but that seems to have been a bad idea--the map now instead resets back to 30 minutes with every round. How do I get the map to end properly at 0:00 without resetting the 30 minute timer?
     
  2. Nerdbot

    Nerdbot L7: Fancy Member

    Messages:
    485
    Positive Ratings:
    124
    Wait. I just figured it out. game_round_win? Nevermind :<
     
    Last edited: Mar 30, 2009
  3. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    Remove the timer and roundwin. Add a logic_auto and tf_gamerules. On the logic auto do: OnMapSpawn > tf_gamerules > SetStalemateOnTimelimit > 1

    That forces the map to end when mp_timelimit is reached, the team with more points wins, if it is tied you get a stalemate.
     
    • Thanks Thanks x 1
  4. Nerdbot

    Nerdbot L7: Fancy Member

    Messages:
    485
    Positive Ratings:
    124
    Thank you very much! It works.