Info player terrorist: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Updated for CS:GO)
(Merged with info_player_counterterrorist, added CS:GO image, added information moved from Creating a Bomb Defusal Map. Will redirect info_player_counterterrorist here. Did not use base-point-multi template but added its Categories.)
Line 1: Line 1:
{{base point multi|info_player_terrorist|game1=Counter-Strike: Source|game2=Counter-Strike: Global Offensive}}
{{DISPLAYTITLE:info_player_(counter)terrorist}}
{| style="float:right;"
| [[Image:terrorist.jpg|thumb|right|200px|{{css}} Terrorist model.]]
| [[Image:counterterrorist.jpg|thumb|right|200px|{{css}} Counter-Terrorist model.]]
| [[Image:Csgo_player_aabb_bbox_dimensions.png|thumb|right|200px|{{csgo}} Counter-Terrorist model with the [[bounding box]] of a [[player]].]]
|}


[[Image:terrorist.jpg|thumb|right|200px|Terrorist model in Counter-Strike Source.]]
'''info_player_terrorist''' and '''info_player_counterterrorist''' are [[point entity|point entities]] available in the following Source engine games:
 
{{game link|Counter-Strike: Source}}, {{game link|Counter-Strike: Global Offensive}}.


== Entity description==
== Entity description==
This entity is a spawn point for terrorists in [[Counter-Strike: Source]] and [[Counter-Strike: Global Offensive]]. One of these needs to be placed for each team member. A standard map should have between 16 and 32 spawn points.
These entities are spawn points for either Terrorists or Counter-Terrorists. At least one of each should be placed for each team member.
Should be placed at least 128 units away from each other and surrounding walls.
 
Like every [[:Category: Player spawn entities|player spawn entity]], its origin should be placed...
* at least 16 units above the ground,
* more than 32 units away from each other,
* more than 16 units away from surrounding walls and
* not intersecting with any solid geometry,
otherwise the spawn point can become invalid, effectively behaving as if it didn't exist.
 
Standard maps use between 16 and 32 spawn points.
{{Warning | The number of these entities limits the number of players on the corresponding team! If there are 5 '''info_player_terrorist'''s, there cannot be more than 5 players on the Terrorist's team! This is a possible cause for ''Team is full!'' errors.}}
{{Warning | These entites spawn [[player]]s, which have a width of 32 units in {{css}} and {{csgo}}. However, [[Hammer]] displays the [[bounding box]] of a player [[model]], whose width is less than 32 units! ''See also: [[Dimensions]].''}}
{{Tip | Invalid spawn points are reported in the console when the map is loaded, for example: <code>Invalid terrorist spawnpoint at (<x>,<y>,<z>)</code>. These lines can easily be found in the console using {{ent|con_filter_enable|2}} and {{ent|con_filter_text|spawnpoint}}.}}


== Keyvalues ==
== Keyvalues ==
{{KV Targetname}}
{{KV Targetname}}
{{KV Angles}}
{{KV Angles}}
{{ScrollBox|title=Behaviour|}}
{{Minititle|Behaviour}}
{{KV|Spawn priority|integer|Determines which spawn points get used first. Smaller numbers are used before larger numbers.}} {{CSGO add|}}
{{KV|Spawn priority|integer|intn=priority|only={{csgo}}|Determines which spawn points get used first. Smaller numbers are used before larger numbers.}}
{{KV|Enabled by default?|boolean|Should this spawn be enabled by default?}} {{CSGO add|}}
{{KV|Enabled by default?|boolean|intn=enabled|only={{csgo}}|Should this spawn be enabled by default?}}


== Inputs ==  
== Inputs ==  
{{IO|SetEnabled|Sets this spawn point as enabled.}} {{CSGO add|}}
{{IO|SetEnabled|only={{csgo}}|Sets this spawn point as enabled.}}
{{IO|SetDisabled|Sets this spawn point as disabled.}} {{CSGO add|}}
{{IO|SetDisabled|only={{csgo}}|Sets this spawn point as disabled.}}
{{IO|ToggleEnabled|Toggle the enabled/disabled state of this spawn point.}} {{CSGO add|}}
{{IO|ToggleEnabled|only={{csgo}}|Toggle the enabled/disabled state of this spawn point.}}


==See also==
==See also==
Line 24: Line 42:
* [[game_player_equip]]
* [[game_player_equip]]


[[Category: Non-internal entity]]
[[Category: Source Base Entities]]
[[Category: Entities]]
[[Category: Counter-Strike: Source Entities]]
[[Category: Counter-Strike: Global Offensive Entities]]
[[Category:Player spawn entities]]
[[Category:Player spawn entities]]

Revision as of 08:58, 26 August 2021

Counter-Strike: Source Terrorist model.
Counter-Strike: Source Counter-Terrorist model.
Counter-Strike: Global Offensive Counter-Terrorist model with the bounding box of a player.

info_player_terrorist and info_player_counterterrorist are point entities available in the following Source engine games:

Counter-Strike: Source Counter-Strike: Source , Counter-Strike: Global Offensive Counter-Strike: Global Offensive .

Entity description

These entities are spawn points for either Terrorists or Counter-Terrorists. At least one of each should be placed for each team member.

Like every player spawn entity, its origin should be placed...

  • at least 16 units above the ground,
  • more than 32 units away from each other,
  • more than 16 units away from surrounding walls and
  • not intersecting with any solid geometry,

otherwise the spawn point can become invalid, effectively behaving as if it didn't exist.

Standard maps use between 16 and 32 spawn points.

Warning.pngWarning: The number of these entities limits the number of players on the corresponding team! If there are 5 info_player_terrorists, there cannot be more than 5 players on the Terrorist's team! This is a possible cause for Team is full! errors.
Warning.pngWarning: These entites spawn players, which have a width of 32 units in Counter-Strike: Source and Counter-Strike: Global Offensive. However, Hammer displays the bounding box of a player model, whose width is less than 32 units! See also: Dimensions.
Tip.pngTip: Invalid spawn points are reported in the console when the map is loaded, for example: Invalid terrorist spawnpoint at (<x>,<y>,<z>). These lines can easily be found in the console using con_filter_enable 2 and con_filter_text spawnpoint.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Behaviour:

Spawn priority (priority) <integer> (only in Counter-Strike: Global Offensive)
Determines which spawn points get used first. Smaller numbers are used before larger numbers.
Enabled by default? (enabled) <boolean> (only in Counter-Strike: Global Offensive)
Should this spawn be enabled by default?

Inputs

SetEnabled  (only in Counter-Strike: Global Offensive)
Sets this spawn point as enabled.
SetDisabled  (only in Counter-Strike: Global Offensive)
Sets this spawn point as disabled.
ToggleEnabled  (only in Counter-Strike: Global Offensive)
Toggle the enabled/disabled state of this spawn point.

See also