TF2/Making an Arena map: Difference between revisions
Walkabout747 (talk | contribs) |
m (Robot: Automated text replacement (-\{\|\r +{| class=standard-table)) |
||
Line 13: | Line 13: | ||
*{{ent|team_control_point_master}} | *{{ent|team_control_point_master}} | ||
<!-- To add border=1, or not to add border=1, hmm --> | <!-- To add border=1, or not to add border=1, hmm --> | ||
::{| | ::{| class=standard-table | ||
! Property Name || Value | ! Property Name || Value | ||
|- | |- | ||
Line 20: | Line 20: | ||
|} | |} | ||
::{| | ::{| class=standard-table | ||
! || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | ! || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | ||
|- | |- | ||
Line 37: | Line 37: | ||
Don't forget to change it on the second math_counter too. | Don't forget to change it on the second math_counter too. | ||
::{| | ::{| class=standard-table | ||
! Property Name || Value | ! Property Name || Value | ||
|- | |- | ||
Line 46: | Line 46: | ||
|} | |} | ||
::{| | ::{| class=standard-table | ||
! || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | ! || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | ||
|- | |- | ||
Line 60: | Line 60: | ||
This is the same as above, but for the blue team. | This is the same as above, but for the blue team. | ||
::{| | ::{| class=standard-table | ||
! Property Name || Value | ! Property Name || Value | ||
|- | |- | ||
Line 69: | Line 69: | ||
|} | |} | ||
::{| | ::{| class=standard-table | ||
! || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | ! || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | ||
|- | |- | ||
Line 82: | Line 82: | ||
This text will be displayed when the red team wins. | This text will be displayed when the red team wins. | ||
::{| | ::{| class=standard-table | ||
! Property Name || Value | ! Property Name || Value | ||
|- | |- | ||
Line 99: | Line 99: | ||
This text will be displayed when the blue team wins. | This text will be displayed when the blue team wins. | ||
::{| | ::{| class=standard-table | ||
! Property Name || Value | ! Property Name || Value | ||
|- | |- | ||
Line 116: | Line 116: | ||
This entity ends the game when your team has reached the score limit. | This entity ends the game when your team has reached the score limit. | ||
::{| | ::{| class=standard-table | ||
! Property Name || Value | ! Property Name || Value | ||
|- | |- | ||
Line 129: | Line 129: | ||
This enables stalemate to be triggered when the time limit is up. | This enables stalemate to be triggered when the time limit is up. | ||
::{| | ::{| class=standard-table | ||
! || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | ! || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | ||
|- | |- | ||
Line 142: | Line 142: | ||
This entity will be used to send an output when a round starts and when the control point is enabled. Specify the amount of seconds you want before it's activated here. 60 is the default setting. | This entity will be used to send an output when a round starts and when the control point is enabled. Specify the amount of seconds you want before it's activated here. 60 is the default setting. | ||
::{| | ::{| class=standard-table | ||
! Property Name || Value | ! Property Name || Value | ||
|- | |- | ||
Line 175: | Line 175: | ||
Now the outputs in the tf_logic_arena should look like this: | Now the outputs in the tf_logic_arena should look like this: | ||
::{| | ::{| class=standard-table | ||
! || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | ! || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | ||
|- | |- | ||
Line 192: | Line 192: | ||
This will be used for outputs when the round starts. The reason we made the tf_logic_arena trigger a relay, instead of having the outputs in itself, is because it's easier to change the relay outputs than the tf_logic_arena outputs in notepad. | This will be used for outputs when the round starts. The reason we made the tf_logic_arena trigger a relay, instead of having the outputs in itself, is because it's easier to change the relay outputs than the tf_logic_arena outputs in notepad. | ||
::{| | ::{| class=standard-table | ||
! Property Name || Value | ! Property Name || Value | ||
|- | |- | ||
Line 204: | Line 204: | ||
This will be used for outputs when the control point is enabled. | This will be used for outputs when the control point is enabled. | ||
::{| | ::{| class=standard-table | ||
! Property Name || Value | ! Property Name || Value | ||
|- | |- | ||
Line 220: | Line 220: | ||
This is the base model for the control point. It will be configured to change skin when a team captures it. | This is the base model for the control point. It will be configured to change skin when a team captures it. | ||
::{| | ::{| class=standard-table | ||
! Property Name || Value | ! Property Name || Value | ||
|- | |- | ||
Line 232: | Line 232: | ||
This is the control point. | This is the control point. | ||
::{| | ::{| class=standard-table | ||
! Property Name || Value | ! Property Name || Value | ||
|- | |- | ||
Line 253: | Line 253: | ||
You can modify these values to suit your map. | You can modify these values to suit your map. | ||
::{| | ::{| class=standard-table | ||
! Property Name || Value | ! Property Name || Value | ||
|- | |- | ||
Line 268: | Line 268: | ||
|} | |} | ||
::{| | ::{| class=standard-table | ||
! || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | ! || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | ||
|- | |- |
Revision as of 20:36, 19 January 2009
Arena is a new gamemode for TF2 that came along with the heavy update. In this gamemode, you don't respawn until your whole team is dead. The goal is to kill everyone on the enemy team, or to capture the center control point of the map. The control point is locked for 60 seconds in Valve's Arena maps, and cannot be captured until it's unlocked.
This article will tell you how to set up the Arena gamemode.
Arena gamemode entities
First we'll need an entity to check when a team captures the center control point.
Property Name Value Name master_control_point
This adds the value of 1 to the math_counters we're about to make. It makes sure the game ends after the amount of wins you want in your map.
This entity will make sure your team wins the match after the specified amount of rounds. It also triggers a text on-screen that tells you your team want. Change the Maximum Legal Value to the amount of wins required to win the match. Don't forget to change it on the second math_counter too.
Property Name Value Name counter_red_win Maximum Legal Value 3
This is the same as above, but for the blue team.
Property Name Value Name counter_blu_win Maximum Legal Value 3
This text will be displayed when the red team wins.
Property Name Value Name text_red_game_win Message Text Red Wins the Game! Color2 240 0 6
- Check the "All players" flag.
This text will be displayed when the blue team wins.
Property Name Value Name text_blu_game_win Message Text Blue Wins the Game! Color2 0 0 240
- Check the "All players" flag.
This entity ends the game when your team has reached the score limit.
Property Name Value Name end_game
You probably already have this entity in your map. This enables stalemate to be triggered when the time limit is up.

This entity will be used to send an output when a round starts and when the control point is enabled. Specify the amount of seconds you want before it's activated here. 60 is the default setting.
Property Name Value CapEnableDelay 60


- Save your map, close it in hammer and open it in notepad.
- Press ctrl+F and search for tf_logic_arena
- Add this text above "origin":
connections
{
"OnCapEnabled" "cap_flag,ShowModel,,0,-1"
"OnArenaRoundStart" "relay_round_start,Trigger,,0,-1"
"OnCapEnabled" "relay_cap_enable,Trigger,,0,-1"
}
- Save the vmf and close notepad.
- Open the modified vmf in Hammer

Now the outputs in the tf_logic_arena should look like this:
The first output displays the model for the control point when it has been enabled. The other two triggers the relays for the round start and control point activation.
This will be used for outputs when the round starts. The reason we made the tf_logic_arena trigger a relay, instead of having the outputs in itself, is because it's easier to change the relay outputs than the tf_logic_arena outputs in notepad.
Property Name Value Name relay_round_start
This will be used for outputs when the control point is enabled.
Property Name Value Name relay_cap_enable
That's about it for the basic gamemode.
Control point setup
Now we'll set up the center control point entities.
This is the base model for the control point. It will be configured to change skin when a team captures it.
Property Name Value World Model models/props_gameplay/cap_point_base.mdl Name prop_cap_1
This is the control point.
Property Name Value Name cap_flag Print Name #Arena_cap Index 3 BLUE model bodygroup 0
- Check the "Start with model hidden" flag. This is because it will be displayed when the control point is enabled
This is the trigger area, that will let the teams capture it after it's enabled. You can modify these values to suit your map.
Property Name Value Name cap_trigger Control point cap_flag Number of RED players to cap 3 Number of BLUE players to cap 3 Time to cap (sec) 4
That's it! It should be working now. Don't forget to add a spawnroom if you want to try it out.
What you might want to add, is for the relay_round_start to trigger the spawndoors to open.
Now, if you load your map, you will notice the server will keep you in the spawn area as it waits for more players to join. Open up the console and type sv_cheats 1;bot
. This will add a bot to the server and let you playtest the map.We havent made bots do stuff though.They just stand in spawn and do nothing