VERC: Making a Territory Control Map Last edited 20 years ago2003-06-15 14:16:00 UTC

You are viewing an older revision of this wiki page. The current revision may be more detailed and up-to-date. Click here to see the current revision of this page.

This article was recovered from an archive and needs to be reviewed

  1. The formatting may be incorrect as it was automatically converted to WikiCode from HTML, it needs to be revised and reformatted
  2. Some information may be out of date as it was written before Half-Life was available on Steam
  3. After the article is re-formatted and updated for Steam HL, remove this notice
  4. Please do not remove the archive notice from the bottom of the article.
  5. Some archive articles are no longer useful, or they duplicate information from other tutorials and entity guides. In this case, delete the page after merging any relevant information into other pages. Contact an admin to delete a page.
This tutorial explains how to make a basic map where there are flags to capture. If one team captures (by touching) all the
flags, then that team wins. This is the most popular type of map, and is the style used by Caen, Flash, and Donner for example.

Besides the details on the entities required and how they work together, the tutorial also includes tips on making a balanced flag map, plus a simple example map (source included) to help you along.

Basic steps

  1. Place flags in your map where you wish them to be. Flags are
dod_control_point (Link: index.php?ent=dod_control_point&game=dod) entities. Set the "Group" attribute of the control points to be something like "myflags".
  1. Add a dod_score_ent (Link: index.php?ent=dod_score_ent&game=dod) to your map. Set it's attributes as follows...
Attribute Value Comments
Name axis_win This is the name of the entity. We'll need this so we can trigger it if the Axis wins by taking all flags.

For Team Axis This is the team that wins when this is triggered.
Points 10 This is how many points the Axis team get if they win the round by capturing all flags.

This entity will be triggered if the Axis team captures all the flags in the map.
  1. Add a second dod_score_ent (Link: index.php?ent=dod_score_ent&game=dod) and set it's attributes as follows...
Attribute Value Comments

Name allies_win This is the name of the entity. We'll need this so we can trigger it if the Allies wins by taking all flags.
For Team Allies This is the team that wins when this is triggered.
Points 10 This is how many points the Allied team get if they win the round by capturing all flags.

This entity will be triggered if the Allied team captures all the flags in the map.
  1. Add a single dod_control_point_master (Link: index.php?ent=dod_control_point_master&game=dod) . Set it's attributes as
follows...

Attribute Value Comments
Target when allies win allies_win Entities with this name will be triggered if all flags are captured by the Allies.
Target when axis wins axis_win Entities with this name will be triggered if all flags are captured by the Axis.

Group name myflags The same group name you gave all your conrol points.

How it works

When all the flags are captured by one team, it triggers the
dod_control_point_master , which in turn triggers the
appropriate dod_score_ent based on what team won. The
dod_score_ent triggers the end of the round.

Here is a screenshot from WorldCraft with some annotations to show
the basic flow of the entities involved...
| (Link: flagtut1.jpg)

When all flags are captured, the dod_control_point_master activates the appropriate dod_score_ent based on what team
has captured the flags.

Some notes on making a good and balanced flag map

You will want to think out just where you place your flags in your map. Well placed flags will be challenging, but not impossible to capture (or defend). Also well placed flags will not give one team an advantage over another. Here are some pointers and tips to making your flag map balanced.

What else can you do?

There are various tricks and other things you can try with flags to take a map beyond the normal "capture the flag" style. There is definitely some room for experimentation on the part of a creative mapper! Here are a few thoughts and ideas... also has a "Master" attribute.
If the master's state is OFF, then all flags in that control point
master's group will NOT be drawn nor be active. If the master is
ON, then the flags will be drawn and will be active. You could use this to have the flags change based on the state of a master (usually an env_state (Link: index.php?ent=env_state&game=dod) ) HUD for select flags. Some maps utilize "hidden" flags with preset
ownership to award points to a team over time. These flags should
not be visible on the HUD, as there is no way for a player to
actually capture them. default flag symbol. For simple flag captures, this probably won't be something you'd want to use. DoD comes with a number of symbols, including tanks, jeeps, bridges, etc. This might be useful especially for flags tied to dod_capture_area (Link: index.php?ent=dod_capture_area&game=dod) entities, it could be useful.

Example Map

This zip file (Link: flag_tut.zip) contains a complete mini-map with several
flags. You may download it and use it to learn how flags work.
This article was originally published on the Valve Editing Resource Collective (VERC).
TWHL only archives articles from defunct websites. For more information on TWHL's archiving efforts, please visit the TWHL Archiving Project page.

Comments

You must log in to post a comment. You can login or register a new account.