<<PREV

TFC Capture the Flag Tutorial (part 3 of 4)

NEXT>>


The Flags

 

Lets create our flags  for each team. As you can see from the image or the right the flags, like the capture points, are very simple. They consist of, in the simplest form, a single item_tfgoal (the smaller of the 2 red squares in the picture). But because our flags will have VOX messages when the flags return we need to add an info_tfgoal (the larger red cube in the picture) to handle some VOX messages.
 
So take a moment to create your two flag setups with by adding an item_tfgoal and info_goal pair as shown for each team. In my tutorial map I've placed these goal sets right in front of that teams cap point.. but this isn't required of course.

Note: The info_goal being placed above the flag is a matter of convention to make it easier to find and edit. There is no reason why it can't be located elsewhere in the map. Frequently on my own maps I place entities like goals and multi-managers  in a small "entity room" located far from the player accessible sections of the map.

Once you've finished placing the two item_tfgoals and the two info_tfgoals it's time to set them up. Follow the tables below for each goal.
 

Use these settings for the RED flag (item_tfgoal)

FGD Name Key Name Setting  Description
Item # goal_no 2  
Goal Activation   g_a 4789  Goal Activation bitfields
Initial Goal State goal_state Inactive (2)  
Team Allowed To use Goal  team_no Blue (1)  Only Blue players can activate
Model Path mdl models/flag.mdl This is the visible model the item_goal will use in game
( this one is in the TFC pak.0 file)
Model Skin skin 1 This gives the Red Flag skin for the model
Activate Goal on Return impulse 200 Causes goal# 200 to be activated ( see below) 
Goal Result Bitfields g_r 16 This value (16) will force a spys disguise to reset when they touch the flag
Return to start msg, Team noise3 #2fort_your_flag_returned  
Return to start msg,Owners noise4 #2fort_enemy_flag_returned  
Owned By owned_by Red (2) The owner of a goal is mainly used in the speech and messaging parts of the goal to control who gets messages
Pause (stay on ground) seconds pausetime 60 Once dropped the flag will stay on the ground for 60 seconds before returning to its start position
Goal Effects g_e AP only (1) This tells the goal who is should effect.
Speak (activating player) AP_speak !CTF_YOUGOTFLAG VOX message 
Speak (AP team) team_speak !CTF_GOTFLAG VOX message 
Speak (non-AP team) non_team_speak !CTF_LOSTFLAG VOX message 
Entity reference name netname Red_Flag  
Message to Player  message You have the ENEMY flag!\nTake it back to base!\n Center printed message to AP
Console msg, Death Drop owners netname_team_drop #2fort_lost_red_flag message sent via the console to the owners team
Console msg, Death Drop non-owners netname_non_team_drop #2fort_lost_red_flag message sent via the console to the non-owners team
Center Print, Death Drop owners team_drop #2fort_enemy_lost_flag Center printed HUD message to carriers team when item_tfgoal is dropped
Center Print, Death Drop non-owners non_team_drop #2fort_lost_enemy_flag Center printed HUD message to non carriers team when item_tfgoal is dropped
Center Print, AP n_b #2fort_got_enemy_flag Center printed HUD message
AP_team msg, center print n_t #2fort_team_takes_enemy_flag Center printed HUD message
non-AP_team msg, center print n_n #2fort_enemy_takes_flag Center printed HUD message
owner team msg, center print n_o #2fort_your_flag_taken Center printed HUD message
Highlight HUD Items bitvalue items 262144 This will give you the red team symbol on your HUD when the flag is picked up


 

Use these settings for the BLUE flag (item_tfgoal)

