Results 1 to 2 of 2

Thread: Round end, timers, map limits.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    avy's Avatar



    Join Date
    Dec 06, 2007
    Last Online
    Jul 14, 2011
    Posts
    579
    Threads
    16



    Round end, timers, map limits.


    DF, I know that Biggs has talked to you about this before but I thought I would bring it before the community to see what they think.

    On certain custom maps (ie. cp_orange_x) there is no real defined timelimit. You can literally play for hours on end with no hope of the map changing. I've researched the problem a little but there doesnt seem to be a whole lot of information on it. There are a few ideas that popped up in odd places about the map not having some sort of point/roundtime tracking entity on the map or no clear goal defined in the map (one that triggers a round end).

    I was wondering if there was some sort of code that could be implemented for custom maps such as this that would FORCE the map to change when mp_timelimit expired. It might even force a timer into the map without editing the map file (something akin to the objective timers in dustbowl, hydro etc.)

  2. #2
    Drunken F00l's Avatar



    Join Date
    Dec 11, 2004
    Last Online
    Jun 11, 2019
    Posts
    5,874
    Threads
    182
    Reputation
    SourceOP Thread


        
    Steam: 76561197968459473 
    Steam join date: Aug 23, 2004
    Steam Level: 56
    Profile Status: Public



    Yes, this is possible with code. Something like:

    if timeremaining < 0 && forceMapSwitchCvar == on then
    go to next map

    Would be just as easy to do in code.

    Then for problem maps, you can make a cfg file (e.g. cp_orange_x.cfg) that sets the force map switch cvar to on.

Tags for this Thread