info_player_(counter)terrorist

From Valve Developer Community
Jump to navigation Jump to search
English (en)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.

Broom icon.png

This article or section needs to be cleaned up to conform to a higher standard of quality because:
This page is copy pasted from Source 1 counterpart. Some info may not apply to Source 2.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.

info_player_terrorist and info_player_counterterrorist are point entities available in Counter-Strike 2 Counter-Strike 2.

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 2 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.

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>
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>
Determines which spawn points get used first. Smaller numbers are used before larger numbers.
Enabled by default? (enabled) <boolean>
Should this spawn be enabled by default?

Inputs

SetEnabled
Sets this spawn point as enabled.
SetDisabled
Sets this spawn point as disabled.
ToggleEnabled
Toggle the enabled/disabled state of this spawn point.

Gallery

[Todo]

See also