FGD Name Key Name Setting  Description
Item # goal_no 1  
Goal Activation   g_a 4789  Goal Activation bitfields
Initial Goal State goal_state Inactive (2)  
Team Allowed To use Goal  team_no Red (2)  Only Red players can activate
Model Path mdl models/flag.mdl This is the visible model the item_goal will use in game
( this one is in the TFC pak.0 file)
Model Skin skin 2 This gives the Blue Flag skin for the model
Activate Goal on Return impulse 100 Causes goal# 100 to be activated ( see below) 
Goal Result Bitfields g_r 16 This value (16) will force a spys disguise to reset when they touch the flag
Return to start msg, Team noise3 #2fort_your_flag_returned  
Return to start msg,Owners noise4 #2fort_enemy_flag_returned  
Owned By owned_by Blue (1) The owner of a goal is mainly used in the speech and messaging parts of the goal to control who gets messages
Pause (stay on ground) seconds pausetime 60 Once dropped the flag will stay on the ground for 60 seconds before returning to its start position
Goal Effects g_e AP only (1) This tells the goal who is should effect.
Speak (activating player) AP_speak !CTF_YOUGOTFLAG VOX message 
Speak (AP team) team_speak !CTF_GOTFLAG VOX message 
Speak (non-AP team) non_team_speak !CTF_LOSTFLAG VOX message 
Entity reference name netname Blue_Flag  
Message to Player  message You have the ENEMY flag!\nTake it back to base!\n Center printed message to AP
Console msg, Death Drop owners netname_team_drop #2fort_lost_red_flag message sent via the console to the owners team
Console msg, Death Drop non-owners netname_non_team_drop #2fort_lost_red_flag message sent via the console to the non-owners team
Center Print, Death Drop owners team_drop #2fort_enemy_lost_flag Center printed HUD message to carriers team when item_tfgoal is dropped
Center Print, Death Drop non-owners non_team_drop #2fort_lost_enemy_flag Center printed HUD message to non carriers team when item_tfgoal is dropped
Center Print, AP n_b #2fort_got_enemy_flag Center printed HUD message
AP_team msg, center print n_t #2fort_team_takes_enemy_flag Center printed HUD message
non-AP_team msg, center print n_n #2fort_enemy_takes_flag Center printed HUD message
owner team msg, center print n_o #2fort_your_flag_taken Center printed HUD message
Highlight HUD Items bitvalue items 131072 This will give you the blue team symbol on your HUD when the flag is picked up

Hang in there.. we are almost done. Just two small info_tfgoals left to set up....
 
 

Use these settings for the RED flag VOX (info_goal)

FGD Name Key Name Setting  Description
Item # goal_no 200  
Initial Goal State goal_state Inactive (2)  
Team Allowed To use Goal  team_no Red (2)  Only Red players can activate
Owned By owned_by Blue (1) The owner of a goal is mainly used in the speech and messaging parts of the goal to control who gets messages
Speak (owners team) owners_team_speak !CTF_EFLAGBACK VOX message 
Speak (non-AP team) non_team_speak !CTF_FLAGBACK VOX message 
Entity reference name netname Red_Flag_Vox  
If goal # inactive if_goal_is_inactive 10 This goal will only activate if the capture point goal (#10) is not active.

Use these settings for the BLUE flag VOX (info_goal)

FGD Name Key Name Setting  Description
Item # goal_no 100  
Initial Goal State goal_state Inactive (2)  
Team Allowed To use Goal  team_no Blue (1)  Only Blue players can activate
Owned By owned_by Red (2) The owner of a goal is mainly used in the speech and messaging parts of the goal to control who gets messages
Speak (owners team) owners_team_speak !CTF_EFLAGBACK VOX message 
Speak (non-AP team) non_team_speak !CTF_FLAGBACK VOX message 
Entity reference name netname Blue_Flag_Vox  
If goal # inactive if_goal_is_inactive 20 This goal will only activate if the capture point goal (#20) is not active.

Thats it. You now have a fully set up 2fort style Capture the Flag TFC map complete will all the VOX.


 

<<PREV

TFC Capture the Flag Tutorial (part 3 of 4)

NEXT>>