More than 3 CTF points

Discussion in 'Mapping Questions & Discussion' started by Neojonus, Aug 6, 2011.

  1. Neojonus

    Neojonus L1: Registered

    Messages:
    1
    Positive Ratings:
    0
    Hello, I am making a CTF map, and in short, I need to extend the amount of points required for winning a round. As you (hopefully) know, the default is 3, and I need it to be about 20.

    How would I go about doing this?
     
  2. Kill_the_Bug

    Kill_the_Bug L14: Epic Member

    Messages:
    1,473
    Positive Ratings:
    240
    Off the top of my head I would say that you have to enable/disable the points as you go along.

    point one disabled on capture - point two enabled, etc
     
  3. SPHinx

    SPHinx L2: Junior Member

    Messages:
    81
    Positive Ratings:
    24
    Isn't this just a server variable?
     
  4. gamemaster1996

    gamemaster1996 L13: Stunning Member

    Messages:
    1,065
    Positive Ratings:
    131
    Yes it is I think either that or there's a option on the flag to increase it.
     
  5. Lancey

    aa Lancey Currently On: ?????

    Messages:
    3,076
    Positive Ratings:
    1,314
    I'm not sure, but I think having this entity in your map will prevent the server variable from counting. However, that'll force your HUD into hybrid mode.
     
  6. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    439
    To alter the capture limit in-map, you'll need two entities: logic_auto and point_servercommand

    logic_auto
    OnMapSpawn
    (your point_servercommand)
    Command
    tf_caps_per_round
    (whatever number you want, 0 for no limit)

    I don't think this will affect other CTF maps, but it might. point_servercommands are shady when it comes to permanently altering a server's cvars
     
  7. Wander

    Wander L3: Member

    Messages:
    148
    Positive Ratings:
    42
    unfortunately it does, i once tried to set the ctf limit to 4 using the point_servercommand, and every following ctf map would also have 4


    There are multiple intel gamemodes though, you can see a list at http://developer.valvesoftware.com/wiki/TF2/Flag_Game_Types
    You can try them all out, maybe one of them ignores the server cvar

    Some of them give team scores instead of flag scores (team score is that one that says in the scoreboard how many times a team won a round)
    You can fix that by adding an OnCapTeam output to the capture zones, point it to the tf_gamerules and send AddRed/BlueTeamScore with -1