TF2/Setting the cap point layout: Difference between revisions

From Valve Developer Community
< TF2
Jump to navigation Jump to search
(alternate layout idea)
(hmmm)
Line 1: Line 1:
'''From the Hammer editor:''' Cap Layout, A string that tells the HUD how to lay out the cap points. It should be a string with indexes of cap points seperated by commas to denote a new line. So <2,0 1> would create a pyramid, with cap point 2 on the top and cap points 0 & 1 on the bottom.
'''From the Hammer editor:''' Cap Layout, A string that tells the HUD how to lay out the cap points. It should be a string with indexes of cap points seperated by commas to denote a new line. So <2,0 1> would create a pyramid, with cap point 2 on the top and cap points 0 & 1 on the bottom.
{{Note|Setting cap layout does not work exactly as described above...}}
{{Note|Do not include the "<" and ">" characters in the caplayout box, they are only listed above to denote the index values.}}


== Setting the Cap Point Layout ==
== Setting the Cap Point Layout ==
Line 10: Line 10:
  2 = Blue's Final Control Point
  2 = Blue's Final Control Point


typing:
By leaving the caplayout box blank, the Control points will be laid out on the HUD in a line from left to right by order of their assigned index values. For example:
<0 1 2>
 
for the cap layout would give you this in game:
:[[image:Cp_guide_01.jpg]]
:[[image:Cp_guide_01.jpg]]


and typing:
You can rearrange the order in the HUD by simply by altering then index values in the caplayout box. 
  <0 2,1>
 
for the cap layout would give you this in game:  
{|
:[[image:Cp_guide_02.jpg]]
| Using:
|
  2 0 1
| for your caplayout box would give you this instead of the above:
|}


but, if you wanted the layout from Hammer's example above:
:[[image:Cp_guide_01.jpg]]
:[[image:Cp_guide_03.jpg]]


you would have to type
You can also arrange the control points vertical layout in the HUD by separating the index values with commas, all values to the right of the comma would lie underneath the values to the left of the comma.
< 1,0  2>


for the cap layout. Thats:
{|
:[[image:Cp_guide_04.gif]]
| Something like
|
0,1,2
| would give you this in-game:
|}


:[[image:Cp_guide_02.jpg]]


----


Some more examples are below.


{| Border="1"  
{| Border="1"  
! &nbsp; Caplayout setting &nbsp;
! In-game appearence
|-
|align=center valign=top |
0 1 2
|align=center |
|align=center |
typing:
<0 1 2>
for the cap layout would give you this in game:
|
[[image:Cp_guide_01.jpg]]
[[image:Cp_guide_01.jpg]]
|-
|-
|align=center |
|align=center valign=top |
and typing:
  0 2,1
  <0 2,1>
for the cap layout would give you this in game:
|align=center |
|align=center |
[[image:Cp_guide_02.jpg]]
[[image:Cp_guide_02.jpg]]
|-
|-
|align=center |
|align=center valign=top |
if you wanted the layout from Hammer's example above<br>
  1,0 2
you would have to type this for the cap layout:
  < 1,0   2>
To get this:
|align=center |
|align=center |
[[image:Cp_guide_03.jpg]]
[[image:Cp_guide_03.jpg]]
|}
|}
<!-- Still looks ugly :/ -->

Revision as of 23:49, 26 October 2008

From the Hammer editor: Cap Layout, A string that tells the HUD how to lay out the cap points. It should be a string with indexes of cap points seperated by commas to denote a new line. So <2,0 1> would create a pyramid, with cap point 2 on the top and cap points 0 & 1 on the bottom.

Note.pngNote:Do not include the "<" and ">" characters in the caplayout box, they are only listed above to denote the index values.

Setting the Cap Point Layout

For the cap layout section in the team_control_point_master entity, if these were the index settings for the team_control_point entities in your map:

0 = Red's Final Control Point
1 = Neutral Center Control Point
2 = Blue's Final Control Point

By leaving the caplayout box blank, the Control points will be laid out on the HUD in a line from left to right by order of their assigned index values. For example:

File:Cp guide 01.jpg

You can rearrange the order in the HUD by simply by altering then index values in the caplayout box.

Using:
2 0 1
for your caplayout box would give you this instead of the above:
File:Cp guide 01.jpg

You can also arrange the control points vertical layout in the HUD by separating the index values with commas, all values to the right of the comma would lie underneath the values to the left of the comma.

Something like
0,1,2
would give you this in-game:
File:Cp guide 02.jpg


Some more examples are below.

  Caplayout setting   In-game appearence
0 1 2

File:Cp guide 01.jpg

0 2,1

File:Cp guide 02.jpg

1,0 2

File:Cp guide 03.jpg