Info player counterterrorist: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 12: Line 12:
This entities is also available on {{cs2|4}}.
This entities is also available on {{cs2|4}}.


== Entity description==
These entities are spawn points for either [[Terrorists]] or [[Counter-Terrorists]].
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 [[:Category: Player spawn entities|player spawn entity]], its origin should be placed...
At least one of each should be placed for each team member. This may result in the ''Both Teams are Full'' error.
* at least 16 units above the ground,
 
{{Placement Tip|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 32 units away from each other,
* more than 16 units away from surrounding walls and
* more than 16 units away from surrounding walls and
* not intersecting with any solid geometry,
* not intersecting with any [[solid geometry]],
}}
otherwise the spawn point can become invalid, effectively behaving as if it didn't exist.
otherwise the spawn point can become invalid, effectively behaving as if it didn't exist.


Standard maps use between 16 and 32 spawn points.
Standard maps use between 16 and 32 spawn points.{{Why}}
{{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 | 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]].''}}
{{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]].''}}
Line 28: Line 30:
{{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.}}
{{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.}}
{{PreservedEnt|0}}
{{PreservedEnt|0}}
== Porting from {{hl2|4}} and {{hl2dm|4}} ==
Unlike {{hl2|4}} and {{hl2dm|4}} spawn point entities, {{css|4}} spawn point entities will intersect the ground if not placed a couple of units above it.


== Keyvalues ==
== Keyvalues ==

Revision as of 19:25, 3 July 2023

English (en)Deutsch (de)Translate (Translate)
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.
Creating a Classic Counter-Strike Map

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.

This entities is also available on Counter-Strike 2 Counter-Strike 2.

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

At least one of each should be placed for each team member. This may result in the Both Teams are Full error.

PlacementTip.gifPlacement Tip: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.[Why?]

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.
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.
Icon-Important.pngImportant:This is a preserved entity in.
If the game has round restart mechanics this entity may not behave as expected:
More info
  • On a new round entities with this classname will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non-preserved entities may have undesirable effects.

Porting from Half-Life 2 Half-Life 2 and Half-Life 2: Deathmatch Half-Life 2: Deathmatch

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

Keyvalues

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.


Outputs

See also