User:Rustiznotch/TF2 Instant Spawn Tutorial: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== TF2 Instant Spawn Tutorial ==
== TF2 Capture Point Instant Spawn Tutorial ==
 
'''trigger_capture_area'''
* Create a [[trigger_capture_area]] as a [[brush_entity]] and place it over all the spawn points ([[info_player_teamspawn]]) for one team.
* Properties:
:* Set the 'Name' and not-yet-created 'Control point' values arbitrarily.
:* Set 'Can BLUE Cap?' to 'No'.
:* Set both 'Red Spawn Adjust' and 'Blue Spawn Adjust' to '-20'.
:* Set 'Time to cap (sec)' to '.1'.
* Make sure the area covers the entire spawn zone, or it is large enough where a player from that team will be forced to capture the area when spawned.
 
:[[image:rustiznotch-trigger_capture_area.jpg|thumb|left|200px|An example trigger_capture_area for the red team.]][[image:rustiznotch-trigger_capture_area_properties.jpg|thumb|left|200px|The trigger_capture_area properties.]]
<br style="clear:both;"/>
 
'''team_control_point'''
* Create a [[team_control_point]] as an [[Entity creation|entity]] somewhere on your map. You can make it look pretty by following the [[Creating_a_Capture_Point|Creating a Capture Point]] tutorial.
* Properties:
:* Set the 'Name' to the arbitrary 'Control point' name you set in the previous step.
:* Set the 'Print Name' to something cool like 'Instant respawn capture point'
:* Set the 'Index' to a ''unique'' number, in this case '1' will do.
 
:[[image:rustiznotch-team_control_point.jpg|thumb|left|200px|An example team_control_point for the red team.]][[image:rustiznotch-team_control_point_properties.jpg|thumb|left|200px|The team_control_point properties.]]
<br style="clear:both;"/>
 
'''Duplicate'''
* Make the same setup for the other team.
* Note: Copy / Pasting might result in some problems (Red team spawning in blue area)
* Be sure to change the 'Name' attribute where appropriate. Also, the 'Index' of the team_control_point must be changed to a unique value ('2' would do nicely). A few other attributes must be set to align with the team (see above).
 
:[[image:rustiznotch_both_instant_respawns.jpg|thumb|left|200px|The duplicated respawn.]]
<br style="clear:both;"/>
 
'''team_control_point_round'''
* Create a [[team_control_point_round]] as an [[Entity creation|entity]] somewhere on your map.
* Properties:
:* Set the 'Name' to something arbitrary.
:* Set 'Priority' to '1'.
:* Set 'Control points in this round' to a space-delimited list of the arbitrary [[team_control_point]]s 'Names' you defined. For example: 'red_control_point blue_control_point'.
 
:[[image:rustiznotch_team_control_point_round.jpg|thumb|left|200px|An example team_control_point_round.]][[image:rustiznotch_team_control_point_round_properties.jpg|thumb|left|200px|The team_control_point_round properties.]]
<br style="clear:both;"/>
 
'''team_control_point_master'''
* Create a [[team_control_point_master]] as an [[Entity creation|entity]] somewhere on your map.
* Properties:
:* Set the 'Name' to something arbitrary.
 
:[[image:rustiznotch_team_control_point_master.jpg|thumb|left|200px|An example team_control_point_master.]][[image:rustiznotch_team_control_point_master_properties.jpg|thumb|left|200px|The team_control_point_master_properties.]]
<br style="clear:both;"/>
----

Latest revision as of 14:37, 2 September 2023

TF2 Capture Point Instant Spawn Tutorial

trigger_capture_area

  • Set the 'Name' and not-yet-created 'Control point' values arbitrarily.
  • Set 'Can BLUE Cap?' to 'No'.
  • Set both 'Red Spawn Adjust' and 'Blue Spawn Adjust' to '-20'.
  • Set 'Time to cap (sec)' to '.1'.
  • Make sure the area covers the entire spawn zone, or it is large enough where a player from that team will be forced to capture the area when spawned.
An example trigger_capture_area for the red team.
The trigger_capture_area properties.


team_control_point

  • Set the 'Name' to the arbitrary 'Control point' name you set in the previous step.
  • Set the 'Print Name' to something cool like 'Instant respawn capture point'
  • Set the 'Index' to a unique number, in this case '1' will do.
An example team_control_point for the red team.
The team_control_point properties.


Duplicate

  • Make the same setup for the other team.
  • Note: Copy / Pasting might result in some problems (Red team spawning in blue area)
  • Be sure to change the 'Name' attribute where appropriate. Also, the 'Index' of the team_control_point must be changed to a unique value ('2' would do nicely). A few other attributes must be set to align with the team (see above).
The duplicated respawn.


team_control_point_round

  • Set the 'Name' to something arbitrary.
  • Set 'Priority' to '1'.
  • Set 'Control points in this round' to a space-delimited list of the arbitrary team_control_points 'Names' you defined. For example: 'red_control_point blue_control_point'.
An example team_control_point_round.
The team_control_point_round properties.


team_control_point_master

  • Set the 'Name' to something arbitrary.
An example team_control_point_master.
The team_control_point_master_properties.