[Tutorial] How to set up Territorial Control rules (like Hydro)

G

Gearloose

Hey guys, I've been silent for a while. I was working on my second map but realized I wanted to use Hydro-style rules, and I couldn't find any tutorials on how to make a TC map type. So I wrote my own, using the decompiled Hydro as a guide (thanks for those!).

http://www.cuug.ab.ca/~lapierrs/creative/games/tf2/tc_tutorial.html

It's a long read, I know, and probably a bit confusing - which is why I included a bare-bones example map that duplicates the Hydro rules, and even includes an example overview display showing which round is next.

Let me know if you spot any errors, or if you have trouble with the zip files - I don't have anyone to test them for me on an SDK-less install, so it's possible I left a file out or something. I only do net stuff in the evenings during the week, so turnaround time on comments will likely be at least 24 hours.
 

lerlerson

L2: Junior Member
Nov 27, 2007
75
7
While somewhat confusing, that tutorial... IS AWESOME. Finally, people can make TC maps that are professional like Valve's. Being able to do the overlay is good, 'specially for style points.

Nice tut!
 

TheBladeRoden

L420: High Member
Oct 26, 2007
491
168
A little bug in your map, the inputs on cap_trigger_D should have the parameters set to "2 0" and "2 1" instead of "3 0 and 3 1".
 
G

Gearloose

A little bug in your map, the inputs on cap_trigger_D should have the parameters set to "2 0" and "2 1" instead of "3 0 and 3 1".

Are you sure about that? I noticed that's the way it was set up in Hydro, but I thought it was an error - isn't the 3 a bit mask (1 | 2) that represents both teams? Both should be able to cap that point after a defense round.

Am I misinterpreting the meaning of those values?
 
G

Gearloose

A little bug in your map, the inputs on cap_trigger_D should have the parameters set to "2 0" and "2 1" instead of "3 0 and 3 1".


Ah yes, I see what you mean now. Somehow I missed that in my testing. Thanks!

Edit: Files now fixed.
 
Last edited by a moderator:

Vilepickle

Banned
Oct 25, 2007
372
199
Only thing that disappoints me is currently that custom maps will crash currently with about 1850+ entities. With all of them needed for this, we approach that much more rapidly and it gives less room for map details.
 
G

Gearloose

Only thing that disappoints me is currently that custom maps will crash currently with about 1850+ entities. With all of them needed for this, we approach that much more rapidly and it gives less room for map details.


I didn't know about that limitation - thanks, that will help with my current map design. :)
 

lerlerson

L2: Junior Member
Nov 27, 2007
75
7
Cool. Where do you live now? After having lived in five other provinces, I'm now back in Burnaby.

You live fairly close to me, actually. I live in Surrey, or more specifically, Cloverdale.

Kind of a small world, considering that there's only about 300 users registered here.