More than 3 CTF points

Neojonus

L1: Registered
Aug 6, 2011
1
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?
 
Oct 6, 2008
1,947
445
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
 

lana

Currently On: ?????
aa
Sep 28, 2009
3,075
2,778
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.
 
T

The Asylum

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
 

Wander

L3: Member
Sep 16, 2010
148
55
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

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