Talk:Team Fortress 2/Creating a Single Flag Keep-Away map

From Valve Developer Community
Jump to navigation Jump to search

I assume you know the basics so I'm just showing you the concept and creation of this type of gameplay. Here you will learn how to make a one flag map where you play a simple game of keep-away. I will assume you know what that is. In case you don't, it's where either everyone tries to keep an object (such as a ball) away from everyone else, or where there are teams involved. I think you get the idea.

No I don't. :-p --TomEdwards 03:42, 16 Mar 2008 (PDT)

I do. Thanks so much for this tutorial. A great game play idea well implemented.--Cheesemoo0 21:15, 20 Mar 2008 (PDT)


I have further improved this method, and also fixed the bugs. Instead of the forcerespawn, I have 3x game_round_win and 2x capture zone (both over whole level).


The first game_round_win (rfail) has team none (ie stalemate) and force restart=yes


The team_round_timer has the following outputs:

On1SecRemain capzone enable

OnFinish rfail RoundWin

OnFinish round_timer Resume (legacy may not be needed)

OnRoundStart capzone disable

OnSetupFinish flag Enable

OnSetupStart flag disable

(add doors if you wont I haven't yet. Use SetupStart and SetupFinish)


timer properties: Start paused:no, Setup timer: 25 (yes this works), reset on start: yes.


Now there is a game_round_win per team:

Name: rwin_(TEAMHERE)

Team: (TEAMHERE)

force map reset: yes


Both capture zones are called capzone and are enabled/disabled together. One for each team, so each have:

Name: capzone

Start disabled: yes

Team: (TEAMHERE)


With outputs:

OnCapture rwin_(TEAMHERE) RoundWin

OnCapture round_timer Pause (prevent stalemate race condition)

--Trevelyan 13:46, 31 Mar 2008 (PDT)

PS: Where can I get my map play tested? preferably on a UK server. PPS: What about the prefix ktf_... for keep the flag?