Info player counterterrorist: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(60 intermediate revisions by 26 users not shown)
Line 1: Line 1:
{{wrongtitle|title=info_player_counterterrorist}}
{{LanguageBar|title=info_player_(counter)terrorist}} {{DISPLAYTITLE:info_player_(counter)terrorist}}
{{subpage|[[Creating a Classic Counter-Strike Map]]}}
{{tabsBar|main=s2|base=info_player_counterterrorist}}
{{Preserved entity|all}}
[[File:Csgo_player_aabb_bbox_dimensions.png|thumb|right|150px|{{csgo}} Counter-Terrorist model with the [[bounding box]] of a [[player]].]]
{{this is a|name=info_player_terrorist|name1=info_player_counterterrorist|point entity|game=Counter-Strike: Source|game1=Counter-Strike: Global Offensive|notitlechange=1}}


This entity is a spawnpoint for counter-terrorists in Counter-Strike Source.
== Usage ==
These entities are spawn points for either Terrorists or Counter-Terrorists.


A standard map should have between 16 and 32 spawnpoints.
=== Number of entities ===
[[Category:Counter-Strike: Source Entities]]
At least one of each should be placed for each team member. Standard maps use between 16 and 32 spawn points.
 
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.
{{seealso|[[Both Teams are Full error]]}}
{{Tip | {{csgo}} If only some of the spawn points shall be used for say 5v5, increase the <code>Spawn Priority (int)</code> keyvalue for all other spawn points. The former are used first, latter are ''only'' used if needed.}}
 
=== Map placement ===
Like every [[:Category: Player spawn entities|player spawn entity]], its origin should be placed
* at least 16 [[unit]]s 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.
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 {{cmd|con_filter_enable|2}} and {{cmd|con_filter_text|spawnpoint}}.
Unlike {{hl2|2}} and {{hl2dm|2}} spawn point entities, {{css|name}} spawn point entities will intersect the ground if not placed a couple of units above it.
 
{{Important | These entites "spawn" [[player]]s, which have a width of 32 units. However, [[Hammer]] displays the [[bounding box]] of a player [[model]], whose width is less than 32 units. Don't let this fool you. ''See also: [[Dimensions]].''}}
 
== Keyvalues ==
{{KV Targetname}}
{{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|intn=enabled|only={{csgo}}|Should this spawn be enabled by default?}}
 
== Inputs ==
{{I|SetEnabled|only={{csgo}}|Sets this spawn point as enabled.}}
{{I|SetDisabled|only={{csgo}}|Sets this spawn point as disabled.}}
{{I|ToggleEnabled|only={{csgo}}|Toggle the enabled/disabled state of this spawn point.}}
 
== Gallery ==
<gallery>
File:terrorist.jpg|{{css}} Terrorist model.
FIle:counterterrorist.jpg|{{css}} Counter-Terrorist model.
</gallery>
 
==See also==
* [[info_player_start]]
* [[info_armsrace_counterterrorist|info_armsrace_(counter)terrorist]]
* [[info_deathmatch_spawn]]
* [[game_player_equip]]
 
[[Category:Player spawn entities]]

Latest revision as of 06:22, 8 May 2025

English (en)Deutsch (de)Translate (Translate)
Recycle-warning.png
This is a preserved entity.
If the game has round restart mechanics this entity may not behave as expected.
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 Counter-Strike: Source Counter-Strike: Source and Counter-Strike: Global Offensive Counter-Strike: Global Offensive.

Usage

These entities are spawn points for either Terrorists or Counter-Terrorists.

Number of entities

At least one of each should be placed for each team member. Standard maps use between 16 and 32 spawn points.

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.

Tip.pngTip: Counter-Strike: Global Offensive If only some of the spawn points shall be used for say 5v5, increase the Spawn Priority (int) keyvalue for all other spawn points. The former are used first, latter are only used if needed.

Map placement

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. 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. Unlike Half-Life 2 Half-Life 2 and Half-Life 2: Deathmatch Half-Life 2: Deathmatch spawn point entities, Counter-Strike: Source spawn point entities will intersect the ground if not placed a couple of units above it.

Icon-Important.pngImportant: These entites "spawn" players, which have a width of 32 units. However, Hammer displays the bounding box of a player model, whose width is less than 32 units. Don't let this fool you. See also: Dimensions.

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

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.

Gallery

See also